1 # $NetBSD: Makefile,v 1.28 2011/12/25 06:09:09 tsutsui Exp $ 2 3 S= ${.CURDIR}/../../../.. 4 5 CFLAGS+= -m68020-60 6 7 CPPFLAGS+= -nostdinc -I${.OBJDIR} -I. -I${S} 8 CPPFLAGS+= -I${.CURDIR}/../libiocs -I${.CURDIR}/../common 9 CPPFLAGS+= -D_STANDALONE 10 CPPFLAGS+= -DHEAP_VARIABLE 11 CPPFLAGS+= -DHAVE_CHANGEDISK_HOOK 12 CPPFLAGS+= -DUSTAR_SECT_PER_CYL=16 13 CPPFLAGS+= -DLIBSA_ENABLE_LS_OP 14 #CPPFLAGS+= -DDEBUG 15 16 .PATH: ${LIBSADIR} ${LIBKERNDIR} ${LIBZDIR} ${LIBZDIST} 17 18 .include "../Makefile.booters" 19 20 # only needed during build 21 libinstall:: 22 23 .include <bsd.prog.mk> 24 25 ### find out what to use for libkern 26 KERN_AS= library 27 .include "${S}/lib/libkern/Makefile.inc" 28 LIBKERN= ${KERNLIB} 29 30 ### find out what to use for libz 31 Z_AS= library 32 .include "${S}/lib/libz/Makefile.inc" 33 LIBZ= ${ZLIB} 34 35 ### find out what to use for libsa 36 SA_AS= library 37 SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes SA_ENABLE_LS_OP=yes SA_EXTRADIR=${.CURDIR} 38 .include "${S}/lib/libsa/Makefile.inc" 39 LIBSA= ${SALIB} 40 41 LIBS= ${LIBKERN} ${LIBZ} ${LIBSA} 42 43 all realall: ${LIBS} 44 45 cleandir distclean: .WAIT cleanlibdir 46 47 cleanlibdir: 48 -rm -rf lib 49