Makefile revision 1.15
11.15Sjoerg# $NetBSD: Makefile,v 1.15 2014/03/04 17:57:56 joerg Exp $ 21.1Smrg 31.1SmrgCURDIR= ${.CURDIR} 41.1SmrgS= ${CURDIR}/../../../.. 51.1Smrg 61.1Smrg# 71.1Smrg# Override normal settings 81.1Smrg# 91.1Smrg 101.1SmrgPROG= bootblk 111.1SmrgSRCS= bootblk.fth 121.1SmrgOBJS= 131.14SmattCLEANFILES= ffs.fth.h lfs.fth.h assym.fth.h.tmp \ 141.1Smrg bootblk bootblk.text bootblk.text.tmp 151.1Smrg 161.3StvNOMAN= # defined 171.3StvSTRIPFLAG= 181.1Smrg 191.1SmrgUSE_GENASSYM?= no 201.1Smrg 211.10StsutsuiINCLUDES= -I. -I$S/arch -I$S -I${S}/../common/include -nostdinc 221.8SthorpejCPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_LKM -D_KERNEL 231.1Smrg 241.13Seehffs.fth.h: genfth.cf machine sparc 251.8Sthorpej ${TOOL_GENASSYM} -f -- ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \ 261.15Sjoerg ${GENASSYM_CPPFLAGS} < ${.CURDIR}/genfth.cf >ffs.fth.h.tmp && \ 271.13Seeh mv -f ffs.fth.h.tmp ffs.fth.h 281.1Smrg 291.13Seehlfs.fth.h: genlfs.cf machine sparc 301.13Seeh ${TOOL_GENASSYM} -f -- ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \ 311.15Sjoerg ${GENASSYM_CPPFLAGS} < ${.CURDIR}/genlfs.cf >lfs.fth.h.tmp && \ 321.13Seeh mv -f lfs.fth.h.tmp lfs.fth.h 331.13Seeh 341.13Seehbootblk.text: bootblk.fth ffs.fth.h lfs.fth.h 351.11Sapb ${TOOL_AWK} '/fload/ { print "#include \"" $$2 "\"" }; !/fload/' \ 361.1Smrg ${.CURDIR}/bootblk.fth | /usr/bin/cpp -P >bootblk.text.tmp && 371.1Smrg mv -f bootblk.text.tmp bootblk.text 381.1Smrg 391.13Seehbootblk: bootblk.fth ffs.fth.h lfs.fth.h 401.5Slukem ${TOOL_FGEN} -o bootblk ${.CURDIR}/bootblk.fth 411.1Smrg 421.1Smrgbeforedepend: 431.6Smrg @touch .d 441.1Smrg 451.1Smrg# 461.1Smrg# The following are if you grab the fakeboot program from the Sun website 471.1Smrg# 481.1Smrg 491.1Smrgfake: bootblk bootblk.text 501.1Smrg ../fakeboot/fakeboot -elf32 <bootblk >/bootblk 511.1Smrg ../fakeboot/fakeboot -elf32 <bootblk.text >/bootblk.text 521.1Smrg 531.14Smatt.include <bsd.klinks.mk> 541.1Smrg.include <bsd.prog.mk> 55