PRdefs 1.25 KB
#
# 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