#-----------------------------------------------------------------
|
#-----------------------------------------------------------------
|
# File: Makefile
|
# File: Makefile
|
# Author: David Burnette
|
# Author: David Burnette
|
# Date: April 7, 2008
|
# Date: April 7, 2008
|
#
|
#
|
# Description:
|
# Description:
|
# This makefile generates a VHDL file from assembler source.
|
# This makefile generates a VHDL file from assembler source.
|
# A translate rule in mktargets.mk handles compiling the .asm
|
# A translate rule in mktargets.mk handles compiling the .asm
|
# into a S19 record file (.S19) and then running s19tovhd to
|
# into a S19 record file (.S19) and then running s19tovhd to
|
# generate a VHDL file with SPARTAN3 block rams with INIT generics
|
# generate a VHDL file with SPARTAN3 block rams with INIT generics
|
# containing the binary data.
|
# containing the binary data.
|
#
|
#
|
# This particular makefile handles generating the Noice debug rom.
|
# This particular makefile handles generating the Noice debug rom.
|
#
|
#
|
# Usage:
|
# Usage:
|
# This make file is called recursively by the board-specific
|
# This make file is called recursively by the board-specific
|
# makefiles in the 'rtl' directory. The targets generated by
|
# makefiles in the 'rtl' directory. The targets generated by
|
# this makefile are:
|
# this makefile are:
|
#
|
#
|
# make - makes all variants
|
# make - makes all variants
|
# make all - makes all variants
|
# make all - makes all variants
|
# make MON6809.vhd - make the Noice rom
|
# make MON6809.vhd - make the Noice rom
|
#
|
#
|
# Target Descriptions:
|
# Target Descriptions:
|
# The first file listed is the source file passed to assembler.
|
# The first file listed is the source file passed to assembler.
|
# Remaining files are the dependencies. The option variables
|
# Remaining files are the dependencies. The option variables
|
# ADDRS, ENTITY and TOP_RAM are used by the s19tovhd utility
|
# ADDRS, ENTITY and TOP_RAM are used by the s19tovhd utility
|
# to generate the VHDL file.
|
# to generate the VHDL file.
|
#
|
#
|
# Dependencies:
|
# Dependencies:
|
# This makefile depends on def_rules.mk and the top-level
|
# This makefile depends on def_rules.mk and the top-level
|
# ram model file mon_rom_vhd.
|
# ram model file mon_rom_vhd.
|
#
|
#
|
# Revision History:
|
# Revision History:
|
# dgb 2008-04-07 Original version
|
# dgb 2008-04-07 Original version
|
#
|
#
|
#-----------------------------------------------------------------
|
#-----------------------------------------------------------------
|
|
|
ifeq "$(MKFRAGS)" ""
|
ifeq "$(MKFRAGS)" ""
|
MKFRAGS := ../../mkfiles
|
MKFRAGS := ../../mkfiles
|
endif
|
endif
|
|
|
include $(MKFRAGS)/def_rules.mk
|
include $(MKFRAGS)/def_rules.mk
|
|
|
all: MON6809.vhd
|
all: MON6809.vhd
|
|
|
MON6809.vhd: MON6809.ASM
|
MON6809.vhd: MON6809.ASM
|
MON6809.vhd: ADDRS=F000 F800
|
MON6809.vhd: ADDRS=F000 F800
|
MON6809.vhd: ENTITY=NOICE6809
|
MON6809.vhd: ENTITY=NOICE6809
|
MON6809.vhd: TOP_RAM=noice_rom_vhd
|
MON6809.vhd: TOP_RAM=noice_rom_vhd
|
|
|
.PHONY: clean
|
.PHONY: clean
|
clean:
|
clean:
|
-$(RM) *.S19
|
-$(RM) *.S19
|
-$(RM) *.lst
|
-$(RM) *.lst
|
-$(RM) *.vhd
|
-$(RM) *.vhd
|
|
|