1# $NetBSD: Makefile,v 1.7 2002/11/22 16:38:23 tsutsui Exp $ 2 3WARNS?= 1 4S= ${.CURDIR}/../../../.. 5 6OBJS= romcalls.o 7 8CFLAGS= -Os -ffreestanding -mmemcpy -mno-abicalls -msoft-float -G 0 9 10CPPFLAGS+= -D_STANDALONE #-DBOOT_DEBUG 11CPPFLAGS+= -DHAVE_CHANGEDISK_HOOK 12CPPFLAGS+= -DLIBSA_USE_MEMSET -DLIBSA_USE_MEMCPY 13CPPFLAGS+= -I. -I${S} 14 15AFLAGS= -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 24SAMISCMAKEFLAGS= 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 33CLEANFILES+= machine mips 34 35realall: ${OBJS} ${KERNLIB} ${ZLIB} ${SALIB} 36# ln -s ${KERNLIB} 37# ln -s ${ZLIB} 38# ln -s ${SALIB} 39 40.include <bsd.prog.mk> 41