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