Home | History | Annotate | Line # | Download | only in stand
Makefile.inc revision 1.6
      1 #	$NetBSD: Makefile.inc,v 1.6 1999/02/22 11:57:18 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=-mmemcpy -mno-abicalls -G 128	# even smaller code
     19 
     20 # We are reasonably tight for space, ifdef away symlnks
     21 DEFS?=	-DSMALL -D_STANDALONE -D_NO_PROM_DEFINES -DUFS_NOCLOSE -DUFS_NOSYMLINK \
     22 	-DSA_NOPUTCHAR -DLIBSA_USE_MEMCPY -DLIBSA_USE_MEMSET
     23 INCL?=	-I. -I${.CURDIR} -I$S -I${.CURDIR}/../libsa -I$S/lib/libsa
     24 
     25 CFLAGS=	${COPTS} ${CWARN} ${INCPATH} ${DEFS} ${C_MACHDEP}
     26 AFLAGS=	-O2 ${INCPATH} ${DEFS} -D_LOCORE -D_KERNEL
     27 CPPFLAGS= ${INCL}
     28 
     29 # be sure to turn off any PIC flags for standalone library code.
     30 CPICFLAGS=
     31 CAPICFLAGS=
     32 CPPPICFLAGS=
     33 APICFLAGS=
     34