1 1.4 simonb # $NetBSD: Makefile.inc,v 1.4 1999/01/29 05:51:15 simonb Exp $ 2 1.1 simonb # 3 1.1 simonb # NOTE: $S must correspond to the top of the 'sys' tree 4 1.1 simonb 5 1.2 simonb BINDIR= /usr/mdec 6 1.2 simonb BINMODE=444 7 1.2 simonb 8 1.4 simonb beforedepend ${OBJS}: machine 9 1.4 simonb CLEANFILES+=machine 10 1.4 simonb 11 1.4 simonb machine: 12 1.4 simonb -rm -f ${.TARGET} 13 1.4 simonb ln -s $S/arch/pmax/include ${.TARGET} 14 1.4 simonb 15 1.1 simonb # Tailor C compilation for standalone environment. 16 1.2 simonb COPTS= -O2 # -O2 gives smaller code 17 1.1 simonb 18 1.3 simonb C_MACHDEP=-mno-abicalls -G 64 # may give smaller code 19 1.1 simonb 20 1.1 simonb # We are so tight for space, ifdef away symlnks and spinning propellers. 21 1.3 simonb DEFS?= -D_STANDALONE -DSMALL -DNO_TWIDDLE 22 1.4 simonb INCL?= -I. -I${.CURDIR} -I$S -I${.CURDIR}/../libsa -I$S/lib/libsa 23 1.1 simonb 24 1.2 simonb CFLAGS= ${COPTS} ${CWARN} ${INCPATH} ${DEFS} ${C_MACHDEP} 25 1.4 simonb AFLAGS= -O2 ${INCPATH} ${DEFS} -D_LOCORE -D_KERNEL 26 1.3 simonb CPPFLAGS= ${INCL} 27 1.1 simonb 28 1.1 simonb # be sure to turn off any PIC flags for standalone library code. 29 1.1 simonb CPICFLAGS= 30 1.1 simonb CAPICFLAGS= 31 1.1 simonb CPPPICFLAGS= 32 1.1 simonb APICFLAGS= 33