Makefile revision 1.3
1#	$NetBSD: Makefile,v 1.3 2003/09/30 18:58:39 matt Exp $
2
3S= ${.CURDIR}/../../../..
4
5NOMAN= # defined
6
7CPPFLAGS+= -D_STANDALONE
8CPPFLAGS+= -I. -I${S} -I${.OBJDIR}
9CPPFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
10
11CFLAGS+= -ffreestanding
12
13CLEANFILES+= machine powerpc
14
15.BEGIN: machine powerpc
16.NOPATH: machine powerpc
17realdepend realall: machine powerpc
18
19machine::
20	-rm -f $@
21	ln -s ${S}/arch/${MACHINE}/include $@
22
23powerpc::
24	-rm -f $@
25	ln -s ${S}/arch/powerpc/include $@
26
27${OBJS}: machine powerpc
28
29### find out what to use for libkern
30KERN_AS=	library
31.include "${S}/lib/libkern/Makefile.inc"
32LIBKERN=	${KERNLIB}
33
34### find out what to use for libz
35Z_AS=		library
36.include "${S}/lib/libz/Makefile.inc"
37LIBZ=		${ZLIB}
38
39### find out what to use for libsa
40SA_AS=		library
41SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes
42.include "${S}/lib/libsa/Makefile.inc"
43LIBSA=		${SALIB}
44
45LIBS= ${LIBSA} ${LIBZ} ${LIBKERN}
46
47realall: ${LIBS}
48
49cleandir distclean: cleanlibdir
50
51cleanlibdir:
52	-rm -rf lib
53
54.include <bsd.prog.mk>
55