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