1#	$NetBSD: Makefile,v 1.33 2011/01/02 05:30:12 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
11CPPFLAGS+= -DSUPPORT_RARP -DSUPPORT_BOOTPARAM
12CPPFLAGS+= -DSUPPORT_NFS -DNFS_NOSYMLINK
13
14.include "../Makefile.booters"
15
16# only needed during build
17libinstall::
18
19.include <bsd.prog.mk>
20
21### find out what to use for libsa
22SA_AS= library
23SAMISCMAKEFLAGS= SA_USE_LOADFILE=yes SA_EXTRADIR=${.CURDIR}
24.include "${S}/lib/libsa/Makefile.inc"
25LIBSA= ${SALIB}
26
27### find out what to use for libkern
28KERN_AS= library
29.include "${S}/lib/libkern/Makefile.inc"
30LIBKERN= ${KERNLIB}
31
32LIBS= ${LIBSA} ${LIBKERN}
33
34CLEANFILES+= SRT0.o
35
36all realall: ${LIBS} SRT0.o
37
38cleandir distclean: .WAIT cleanlibdir
39
40cleanlibdir:
41	-rm -rf lib
42