1 # $NetBSD: Makefile,v 1.14 2006/06/29 03:46:43 lukem Exp $
16 STRIP?
= /usr
/bin
/strip
19 KERN
!= cd
${.CURDIR
}/..
/..
/..
/..
; pwd
21 CPPFLAGS
+= -D_STANDALONE
22 CPPFLAGS
+= -nostdinc
-I
${KERN} -I
${.CURDIR
} -I.
23 #CPPFLAGS+= -I${.CURDIR}/../libiocs
24 CPPFLAGS
+= -DTEXTADDR
="0x${TEXT}"
25 CPPFLAGS
+= -DBOOT
=\"${BOOT}\" -DBOOT_VERS
=\"${VERSION}\"
26 CFLAGS
= -Wno-main
-Os
-m68000
28 LINKFLAGS
= -N
-static
-Ttext
${TEXT}
30 .
include "../Makefile.booters"
35 ${LD} ${LINKFLAGS} -o
${BOOT}.x
${OBJS} ${LDLIBS}
37 # dd bs=32 skip=1 count=32 if=${BOOT}.x of=${BOOT}
38 ${OBJCOPY} -O binary
${BOOT}.x
${BOOT}
40 CLEANFILES
+= ${BOOT}.x
42 .
include <bsd.prog.mk
>