Sync usage with man page.
[netbsd-mini2440.git] / distrib / i386 / ramdisks / common / Makefile.ramdisk
bloba1478ea2dca6e74520beebfe8afdf33459801af6
1 #       $NetBSD: Makefile.ramdisk,v 1.6 2009/09/20 19:49:08 abs Exp $
3 .include <bsd.own.mk>
4 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
6 I386COMMON=     ${.CURDIR}/../common
8 .PATH:          ${I386COMMON}
10 WARNS=          1
11 DBG=            -Os
13 CRUNCHBIN=      ramdiskbin
14 LISTS=          ${I386COMMON}/list.ramdisk
15 LISTS+=         ${.CURDIR}/list
16 MTREECONF=      ${DISTRIBDIR}/common/mtree.common
17 IMAGEENDIAN=    le
18 IMAGEDEPENDS+=  ${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 ${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}
38 .else
39 LISTS+=         ${DISTRIBDIR}/common/list.sysinst
40 .endif
41 MAKEFS_FLAGS+=  -f 14
42 .endif
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"
53 release:
55 .include <bsd.prog.mk>