URL
https://opencores.org/ocsvn/copyblaze/copyblaze/trunk
Subversion Repositories copyblaze
[/] [copyblaze/] [trunk/] [copyblaze/] [sw/] [code/] [kcpsm/] [uclock/] [Makefile] - Rev 69
Go to most recent revision | Compare with Previous | Blame | View Log
# path to tools
#DRIVE=E:
DRIVE=/cygdrive/e
TOPPATH=../../../..
TOOLPATH=$(TOPPATH)/sw/tools/asm
AS=$(TOOLPATH)/KCPSM3/KCPSM3.exe
#MG=$(TOOLPATH)/pBlazASM/pBlazMRG/pBlazMRG.exe
MG=$(TOOLPATH)/pBlazASM/cpBlazeMRG/cpBlazeMRG.exe
DIROUT=$(TOPPATH)/rtl/vhdl
RM = rm -f -v
CP = cp
# List of PSM Files
#ASM_SRC = Test_Mnemonics.asm
ASM_SRC = *.psm
#AFLAGS = -l -m
#AFLAGS = -l -x
AFLAGS =
MGFLAGS =
TEMPLATE = ../template2
ENTITY = cp_ROM_Code
.SUFFIXES : .psm .mem .vhd .psh
# assemble and merge
all: $(ENTITY).vhd
# assemble #
$(ENTITY).mem: $(ASM_SRC)
$(AS) $(ASM_SRC) $(AFLAGS)
# $(CP) *.mem $(ENTITY).mem
$(CP) *.HEX $(ENTITY).hex
# merge #
#$(ENTITY).vhd: $(ENTITY).mem $(TEMPLATE).vhd
$(ENTITY).vhd: $(ENTITY).mem
# $(MG) $(MGFLAGS) -e$(ENTITY) $(ENTITY).mem $(TEMPLATE).vhd $(ENTITY).vhd
$(MG) $(MGFLAGS) $(ENTITY).hex
$(CP) $(ENTITY).vhd $(DIROUT)/$(ENTITY).vhd
# clean outputs
clean:
# $(RM) $(ENTITY).lst
$(RM) *.lst
# $(RM) $(ENTITY).mem
$(RM) *.mem
# $(RM) $(ENTITY).vhd
$(RM) *.hex
$(RM) *.log
# $(RM) *.vhd
$(RM) *.bin
#
$(RM) CONSTANT.TXT
$(RM) LABELS.TXT
$(RM) *.DAT
$(CP) $(ENTITY).VHD
Go to most recent revision | Compare with Previous | Blame | View Log