Home | History | Annotate | Line # | Download | only in stand
Makefile.booters revision 1.5
      1 #	$NetBSD: Makefile.booters,v 1.5 2009/01/12 07:56:31 tsutsui Exp $
      2 
      3 S?=	${.CURDIR}/../../../..
      4 
      5 CFLAGS+= -ffreestanding
      6 CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
      7 CFLAGS+= -Wno-pointer-sign
      8 CFLAGS+= -Werror
      9 
     10 .if !make(obj) && !make(clean) && !make(cleandir)
     11 .NOPATH: machine ${MACHINE_ARCH}
     12 .BEGIN: machine ${MACHINE_ARCH}
     13 
     14 machine::
     15 	-rm -f machine && \
     16 	ln -s $S/arch/${MACHINE}/include machine
     17 
     18 m68k::
     19 	-rm -f ${MACHINE_ARCH} && \
     20 	ln -s $S/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH}
     21 .endif
     22 
     23 CLEANFILES+=	machine ${MACHINE_ARCH}
     24 
     25 
     26 # XXX SHOULD NOT NEED TO DEFINE THESE!
     27 LIBCRT0=
     28 LIBC=
     29 LIBCRTBEGIN=
     30 LIBCRTEND=
     31