1 # $NetBSD: Makefile,v 1.10 2009/04/03 10:38:13 tsutsui Exp $
4 S
!= cd
${.CURDIR
}/..
/..
/..
/..
; pwd
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
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}
33 .
include <bsd.klinks.mk
>
34 .
include <bsd.prog.mk
>