1 # $NetBSD: Makefile,v 1.19 2009/03/15 06:04:02 tsutsui Exp $
7 COMMON
= ${.CURDIR
}/..
/common
8 COMMONOBJ
!= cd
${COMMON} && ${PRINTOBJDIR}
13 SRCS
= start.S bootxx.c
20 S
!= cd
${.CURDIR
}/..
/..
/..
/..
; pwd
22 LINKFLAGS
= -x
-N
-Ttext
0 -e start
23 CFLAGS
= -Os
-Wall
-Werror
24 CFLAGS
+= -Wmissing-prototypes
-Wstrict-prototypes
-Wpointer-arith
25 #CFLAGS+= -Wno-format-zero-length -Wno-sign-compare
27 CPPFLAGS
+= -D_STANDALONE
# -DBOOTXX_DEBUG
28 CPPFLAGS
+= -nostdinc
-I
${.OBJDIR
} -I
${S}
31 CLEANFILES
+= ${PROG}.sym
34 LIBS
= ${L}/sa
/libsa.a
${L}/kern
/libkern.a
36 ${PROG}: ${OBJS} ${LIBS}
38 ${LD} ${LINKFLAGS} -o
${.TARGET
}.sym
${OBJS} ${LIBS}
39 ${SIZE} ${.TARGET
}.sym
40 ${OBJCOPY} -O binary
${.TARGET
}.sym
${.TARGET
}
42 .
include <bsd.klinks.mk
>
43 .
include <bsd.prog.mk
>