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