1 # $NetBSD: Makefile,v 1.11 2008/10/19 22:05:21 apb Exp $
4 S
= ${CURDIR}/..
/..
/..
/..
7 # Override normal settings
13 CLEANFILES
= assym.fth.h assym.fth.h.tmp machine sparc \
14 bootblk bootblk.text bootblk.text.tmp
21 INCLUDES
= -I.
-I
$S/arch
-I
$S -I
${S}/..
/common
/include -nostdinc
22 CPPFLAGS
= ${INCLUDES} ${IDENT} ${PARAM} -D_LKM
-D_KERNEL
24 #all:: bootblk.text bootblk
27 # rm assym.fth.h bootblk.text machine bootblk
30 ln
-s
${.CURDIR
}/..
/..
/..
/sparc
/include sparc
33 ln
-s
${.CURDIR
}/..
/..
/..
/${MACHINE}/include machine
35 assym.fth.h
: genfth.cf machine sparc
36 ${TOOL_GENASSYM} -f
-- ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
37 <${.CURDIR
}/genfth.cf
>assym.fth.h.tmp
&& \
38 mv
-f assym.fth.h.tmp assym.fth.h
40 bootblk.text
: bootblk.fth assym.fth.h
41 ${TOOL_AWK} '/fload/ { print "#include \"" $$2 "\"" }; !/fload/' \
42 ${.CURDIR
}/bootblk.fth |
/usr
/bin
/cpp -P
>bootblk.text.tmp
&&
43 mv
-f bootblk.text.tmp bootblk.text
45 bootblk
: bootblk.fth assym.fth.h
46 ${TOOL_FGEN} -o bootblk
${.CURDIR
}/bootblk.fth
52 # The following are if you grab the fakeboot program from the Sun website
55 fake
: bootblk bootblk.text
56 ..
/fakeboot
/fakeboot
-elf32
<bootblk
>/bootblk
57 ..
/fakeboot
/fakeboot
-elf32
<bootblk.text
>/bootblk.text
59 .
include <bsd.prog.mk
>