1 # $NetBSD: Makefile,v 1.31 2016/01/17 04:47:59 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=30 13 CPPFLAGS+= -DLIBSA_ENABLE_LS_OP 14 CPPFLAGS+= -DLIBSA_CREAD_NOCRC 15 CPPFLAGS+= -DSUPPORT_BOOTP -DSUPPORT_DHCP 16 #CPPFLAGS+= -DDEBUG 17 18 .PATH: ${LIBSADIR} ${LIBKERNDIR} ${LIBZDIR} ${LIBZDIST} 19 20 .include "../Makefile.booters" 21 22 # only needed during build 23 libinstall:: 24 25 .include <bsd.prog.mk> 26 27 ### find out what to use for libkern 28 KERN_AS= library 29 .include "${S}/lib/libkern/Makefile.inc" 30 LIBKERN= ${KERNLIB} 31 32 ### find out what to use for libz 33 Z_AS= library 34 .include "${S}/lib/libz/Makefile.inc" 35 LIBZ= ${ZLIB} 36 37 ### find out what to use for libsa 38 SA_AS= library 39 SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes SA_ENABLE_LS_OP=yes SA_EXTRADIR=${.CURDIR} 40 .include "${S}/lib/libsa/Makefile.inc" 41 LIBSA= ${SALIB} 42 43 LIBS= ${LIBKERN} ${LIBZ} ${LIBSA} 44 45 all realall: ${LIBS} 46 47 cleandir distclean: .WAIT cleanlibdir 48 49 cleanlibdir: 50 -rm -rf lib 51