xref: /netbsd-src/distrib/virt68k/ramdisks/common/Makefile.ramdisk (revision 75181558488858e2778a655c18a8b0c2c9fad87a)
1#	$NetBSD: Makefile.ramdisk,v 1.1 2024/01/07 00:57:13 thorpej Exp $
2
3NOSANITIZER=	# defined
4
5.include <bsd.own.mk>
6.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
7
8VIRT68KCOMMON=	${.CURDIR}/../common
9
10.PATH:		${VIRT68KCOMMON}
11
12WARNS=		1
13DBG=		-Os
14
15CRUNCHBIN=	ramdiskbin
16
17# Use ${.CURDIR}/list only if LISTS was not already defined by the caller.
18LISTS?=		${.CURDIR}/list
19LISTS+=		${VIRT68KCOMMON}/list.ramdisk
20MTREECONF=	${DISTRIBDIR}/common/mtree.common
21IMAGEENDIAN=	be
22IMAGEDEPENDS+= 	${CRUNCHBIN} \
23		dot.profile \
24		${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd \
25		${NETBSDSRCDIR}/etc/netconfig ${DISTRIBDIR}/common/protocols \
26		${DISTRIBDIR}/common/services
27
28.if defined(USE_SYSINST)
29LISTS+=		${DISTRIBDIR}/common/list.sysinst
30MAKEFS_FLAGS+=	-f 14
31.endif
32
33# Use stubs to eliminate some large stuff from libc
34HACKSRC=	${DISTRIBDIR}/utils/libhack
35.include	"${HACKSRC}/Makefile.inc"
36${CRUNCHBIN}:	libhack.o
37
38.include "${DISTRIBDIR}/common/Makefile.crunch"
39.include "${DISTRIBDIR}/common/Makefile.dhcpcd"
40.include "${DISTRIBDIR}/common/Makefile.makedev"
41.include "${DISTRIBDIR}/common/Makefile.image"
42
43release: check_RELEASEDIR
44	${RELEASE_INSTALL} ${IMAGE} ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/ramdisks
45
46.include <bsd.prog.mk>
47