Makefile revision 1.3
1#	$NetBSD: Makefile,v 1.3 2002/04/13 02:30:30 tsutsui Exp $
2
3S= ${.CURDIR}/../../../..
4
5OBJS= romcalls.o
6
7CFLAGS= -Os -mmemcpy -mno-abicalls -G 0 -Wall
8
9CPPFLAGS+= -D_STANDALONE #-DBOOT_DEBUG
10CPPFLAGS+= -DLIBSA_USE_MEMSET -DLIBSA_USE_MEMCPY
11CPPFLAGS+= -I. -I${S}
12
13AFLAGS= -D_LOCORE
14
15### find out what to use for libkern
16.include "${S}/lib/libkern/Makefile.inc"
17
18### find out what to use for libz
19.include "${S}/lib/libz/Makefile.inc"
20
21### find out what to use for libsa
22SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes
23.include "${S}/lib/libsa/Makefile.inc"
24
25.if !make(obj) && !make(clean)
26.BEGIN:
27	@[ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine
28	@[ -h mips ] || ln -s ${S}/arch/mips/include mips
29.NOPATH: machine mips
30CLEANFILES+= machine mips
31.endif
32
33realall: ${OBJS} ${KERNLIB} ${ZLIB} ${SALIB}
34#	ln -s ${KERNLIB}
35#	ln -s ${ZLIB}
36#	ln -s ${SALIB}
37
38.include <bsd.prog.mk>
39