1#	$NetBSD: Makefile,v 1.10 2011/01/02 09:40:52 tsutsui Exp $
2
3S!= cd ${.CURDIR}/../../../..; pwd
4
5# DBG= -DDEBUG -DNETIF_DEBUG -DNFS_DEBUG -DRPC_DEBUG \
6# 	-DNET_DEBUG -DRARP_DEBUG -DETHER_DEBUG
7
8DEFS= ${DBG} #-fno-defer-pop
9
10CPPFLAGS+= -DSUPPORT_BOOTP -DSUPPORT_DHCP
11#CPPFLAGS+= -DSUPPORT_DHCP
12#CPPFLAGS+= -DSUPPORT_RARP -DSUPPORT_BOOTPARAM
13CPPFLAGS+= -DSUPPORT_NFS -DNFS_NOSYMLINK
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 libsa
23SA_AS= library
24SAMISCMAKEFLAGS= SA_USE_LOADFILE=yes SA_EXTRADIR=${.CURDIR}
25.include "${S}/lib/libsa/Makefile.inc"
26LIBSA= ${SALIB}
27
28### find out what to use for libkern
29KERN_AS= library
30.include "${S}/lib/libkern/Makefile.inc"
31LIBKERN= ${KERNLIB}
32
33LIBS= ${LIBSA} ${LIBKERN}
34
35CLEANFILES+=	srt0.o
36
37all realall: ${LIBS} srt0.o
38
39cleandir distclean: .WAIT cleanlibdir
40 
41cleanlibdir:
42	rm -rf lib
43