Expand PMF_FN_* macros.
[netbsd-mini2440.git] / distrib / sun2 / miniroot / Makefile
blobc4e3151feff1cb3cdf89df556eda16b2769ba2cf
1 # $NetBSD: Makefile,v 1.30 2009/09/20 22:46:13 abs Exp $
3 .include <bsd.own.mk>
4 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
6 .include <bsd.kernobj.mk>
8 IMAGE= miniroot.fs
9 IMAGESIZE= 4m
10 MAKEFS_FLAGS= -o density=8k
12 KERNEL= ${KERNOBJDIR}/INSTALL/netbsd
14 WARNS= 1
15 DBG= -Os
17 CRUNCHBIN= instbin
18 CRUNCHGEN_FLAGS= -d "${DBG}"
20 LISTS= ${.CURDIR}/list
21 MTREECONF= ${.CURDIR}/mtree.conf
22 IMAGEENDIAN= be
23 PARSELISTENV= KERNEL=${KERNEL}
24 MAKEDEVTARGETS= std md0 cd0 st0 st1 sd0 sd1 sd2 xd0 xy0
25 IMAGEDEPENDS= ${CRUNCHBIN} \
26 ${KERNEL} \
27 fstab install.md profile \
28 ${DESTDIR}/dev/MAKEDEV ${DESTDIR}/dev/MAKEDEV.local \
29 ${DESTDIR}/etc/group \
30 ${DESTDIR}/etc/master.passwd ${DESTDIR}/etc/netconfig \
31 ${DESTDIR}/etc/passwd \
32 ${DISTRIBDIR}/common/protocols \
33 ${DESTDIR}/etc/pwd.db \
34 ${DISTRIBDIR}/common/services \
35 ${DISTRIBDIR}/common/termcap \
36 ${DESTDIR}/etc/spwd.db \
37 ${DESTDIR}/usr/mdec/bootxx ${DESTDIR}/usr/mdec/bootyy \
38 ${DESTDIR}/usr/mdec/netboot ${DESTDIR}/usr/mdec/tapeboot \
39 ${DESTDIR}/usr/mdec/ufsboot \
40 ${DISTRIBDIR}/miniroot/install.sh \
41 ${DISTRIBDIR}/miniroot/upgrade.sh \
42 install.sub
44 IMAGEPOSTBUILD= ${TOOL_INSTALLBOOT} -v -m ${MACHINE} ${IMAGE} \
45 ${DESTDIR}/usr/mdec/bootxx /ufsboot
46 IMAGE_RELEASEDIR= installation/miniroot
48 # Use stubs to eliminate some large stuff from libc
49 HACKSRC= ${DISTRIBDIR}/utils/libhack
50 .include "${HACKSRC}/Makefile.inc"
51 ${CRUNCHBIN}: libhack.o
53 install.sub: ${DISTRIBDIR}/miniroot/install.sub
54 ${TOOL_SED} -e "/^VERSION=/s/=.*/=${DISTRIBREV}/" < $? > $@
56 CLEANFILES+= install.sub
58 .include "${DISTRIBDIR}/common/Makefile.crunch"
59 .include "${DISTRIBDIR}/common/Makefile.makedev"
60 .include "${DISTRIBDIR}/common/Makefile.image"
62 .include <bsd.prog.mk>