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

Subversion Repositories copyblaze

[/] [copyblaze/] [trunk/] [copyblaze/] [sw/] [code/] [pBlaze/] [wb_timer/] [Makefile] - Blame information for rev 52

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

Line No. Rev Author Line
1 30 ameziti
# path to tools
2
#DRIVE=E:
3
DRIVE=/cygdrive/e
4
TOPPATH=../../../..
5
TOOLPATH=$(TOPPATH)/sw/tools/asm
6
 
7
AS=$(TOOLPATH)/pBlazASM/pBlazASM/pBlazASM.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 = *.asm
19
#AFLAGS = -l -m
20
AFLAGS = -l -x
21
MGFLAGS =
22
TEMPLATE = ../template2
23
ENTITY = cp_ROM_Code
24
 
25
.SUFFIXES : .psm .mem .vhd .psh
26
 
27
# assemble and merge
28
all:    $(ENTITY).vhd
29
 
30
# assemble #
31
$(ENTITY).mem:  $(ASM_SRC)
32
        $(AS) $(ASM_SRC) $(AFLAGS)
33
#       $(CP) *.mem $(ENTITY).mem
34
        $(CP) *.hex $(ENTITY).hex
35
 
36
# merge #
37
#$(ENTITY).vhd:  $(ENTITY).mem $(TEMPLATE).vhd
38
$(ENTITY).vhd:  $(ENTITY).mem
39
#       $(MG) $(MGFLAGS) -e$(ENTITY) $(ENTITY).mem $(TEMPLATE).vhd $(ENTITY).vhd
40
        $(MG) $(MGFLAGS) $(ENTITY).hex
41
        $(CP) $(ENTITY).vhd $(DIROUT)/$(ENTITY).vhd
42
 
43
# clean outputs
44
clean:
45
#       $(RM) $(ENTITY).lst
46
        $(RM) *.lst
47
#       $(RM) $(ENTITY).mem
48
        $(RM) *.mem
49
#       $(RM) $(ENTITY).vhd
50
        $(RM) *.hex
51
        $(RM) *.log
52
        $(RM) *.vhd
53
        $(RM) *.bin

powered by: WebSVN 2.1.0

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