Makefile.ramdisk revision 1.11
1#	$NetBSD: Makefile.ramdisk,v 1.11 2012/10/16 08:23:21 apb 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
14
15# Use ${.CURDIR}/list only if LISTS was not already defined by the caller.
16LISTS?=		${.CURDIR}/list
17LISTS+=		${I386COMMON}/list.ramdisk
18MTREECONF=	${DISTRIBDIR}/common/mtree.common
19IMAGEENDIAN=	le
20IMAGEDEPENDS+= 	${CRUNCHBIN} \
21		dot.profile \
22		${DESTDIR}/usr/mdec/boot \
23		${DESTDIR}/usr/mdec/bootxx_ffsv1 \
24		${DESTDIR}/usr/mdec/mbr \
25		${DESTDIR}/usr/mdec/mbr_ext \
26		${DESTDIR}/usr/mdec/mbr_bootsel \
27		${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd \
28		${NETBSDSRCDIR}/etc/netconfig ${DISTRIBDIR}/common/protocols \
29		${DISTRIBDIR}/common/services
30PARSELISTENV+=	BOOTMODEL=${BOOTMODEL:Q}
31
32# This propogates through to the link of ramdiskbin
33# The map file is useful when trying to prune the image
34LDFLAGS+=	-Wl,-Map,${CRUNCHBIN}.map,--cref
35CRUNCHENV += LDFLAGS=${LDFLAGS:Q}
36
37.if defined(USE_SYSINST)
38.if ${USE_SYSINST} != yes
39LISTS+=		${DISTRIBDIR}/common/list.sysinst.${USE_SYSINST}
40.else
41LISTS+=		${DISTRIBDIR}/common/list.sysinst
42.endif
43MAKEFS_FLAGS+=	-f 14
44.endif
45
46# Use stubs to eliminate some large stuff from libc
47HACKSRC=	${DISTRIBDIR}/utils/libhack
48.include	"${HACKSRC}/Makefile.inc"
49${CRUNCHBIN}:	libhack.o
50
51.include "${DISTRIBDIR}/common/Makefile.crunch"
52.include "${DISTRIBDIR}/common/Makefile.makedev"
53.include "${DISTRIBDIR}/common/Makefile.image"
54
55release:
56
57.include <bsd.prog.mk>
58