1 # $NetBSD: Makefile,v 1.7 2002/11/22 16:38: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 15 AFLAGS= -D_LOCORE -mno-abicalls 16 17 ### find out what to use for libkern 18 .include "${S}/lib/libkern/Makefile.inc" 19 20 ### find out what to use for libz 21 .include "${S}/lib/libz/Makefile.inc" 22 23 ### find out what to use for libsa 24 SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes 25 .include "${S}/lib/libsa/Makefile.inc" 26 27 .if !make(obj) && !make(clean) && !make(cleandir) 28 .BEGIN: 29 @[ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine 30 @[ -h mips ] || ln -s ${S}/arch/mips/include mips 31 .NOPATH: machine mips 32 .endif 33 CLEANFILES+= machine mips 34 35 realall: ${OBJS} ${KERNLIB} ${ZLIB} ${SALIB} 36 # ln -s ${KERNLIB} 37 # ln -s ${ZLIB} 38 # ln -s ${SALIB} 39 40 .include <bsd.prog.mk> 41