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