Makefile.ramdisk revision 1.1
11.1Shubertf#	$NetBSD: Makefile.ramdisk,v 1.1 2006/06/02 22:11:07 hubertf Exp $
21.1Shubertf
31.1Shubertf.include <bsd.own.mk>
41.1Shubertf.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
51.1Shubertf
61.1ShubertfI386COMMON=	${.CURDIR}/../common
71.1Shubertf
81.1Shubertf.PATH:		${I386COMMON}
91.1Shubertf
101.1ShubertfWARNS=		1
111.1ShubertfDBG=		-Os
121.1Shubertf
131.1ShubertfCRUNCHBIN=	ramdiskbin
141.1ShubertfLISTS=		${.CURDIR}/list ${I386COMMON}/list.ramdisk
151.1ShubertfMTREECONF=	${DISTRIBDIR}/common/mtree.common
161.1ShubertfIMAGEENDIAN=	le
171.1ShubertfIMAGEDEPENDS+= 	${CRUNCHBIN} \
181.1Shubertf		dot.profile termcap.mini \
191.1Shubertf		${DESTDIR}/usr/mdec/boot \
201.1Shubertf		${DESTDIR}/usr/mdec/bootxx_ffsv1 \
211.1Shubertf		${DESTDIR}/usr/mdec/mbr \
221.1Shubertf		${DESTDIR}/usr/mdec/mbr_ext \
231.1Shubertf		${DESTDIR}/usr/mdec/mbr_bootsel \
241.1Shubertf		${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd \
251.1Shubertf		${NETBSDSRCDIR}/etc/netconfig ${NETBSDSRCDIR}/etc/protocols \
261.1Shubertf		${NETBSDSRCDIR}/etc/services
271.1ShubertfPARSELISTENV+=	BOOTMODEL=${BOOTMODEL:Q}
281.1Shubertf
291.1Shubertf# This propogates through to the link of ramdiskbin
301.1Shubertf# The map file is useful when trying to prune the image
311.1ShubertfCRUNCHENV += LDFLAGS='-Wl,-Map,${CRUNCHBIN}.map,--cref'
321.1Shubertf
331.1Shubertf.if defined(USE_SYSINST)
341.1Shubertf.if ${USE_SYSINST} != yes
351.1ShubertfLISTS+=		${DISTRIBDIR}/common/list.sysinst.${USE_SYSINST}
361.1Shubertf.else
371.1ShubertfLISTS+=		${DISTRIBDIR}/common/list.sysinst
381.1Shubertf.endif
391.1ShubertfMAKEFS_FLAGS+=	-f 14
401.1Shubertf.endif
411.1Shubertf
421.1Shubertf# Use stubs to eliminate some large stuff from libc
431.1ShubertfHACKSRC=	${DISTRIBDIR}/utils/libhack
441.1Shubertf.include	"${HACKSRC}/Makefile.inc"
451.1Shubertf${CRUNCHBIN}:	libhack.o
461.1Shubertf
471.1Shubertf.include "${DISTRIBDIR}/common/Makefile.crunch"
481.1Shubertf.include "${DISTRIBDIR}/common/Makefile.makedev"
491.1Shubertf.include "${DISTRIBDIR}/common/Makefile.image"
501.1Shubertf
511.1Shubertfrelease:
521.1Shubertf
531.1Shubertf.include <bsd.prog.mk>
54