URL
https://opencores.org/ocsvn/System09/System09/trunk
Subversion Repositories System09
[/] [System09/] [tags/] [LinuxPort/] [mkfiles/] [def_rules.mk] - Rev 215
Go to most recent revision | Compare with Previous | Blame | View Log
#-----------------------------------------------------------------
# File: def_rules.mk
# Author: David Burnette
# Date: April 7, 2008
#
# Description:
#
# Usage:
# This make file fragment contains default translate rules.
#
# Dependencies:
# Depends on 'def_cmds.mk' fragment.
#
# Revision History:
# dgb 2008-04-07 Original version
#
#-----------------------------------------------------------------
#===================================================================
# Include default commands
include $(MKFRAGS)/def_cmds.mk
#===================================================================
# TRANSLATE RULES
# RULE: .asm => .s19
# Assemble 6809 source into S19 record file
%.s19: %.asm
@$(ECHO)
@$(ECHO) "======= Running 6809 assembler to generate ROM code ================"
$(ASM) $(notdir $<) >$(basename $@).lst
# RULE: .s19 => .vhd
# Build a VHDL file instantiated BRAMS initialized with the source from a S19 file
%.vhd: %.s19
@$(ECHO)
@$(ECHO) "======= Generating Xilinx block RAM to hold ROM code ================"
$(s19tovhd) $< $@ $(ENTITY) $(ADDRS)
$(CAT) $(TOP_RAM) >>$@
Go to most recent revision | Compare with Previous | Blame | View Log