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