1 # $NetBSD: Makefile.ramdisk,v 1.6 2009/09/20 19:49:08 abs Exp $
4 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
6 I386COMMON= ${.CURDIR}/../common
14 LISTS= ${I386COMMON}/list.ramdisk
15 LISTS+= ${.CURDIR}/list
16 MTREECONF= ${DISTRIBDIR}/common/mtree.common
18 IMAGEDEPENDS+= ${CRUNCHBIN} \
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 ${DISTRIBDIR}/common/protocols \
27 ${DISTRIBDIR}/common/services \
28 ${DISTRIBDIR}/common/termcap
29 PARSELISTENV+= BOOTMODEL=${BOOTMODEL:Q}
31 # This propogates through to the link of ramdiskbin
32 # The map file is useful when trying to prune the image
33 CRUNCHENV += LDFLAGS='-Wl,-Map,${CRUNCHBIN}.map,--cref'
35 .if defined(USE_SYSINST)
36 .if ${USE_SYSINST} != yes
37 LISTS+= ${DISTRIBDIR}/common/list.sysinst.${USE_SYSINST}
39 LISTS+= ${DISTRIBDIR}/common/list.sysinst
44 # Use stubs to eliminate some large stuff from libc
45 HACKSRC= ${DISTRIBDIR}/utils/libhack
46 .include "${HACKSRC}/Makefile.inc"
47 ${CRUNCHBIN}: libhack.o
49 .include "${DISTRIBDIR}/common/Makefile.crunch"
50 .include "${DISTRIBDIR}/common/Makefile.makedev"
51 .include "${DISTRIBDIR}/common/Makefile.image"
55 .include <bsd.prog.mk>