Sync usage with man page.
[netbsd-mini2440.git] / sys / arch / newsmips / stand / common / Makefile
blob528a3b1f24f3c2e548a49548c2f3876dd4521370
1 # $NetBSD: Makefile,v 1.10 2009/04/03 10:38:13 tsutsui Exp $
3 WARNS?= 1
4 S!= cd ${.CURDIR}/../../../..; pwd
6 OBJS= romcalls.o
8 CFLAGS= -Os -ffreestanding -mmemcpy -mno-abicalls -msoft-float -G 0
9 CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
11 CPPFLAGS+= -D_STANDALONE #-DBOOT_DEBUG
12 CPPFLAGS+= -DHAVE_CHANGEDISK_HOOK
13 CPPFLAGS+= -I. -I${S}
14 CPPFLAGS+= -D__daddr_t=int32_t
16 AFLAGS= -D_LOCORE -mno-abicalls
18 ### find out what to use for libkern
19 .include "${S}/lib/libkern/Makefile.inc"
21 ### find out what to use for libz
22 .include "${S}/lib/libz/Makefile.inc"
24 ### find out what to use for libsa
25 SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes
26 .include "${S}/lib/libsa/Makefile.inc"
28 realall: ${OBJS} ${KERNLIB} ${ZLIB} ${SALIB}
29 # ln -s ${KERNLIB}
30 # ln -s ${ZLIB}
31 # ln -s ${SALIB}
33 .include <bsd.klinks.mk>
34 .include <bsd.prog.mk>