PRdefs
2.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#
# Commondefs for Project Reality source tree
#
# Makefiles which include this should first define PRDEPTH to be the relative
# path from their parent directory.
include $(ROOT)/usr/include/make/commondefs
#
# Use $(MAKE) $(MAKEARGS) instead of $(MAKEF) so that make -n works
# This gets around the fact that $(MAKE) works and $(MAKEF) does not.
# MAKEARGS is based directly on $(MAKEF) in commondefs.
#
MAKEARGS = VCFLAGS="$(VCFLAGS)" VFFLAGS="$(VFFLAGS)" \
VPFLAGS="$(VPFLAGS)" VMKDEPFLAGS="$(VMKDEPFLAGS)"
# make sure 'default' does not hit these rules
defaultrule: default
#
# Compile tree for RCP 1.0 or RCP 2.0
#
#GCDEFS = $(HW_FLAGS)
#GCDEFS = $(HW_FLAGS) -B -Wab,-r4300_mul
__GCC__=1
ifdef __GCC__
CC=mips-linux-gcc -fno-pic -I/usr/lib/gcc-lib/mips-linux/egcs-2.91.66/include/ -mcpu=4300
AS=mips-linux-gcc -x assembler-with-cpp -fno-pic -c -mcpu=4300 -Wa,--strip-local-absolute
LD=/usr/mips-linux/bin/ld
SIZE=mips-linux-size
NAWK=awk
WOFF=
MKDEPOPT=
GCDEFS =
#CVERSION=-ansi
CVERSION=
else
GCDEFS = $(HW_FLAGS) -Wab,-r4300_mul
endif
#
# VCS compiler options
#
VCSOPTS = $(GVCSOPTS) $(LVCSOPTS) $(VVCSOPTS)
#GVCSOPTS = +acc -V -M -Mupdate -Mmakep=pmake \
-CC "-mips2 -Wab,-big_got -Wab,-dwalign" -lgl -limage \
-P $(PRDEPTH)/rdpsim/pli/pli.tab $(ROOT)/usr/lib/PR/libpli.a
GVCSOPTS = +acc -V -M -Mupdate \
-P $(PRDEPTH)/rdpsim/pli/pli.tab $(ROOT)/usr/lib/PR/libpli.a
SHELL = /bin/sh
FLT2C = $(ROOT)/usr/sbin/flt2c
IC = $(ROOT)/usr/sbin/ic
#ifdef __GCC__
MAKEROM = $(GCCDIR)/mipse/bin/mild
#else
MAKEROM = $(ROOT)/usr/sbin/makerom
#endif
MIDIPARSE = $(ROOT)/usr/sbin/midiparse
MIDICVT = $(ROOT)/usr/sbin/midicvt
MIDICOMP = $(ROOT)/usr/sbin/midicomp
SBC = $(ROOT)/usr/sbin/sbc
NLD = $(ROOT)/usr/sbin/nld
RGB2C = $(ROOT)/usr/sbin/rgb2c
MKSPRITE = $(ROOT)/usr/sbin/mksprite
MKISPRITE = $(ROOT)/usr/sbin/mkisprite
TABLEDESIGN = $(ROOT)/usr/sbin/tabledesign
VADPCM_ENC = $(ROOT)/usr/sbin/vadpcm_enc
RSPASM = $(ROOT)/usr/sbin/rspasm
BUILDTASK = $(ROOT)/usr/sbin/buildtask
RSP2ELF = $(ROOT)/usr/sbin/rsp2elf
DATA2RDRAM = $(PRDEPTH)/tools/data/data2rdram
RDRAM2DATA = $(PRDEPTH)/tools/data/rdram2data
TMEMFMT = $(PRDEPTH)/tools/tmemfmt/tmemfmt
ECS2VL = $(PRDEPTH)/rdpsim/tools/ecs2vl
ECSGEN = $(PRDEPTH)/rdpsim/tools/ecs_gen
MERRG = $(PRDEPTH)/rdpsim/tools/merrg
RMVCOM = $(PRDEPTH)/rdpsim/tools/remove_comments
TAB2VMEM= $(PRDEPTH)/rdpsim/tools/tab2vmem
TAB2WVS = $(PRDEPTH)/rdpsim/tools/tab2wvs
VSIG = $(PRDEPTH)/rdpsim/tools/vsig
XNET = $(PRDEPTH)/rdpsim/tools/xnet
ASYIN = /ecad/ecs/ecs_2.4/bin/asyin
MAKEINI = /ecad/ecs/ecs_2.4/bin/makeini
#VCSDIR = /ecad/vcs/vcs_2.2/sgi
VCSDIR = /ecad/vcs
VCS = $(VCSDIR)/bin/vcs
LOG_RESULT = \
@echo -n "!!! $(*:T) of" `basename \`pwd\``": "; \
grep "number of errors" $*.out
LOG_ERROR = $(LOG_RESULT)
HOST_CCF = $(HOST_CC) -D_LANGUAGE_C