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

Subversion Repositories copyblaze

[/] [copyblaze/] [trunk/] [copyblaze/] [sw/] [code/] [kcpsm/] [stack_test/] [Makefile] - Rev 70

Go to most recent revision | Compare with Previous | Blame | View Log

# path to tools
#DRIVE=E:
DRIVE=/cygdrive/e
TOPPATH=../../..
TOOLPATH=$(TOPPATH)/tools/asm

AS=$(TOOLPATH)/KCPSM3/KCPSM3.exe
#MG=$(TOOLPATH)/pBlazASM/pBlazMRG/pBlazMRG.exe
MG=$(TOOLPATH)/pBlazASM/cpBlazeMRG/cpBlazeMRG.exe

DIROUT=$(TOPPATH)/bicoblaze/hdl

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 = 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

powered by: WebSVN 2.1.0

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