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