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