1 # $NetBSD: Makefile,v 1.34 2013/09/21 08:32:39 tsutsui Exp $ 2 3 S!= cd ${.CURDIR}/../../../..; pwd 4 5 # DBG= -DDEBUG -DNETIF_DEBUG -DNFS_DEBUG -DRPC_DEBUG \ 6 # -DNET_DEBUG -DRARP_DEBUG -DETHER_DEBUG 7 8 DEFS= ${DBG} #-fno-defer-pop 9 10 CPPFLAGS+= -DSUPPORT_BOOTP -DSUPPORT_DHCP 11 CPPFLAGS+= -DSUPPORT_RARP -DSUPPORT_BOOTPARAM 12 CPPFLAGS+= -DSUPPORT_NFS -DNFS_NOSYMLINK 13 14 .include "../Makefile.booters" 15 16 # only needed during build 17 libinstall:: 18 19 .include <bsd.prog.mk> 20 21 ### find out what to use for libsa 22 SA_AS= library 23 SAMISCMAKEFLAGS= SA_USE_LOADFILE=yes SA_EXTRADIR=${.CURDIR} 24 .include "${S}/lib/libsa/Makefile.inc" 25 LIBSA= ${SALIB} 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 LIBS= ${LIBSA} ${LIBKERN} 33 34 CLEANFILES+= SRT0.o 35 36 all realall: ${LIBS} SRT0.o 37 38 cleandir distclean: .WAIT cleanlibdir 39 40 cleanlibdir: 41 -rm -rf lib 42