1 # $NetBSD: Makefile,v 1.26 2009/03/15 06:04:02 tsutsui Exp $
7 COMMON
= ${.CURDIR
}/..
/common
8 COMMONOBJ
!= cd
${COMMON} && ${PRINTOBJDIR}
13 SRCS
= locore.S boot.c devopen.c
17 S
= ${.CURDIR
}/..
/..
/..
/..
19 LINKFLAGS
= -x
-N
-Ttext
3e0000
-e start
20 CFLAGS
= -Os
-Wall
-Werror
21 CFLAGS
+= -Wmissing-prototypes
-Wstrict-prototypes
-Wpointer-arith
22 #CFLAGS+= -Wno-format-zero-length -Wno-sign-compare
24 CPPFLAGS
+= -D_STANDALONE
# -DBOOT_DEBUG
25 CPPFLAGS
+= -nostdinc
-I
${.OBJDIR
} -I
${S}
26 CPPFLAGS
+= -D__daddr_t
=int32_t
29 CLEANFILES
+= ${PROG}.sym
32 LIBS
= ${L}/sa
/libsa.a
${L}/kern
/libkern.a
${L}/z
/libz.a
34 ${PROG}: ${OBJS} ${LIBS}
36 ${LD} ${LINKFLAGS} -o
${.TARGET
}.sym
${OBJS} ${LIBS}
37 -${SIZE} ${.TARGET
}.sym
38 ${OBJCOPY} -O binary
${.TARGET
}.sym
${.TARGET
}
40 .
include <bsd.klinks.mk
>
41 .
include <bsd.prog.mk
>