PRdefs
1.25 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
#
# Commondefs for BB player source tree
#
# Makefiles which include this should first define PRDEPTH or BBDEPTH
# to be the relative path from their parent directory.
include ./include/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 -mno-abicalls -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 = -DBBPLAYER
#CVERSION=-ansi
CVERSION=
else
GCDEFS = $(HW_FLAGS) -Wab,-r4300_mul
endif
SHELL = /bin/sh
LOG_RESULT = \
@echo -n "!!! $(*:T) of" `basename \`pwd\``": "; \
grep "number of errors" $*.out
LOG_ERROR = $(LOG_RESULT)
HOST_CC += -DBBPLAYER
HOST_CCF = $(HOST_CC) -D_LANGUAGE_C