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