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