Makefile revision 1.5
1#       $NetBSD: Makefile,v 1.5 2002/02/23 22:02:08 gmcgarry Exp $
2
3.include "${.CURDIR}/../../Makefile.inc"
4.include <bsd.own.mk>
5
6IMAGE=		ramdisk.fs
7IMAGESIZE=	1200k
8USE_SYSINST=	yes
9
10WARNS=		1
11
12CRUNCHBIN=	ramdiskbin
13LISTS=		${.CURDIR}/list
14MTREECONF=	${DISTRIBDIR}/common/mtree.common
15IMAGEENDIAN=	be
16IMAGEDEPENDS+=	${CRUNCHBIN} dot.profile termcap.mini \
17		${_SRC_TOP_}/etc/group ${_SRC_TOP_}/etc/master.passwd \
18		${_SRC_TOP_}/etc/protocols ${_SRC_TOP_}/etc/netconfig \
19		${_SRC_TOP_}/etc/services ${DESTDIR}/usr/mdec/uboot.lif
20
21
22MAKEDEVTARGETS+=std md0
23
24.if defined(USE_SYSINST)
25LISTS+=		${DISTRIBDIR}/common/list.sysinst
26.endif
27
28realall: ${IMAGE}
29
30# Use stubs to eliminate some large stuff from libc
31HACKSRC=${_SRC_TOP_}/distrib/utils/libhack
32.include "${HACKSRC}/Makefile.inc"
33# turn off small gethostby* temporarily
34HACKOBJS:=	${HACKOBJS:Ngethost.o}
35
36# This is listed in ramdiskbin.conf but is built here.
37${CRUNCHBIN}: libhack.o
38
39release:
40
41.include "${DISTRIBDIR}/common/Makefile.crunch"
42.include "${DISTRIBDIR}/common/Makefile.makedev"
43.include "${DISTRIBDIR}/common/Makefile.image"
44
45.include <bsd.prog.mk>
46