1 # $NetBSD: Makefile,v 1.9 2005/12/28 08:44:27 skrll Exp $ 2 3 S= ${.CURDIR}/../../../.. 4 5 NOMAN= # defined 6 7 CFLAGS= -Os -Wall 8 9 CPPFLAGS+= -D_STANDALONE 10 CPPFLAGS+= -DLIBSA_USE_MEMCPY -DLIBSA_USE_MEMSET 11 CPPFLAGS+= -nostdinc -I${.OBJDIR} -I${S} -I. 12 CPPFLAGS+= -D__daddr_t=int32_t 13 AFLAGS= -D_LOCORE 14 15 CLEANFILES+= machine m68k 16 17 .if !make(obj) && !make(clean) && !make(cleandir) 18 .PHONY: machine-links 19 beforedepend: machine-links 20 machine-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 30 KERN_AS= library 31 .include "${S}/lib/libkern/Makefile.inc" 32 LIBKERN= ${KERNLIB} 33 34 ### find out what to use for libz 35 Z_AS= library 36 .include "${S}/lib/libz/Makefile.inc" 37 LIBZ= ${ZLIB} 38 39 ### find out what to use for libsa 40 SA_AS= library 41 SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes 42 .include "${S}/lib/libsa/Makefile.inc" 43 LIBSA= ${SALIB} 44 45 LIBS= ${LIBSA} ${LIBZ} ${LIBKERN} 46 47 realall: machine-links ${LIBS} 48 49 cleandir distclean: cleanlibdir 50 51 cleanlibdir: 52 -rm -rf lib 53