Makefile.ramdisk revision 1.1
1#	$NetBSD: Makefile.ramdisk,v 1.1 2006/06/02 22:11:07 hubertf Exp $
2
3.include <bsd.own.mk>
4.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
5
6I386COMMON=	${.CURDIR}/../common
7
8.PATH:		${I386COMMON}
9
10WARNS=		1
11DBG=		-Os
12
13CRUNCHBIN=	ramdiskbin
14LISTS=		${.CURDIR}/list ${I386COMMON}/list.ramdisk
15MTREECONF=	${DISTRIBDIR}/common/mtree.common
16IMAGEENDIAN=	le
17IMAGEDEPENDS+= 	${CRUNCHBIN} \
18		dot.profile termcap.mini \
19		${DESTDIR}/usr/mdec/boot \
20		${DESTDIR}/usr/mdec/bootxx_ffsv1 \
21		${DESTDIR}/usr/mdec/mbr \
22		${DESTDIR}/usr/mdec/mbr_ext \
23		${DESTDIR}/usr/mdec/mbr_bootsel \
24		${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd \
25		${NETBSDSRCDIR}/etc/netconfig ${NETBSDSRCDIR}/etc/protocols \
26		${NETBSDSRCDIR}/etc/services
27PARSELISTENV+=	BOOTMODEL=${BOOTMODEL:Q}
28
29# This propogates through to the link of ramdiskbin
30# The map file is useful when trying to prune the image
31CRUNCHENV += LDFLAGS='-Wl,-Map,${CRUNCHBIN}.map,--cref'
32
33.if defined(USE_SYSINST)
34.if ${USE_SYSINST} != yes
35LISTS+=		${DISTRIBDIR}/common/list.sysinst.${USE_SYSINST}
36.else
37LISTS+=		${DISTRIBDIR}/common/list.sysinst
38.endif
39MAKEFS_FLAGS+=	-f 14
40.endif
41
42# Use stubs to eliminate some large stuff from libc
43HACKSRC=	${DISTRIBDIR}/utils/libhack
44.include	"${HACKSRC}/Makefile.inc"
45${CRUNCHBIN}:	libhack.o
46
47.include "${DISTRIBDIR}/common/Makefile.crunch"
48.include "${DISTRIBDIR}/common/Makefile.makedev"
49.include "${DISTRIBDIR}/common/Makefile.image"
50
51release:
52
53.include <bsd.prog.mk>
54