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

Subversion Repositories copyblaze

[/] [copyblaze/] [trunk/] [copyblaze/] [sw/] [code/] [pbcc/] [funargs/] [Makefile] - Blame information for rev 60

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 47 ameziti
# tools paths
2
DRIVE=/cygdrive/c
3
 
4
PATH_TOP=../../../..
5
PATH_TOOL=$(PATH_TOP)/sw/tools
6
PATH_ASM=asm
7 52 ameziti
PATH_COMP=comp/pbcc/sdcc
8 47 ameziti
 
9
CC=$(PATH_TOOL)/$(PATH_COMP)/bin/sdcc.exe
10
AS=$(PATH_TOOL)/$(PATH_ASM)/pBlazASM/pBlazASM/pBlazASM.exe
11
MG=$(PATH_TOOL)/$(PATH_ASM)/pBlazASM/cpBlazeMRG/cpBlazeMRG.exe
12
 
13
# output directory
14 60 ameziti
DIROUT=$(PATH_TOP)/rtl/vhdl/ip/rom
15 47 ameziti
 
16
# remove command
17
RM = rm -f -v
18
CP = cp
19
 
20
# Compiler Flags
21
C_SRC = funargs.c
22
CFLAGS = -mpblaze -S
23
IFLAGS = -I"$(PATH_TOOL)/$(PATH_COMP)/device/include/pblaze"
24
 
25
# Assembler Flags
26
ASM_SRC = *.psm
27
AFLAGS = -k -l -x
28
 
29
# Merge Flags
30
MGFLAGS =
31
ENTITY = cp_ROM_Code
32
 
33
.SUFFIXES : .psm .mem .vhd .psh
34
 
35
# ALL
36
all:  clean  $(ENTITY).vhd
37
 
38
# compile #
39
$(ENTITY).psm:  $(C_SRC)
40
        $(CC) $(C_SRC) $(CFLAGS) $(IFLAGS)
41
 
42
# assemble #
43
$(ENTITY).mem:  $(ENTITY).psm
44
        $(AS) $(ASM_SRC) $(AFLAGS)
45
        $(CP) *.hex $(ENTITY).hex
46
 
47
# merge #
48
$(ENTITY).vhd:  $(ENTITY).mem
49
        $(MG) $(MGFLAGS) $(ENTITY).hex
50
        $(CP) $(ENTITY).vhd $(DIROUT)/$(ENTITY).vhd
51
 
52
 
53
# clean outputs
54
clean:
55
        $(RM) *.lst
56
        $(RM) *.mem
57
        $(RM) *.hex
58
        $(RM) *.log
59
        $(RM) *.vhd
60
        $(RM) *.bin

powered by: WebSVN 2.1.0

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