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