Home | History | Annotate | Line # | Download | only in common
      1 #	$NetBSD: Makefile,v 1.11 2009/04/15 17:15:13 tsutsui Exp $
      2 
      3 WARNS?= 1
      4 S!= cd ${.CURDIR}/../../../..; pwd
      5 
      6 OBJS= romcalls.o
      7 
      8 CFLAGS= -Os -ffreestanding -mmemcpy -mno-abicalls -msoft-float -G 0
      9 CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
     10 
     11 CPPFLAGS+= -D_STANDALONE #-DBOOT_DEBUG
     12 CPPFLAGS+= -DHAVE_CHANGEDISK_HOOK
     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 realall: ${OBJS} ${KERNLIB} ${ZLIB} ${SALIB}
     29 #	ln -s ${KERNLIB}
     30 #	ln -s ${ZLIB}
     31 #	ln -s ${SALIB}
     32 
     33 .include <bsd.klinks.mk>
     34 .include <bsd.prog.mk>
     35