1 # $NetBSD: Makefile,v 1.9 2009/01/12 06:52:15 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 CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith 10 11 CPPFLAGS+= -D_STANDALONE #-DBOOT_DEBUG 12 CPPFLAGS+= -DHAVE_CHANGEDISK_HOOK 13 CPPFLAGS+= -DLIBSA_USE_MEMSET -DLIBSA_USE_MEMCPY 14 CPPFLAGS+= -I. -I${S} 15 CPPFLAGS+= -D__daddr_t=int32_t 16 17 AFLAGS= -D_LOCORE -mno-abicalls 18 19 ### find out what to use for libkern 20 .include "${S}/lib/libkern/Makefile.inc" 21 22 ### find out what to use for libz 23 .include "${S}/lib/libz/Makefile.inc" 24 25 ### find out what to use for libsa 26 SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes 27 .include "${S}/lib/libsa/Makefile.inc" 28 29 .if !make(obj) && !make(clean) && !make(cleandir) 30 .BEGIN: 31 @[ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine 32 @[ -h mips ] || ln -s ${S}/arch/mips/include mips 33 .NOPATH: machine mips 34 .endif 35 CLEANFILES+= machine mips 36 37 realall: ${OBJS} ${KERNLIB} ${ZLIB} ${SALIB} 38 # ln -s ${KERNLIB} 39 # ln -s ${ZLIB} 40 # ln -s ${SALIB} 41 42 .include <bsd.prog.mk> 43