1 1.3 simonb # $NetBSD: Makefile.inc,v 1.3 1999/01/22 14:05:05 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.1 simonb # Tailor C compilation for standalone environment. 9 1.2 simonb COPTS= -O2 # -O2 gives smaller code 10 1.1 simonb 11 1.3 simonb C_MACHDEP=-mno-abicalls -G 64 # may give smaller code 12 1.1 simonb 13 1.1 simonb # We are so tight for space, ifdef away symlnks and spinning propellers. 14 1.3 simonb DEFS?= -D_STANDALONE -DSMALL -DNO_TWIDDLE 15 1.3 simonb INCL?= -I${.CURDIR} -I$S -I${.CURDIR}/../libsa -I$S/lib/libsa 16 1.1 simonb 17 1.2 simonb CFLAGS= ${COPTS} ${CWARN} ${INCPATH} ${DEFS} ${C_MACHDEP} 18 1.1 simonb AFLAGS= -O2 ${INCPATH} ${DEFS} -D_LOCORE 19 1.3 simonb CPPFLAGS= ${INCL} 20 1.1 simonb 21 1.1 simonb # be sure to turn off any PIC flags for standalone library code. 22 1.1 simonb CPICFLAGS= 23 1.1 simonb CAPICFLAGS= 24 1.1 simonb CPPPICFLAGS= 25 1.1 simonb APICFLAGS= 26