Home | History | Annotate | Line # | Download | only in common
Makefile revision 1.3
      1 #	$NetBSD: Makefile,v 1.3 2002/04/13 02:30:30 tsutsui 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+= -DLIBSA_USE_MEMSET -DLIBSA_USE_MEMCPY
     11 CPPFLAGS+= -I. -I${S}
     12 
     13 AFLAGS= -D_LOCORE
     14 
     15 ### find out what to use for libkern
     16 .include "${S}/lib/libkern/Makefile.inc"
     17 
     18 ### find out what to use for libz
     19 .include "${S}/lib/libz/Makefile.inc"
     20 
     21 ### find out what to use for libsa
     22 SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes
     23 .include "${S}/lib/libsa/Makefile.inc"
     24 
     25 .if !make(obj) && !make(clean)
     26 .BEGIN:
     27 	@[ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine
     28 	@[ -h mips ] || ln -s ${S}/arch/mips/include mips
     29 .NOPATH: machine mips
     30 CLEANFILES+= machine mips
     31 .endif
     32 
     33 realall: ${OBJS} ${KERNLIB} ${ZLIB} ${SALIB}
     34 #	ln -s ${KERNLIB}
     35 #	ln -s ${ZLIB}
     36 #	ln -s ${SALIB}
     37 
     38 .include <bsd.prog.mk>
     39