1 # $NetBSD: Makefile,v 1.1.2.1 1999/12/27 18:33:11 wrstuden Exp $ 2 3 S= ${.CURDIR}/../../../.. 4 5 OBJS= romcalls.o 6 7 CLEANFILES+= machine mips 8 9 CFLAGS= -Os -G 0 -mno-abicalls -Wall 10 11 CPPFLAGS+= -D_STANDALONE #-DBOOT_DEBUG 12 CPPFLAGS+= -I. -I${S} 13 14 AFLAGS= -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 23 SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes 24 .include "${S}/lib/libsa/Makefile.inc" 25 26 .if !make(obj) && !make(clean) 27 .BEGIN: 28 @[ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine 29 @[ -h mips ] || ln -s ${S}/arch/mips/include mips 30 .endif 31 32 all: ${OBJS} ${KERNLIB} ${ZLIB} ${SALIB} 33 # ln -s ${KERNLIB} 34 # ln -s ${ZLIB} 35 # ln -s ${SALIB} 36 37 .include <bsd.prog.mk> 38