Home | History | Annotate | Line # | Download | only in common
Makefile revision 1.2
      1 #	$NetBSD: Makefile,v 1.2 2000/01/23 17:04:06 mycroft Exp $
      2 
      3 S= ${.CURDIR}/../../../..
      4 
      5 OBJS= romcalls.o
      6 
      7 CFLAGS= -Os -G 0 -mno-abicalls -Wall
      8 
      9 CPPFLAGS+= -D_STANDALONE #-DBOOT_DEBUG
     10 CPPFLAGS+= -I. -I${S}
     11 
     12 AFLAGS= -D_LOCORE
     13 
     14 ### find out what to use for libkern
     15 .include "${S}/lib/libkern/Makefile.inc"
     16 
     17 ### find out what to use for libz
     18 .include "${S}/lib/libz/Makefile.inc"
     19 
     20 ### find out what to use for libsa
     21 SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes
     22 .include "${S}/lib/libsa/Makefile.inc"
     23 
     24 .if !make(obj) && !make(clean)
     25 .BEGIN:
     26 	@[ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine
     27 	@[ -h mips ] || ln -s ${S}/arch/mips/include mips
     28 .NOPATH: machine mips
     29 CLEANFILES+= machine mips
     30 .endif
     31 
     32 realall: ${OBJS} ${KERNLIB} ${ZLIB} ${SALIB}
     33 #	ln -s ${KERNLIB}
     34 #	ln -s ${ZLIB}
     35 #	ln -s ${SALIB}
     36 
     37 .include <bsd.prog.mk>
     38