Home | History | Annotate | Line # | Download | only in stand
Makefile.inc revision 1.9
      1 #	$NetBSD: Makefile.inc,v 1.9 1999/03/26 02:12:17 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 .BEGIN: machine
      9 depend all ${SRCS} ${OBJS}: machine
     10 CLEANFILES+= machine mips
     11 
     12 # Do `mips' link here too - can't just depend on target mips
     13 # because make finds sys/lib/libkern/mips...
     14 machine:
     15 	-rm -f ${.TARGET} mips
     16 	ln -s $S/arch/${MACHINE}/include ${.TARGET}
     17 	ln -s $S/arch/mips/include mips
     18 
     19 # Tailor C compilation for standalone environment.
     20 COPTS=	-Os				# -Os gives smaller code
     21 
     22 C_MACHDEP=-mmemcpy -mno-abicalls -G 128	# even smaller code
     23 
     24 DEFS?=	-DSMALL -D_STANDALONE -D_NO_PROM_DEFINES -DNO_ABICALLS \
     25 	${BOOTDEFADD}
     26 INCL?=	-nostdinc -I${.OBJDIR} -I$S -I${PMAX_STAND_DIR}/lib -I$S/lib/libsa
     27 
     28 CFLAGS+=	${CWARN} ${C_MACHDEP}
     29 AFLAGS+=	-D_LOCORE -D_KERNEL
     30 CPPFLAGS+=	${DEFS} ${INCL}
     31 
     32 # be sure to turn off any PIC flags for standalone library code.
     33 CPICFLAGS=
     34 CAPICFLAGS=
     35 CPPPICFLAGS=
     36 APICFLAGS=
     37