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