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

Subversion Repositories copyblaze

[/] [copyblaze/] [trunk/] [copyblaze/] [sw/] [code/] [kcpsm/] [uclock/] [Makefile] - Blame information for rev 69

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

Line No. Rev Author Line
1 2 ameziti
# path to tools
2
#DRIVE=E:
3
DRIVE=/cygdrive/e
4
TOPPATH=../../../..
5
TOOLPATH=$(TOPPATH)/sw/tools/asm
6
 
7
AS=$(TOOLPATH)/KCPSM3/KCPSM3.exe
8
#MG=$(TOOLPATH)/pBlazASM/pBlazMRG/pBlazMRG.exe
9
MG=$(TOOLPATH)/pBlazASM/cpBlazeMRG/cpBlazeMRG.exe
10
 
11
DIROUT=$(TOPPATH)/rtl/vhdl
12
 
13
RM = rm -f -v
14
CP = cp
15
 
16
# List of PSM Files
17
#ASM_SRC = Test_Mnemonics.asm
18
ASM_SRC = *.psm
19
#AFLAGS = -l -m
20
#AFLAGS = -l -x
21
AFLAGS =
22
MGFLAGS =
23
TEMPLATE = ../template2
24
ENTITY = cp_ROM_Code
25
 
26
.SUFFIXES : .psm .mem .vhd .psh
27
 
28
# assemble and merge
29
all:    $(ENTITY).vhd
30
 
31
# assemble #
32
$(ENTITY).mem:  $(ASM_SRC)
33
        $(AS) $(ASM_SRC) $(AFLAGS)
34
#       $(CP) *.mem $(ENTITY).mem
35
        $(CP) *.HEX $(ENTITY).hex
36
 
37
# merge #
38
#$(ENTITY).vhd:  $(ENTITY).mem $(TEMPLATE).vhd
39
$(ENTITY).vhd:  $(ENTITY).mem
40
#       $(MG) $(MGFLAGS) -e$(ENTITY) $(ENTITY).mem $(TEMPLATE).vhd $(ENTITY).vhd
41
        $(MG) $(MGFLAGS) $(ENTITY).hex
42
        $(CP) $(ENTITY).vhd $(DIROUT)/$(ENTITY).vhd
43
 
44
# clean outputs
45
clean:
46
#       $(RM) $(ENTITY).lst
47
        $(RM) *.lst
48
#       $(RM) $(ENTITY).mem
49
        $(RM) *.mem
50
#       $(RM) $(ENTITY).vhd
51
        $(RM) *.hex
52
        $(RM) *.log
53
#       $(RM) *.vhd
54
        $(RM) *.bin
55
#
56
        $(RM) CONSTANT.TXT
57
        $(RM) LABELS.TXT
58
        $(RM) *.DAT
59
        $(CP) $(ENTITY).VHD
60
 

powered by: WebSVN 2.1.0

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