Expand PMF_FN_* macros.
[netbsd-mini2440.git] / distrib / alpha / floppy-GENERIC / Makefile
bloba06a733718f7bb53eb0352d2ca0e92cd9a1f7c27
1 # $NetBSD: Makefile,v 1.19 2003/07/10 10:34:01 lukem Exp $
3 .include <bsd.own.mk>
4 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
6 .include <bsd.kernobj.mk>
8 # Stuff an arbitrary kernel onto a ustarfs boot floppy set.
10 # Optional variables available:
11 # FLOPPYKERNEL Path to kernel to stuff onto the floppy.
12 # [ ${KERNOBJDIR}/GENERIC/netbsd ]
14 # FLOPPYBASE Basename of floppies (written as "${FLOPPYBASE}N.fs")
15 # [ "generic" ]
17 # FLOPPYSIZE Size of a floppy. [ 2880 ]
19 # FLOPPYMAX Maximum number of floppies allowed in the set. [1]
21 FLOPPYKERNEL?= ${KERNOBJDIR}/GENERIC/netbsd
22 FLOPPYBASE?= generic
23 FLOPPYMAX?= 1
25 FLOPPY_RELEASEDIR?= installation/misc
27 .if defined(FLOPPYSIZE) && (${FLOPPYSIZE} != 2880)
28 FLOPPYMETAFILE!=printf "USTAR.volsize.%o" ${FLOPPYSIZE}
29 .else
30 FLOPPYSIZE= 2880
31 .endif
33 FLOPPYFILES= boot ${FLOPPYMETAFILE} netbsd
35 MDEC= ${DESTDIR}/usr/mdec
36 KERNOBJ!= cd ${.CURDIR}/../instkernel && ${PRINTOBJDIR}
37 FLOPPY_BOOT= ${MDEC}/ustarboot
38 FLOPPYINSTBOOT= "${TOOL_INSTALLBOOT} -v -m ${MACHINE} -t raw -b 17 @IMAGE@ ${FLOPPY_BOOT}"
40 netbsd: ${FLOPPYKERNEL}
41 @echo "Copying stripped and gzipped ${.ALLSRC} to ${.TARGET}"
42 @rm -f ${.TARGET} ${.TARGET}.tmp
43 cp ${.ALLSRC} ${.TARGET}.tmp
44 ${STRIP} ${.TARGET}.tmp
45 gzip -9nf ${.TARGET}.tmp
46 mv ${.TARGET}.tmp.gz ${.TARGET}
48 CLEANFILES+= netbsd netbsd.tmp netbsd.tmp.gz
50 .include "${DISTRIBDIR}/common/Makefile.tarfloppy"
52 .include <bsd.prog.mk>