Makefile revision 1.10
1# $NetBSD: Makefile,v 1.10 2009/04/03 10:38:13 tsutsui Exp $ 2 3WARNS?= 1 4S= ${.CURDIR}/../../../.. 5 6OBJS= romcalls.o 7 8CFLAGS= -Os -ffreestanding -mmemcpy -mno-abicalls -msoft-float -G 0 9CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith 10 11CPPFLAGS+= -D_STANDALONE #-DBOOT_DEBUG 12CPPFLAGS+= -DHAVE_CHANGEDISK_HOOK 13CPPFLAGS+= -I. -I${S} 14CPPFLAGS+= -D__daddr_t=int32_t 15 16AFLAGS= -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 25SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes 26.include "${S}/lib/libsa/Makefile.inc" 27 28.if !make(obj) && !make(clean) && !make(cleandir) 29.BEGIN: 30 @[ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine 31 @[ -h mips ] || ln -s ${S}/arch/mips/include mips 32.NOPATH: machine mips 33.endif 34CLEANFILES+= machine mips 35 36realall: ${OBJS} ${KERNLIB} ${ZLIB} ${SALIB} 37# ln -s ${KERNLIB} 38# ln -s ${ZLIB} 39# ln -s ${SALIB} 40 41.include <bsd.prog.mk> 42