OpenCores
URL https://opencores.org/ocsvn/System09/System09/trunk

Subversion Repositories System09

[/] [System09/] [trunk/] [mkfiles/] [def_rules.mk] - Rev 84

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.