1# $NetBSD: Makefile,v 1.10 2010/05/27 06:58:15 dholland Exp $ 2 3S= ${.CURDIR}/../../../.. 4 5NOMAN= # defined 6 7CPPFLAGS+= -D_STANDALONE 8CPPFLAGS+= -D__daddr_t=int32_t 9CPPFLAGS+= -I. -I${S} -I${.OBJDIR} 10CPPFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes 11 12CFLAGS= -Os -mmultiple -ffreestanding 13 14CLEANFILES+= machine powerpc 15 16.if !make(obj) && !make(clean) && !make(cleandir) 17.PHONY: machine-links 18beforedepend: machine-links 19 20machine-links: 21 -rm -f machine 22 ln -s ${S}/arch/${MACHINE}/include machine 23 -rm -f ${MACHINE_ARCH} 24 ln -s ${S}/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH} 25.endif 26 27.include <bsd.prog.mk> 28 29### find out what to use for libkern 30KERN_AS= library 31.include "${S}/lib/libkern/Makefile.inc" 32LIBKERN= ${KERNLIB} 33 34### find out what to use for libz 35Z_AS= library 36.include "${S}/lib/libz/Makefile.inc" 37LIBZ= ${ZLIB} 38 39### find out what to use for libsa 40SA_AS= library 41SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes SA_INCLUDE_NET=no 42.include "${S}/lib/libsa/Makefile.inc" 43LIBSA= ${SALIB} 44 45LIBS= ${LIBSA} ${LIBZ} ${LIBKERN} 46 47realall: machine-links ${LIBS} 48 49cleandir distclean: .WAIT cleanlibdir 50 51cleanlibdir: 52 -rm -rf lib 53