1#	$NetBSD: Makefile,v 1.31 2025/12/17 20:05:54 riastradh Exp $
2
3.include <bsd.own.mk>
4.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
5
6IMAGE=		sshramdisk.fs
7IMAGESIZE=	51000k
8MAKEFS_FLAGS+=	-f 15
9
10.if ${MKREPRO_TIMESTAMP:Uno} != "no"
11MAKEFS_TIMESTAMP=-T "${MKREPRO_TIMESTAMP}"
12PAX_TIMESTAMP=--timestamp "${MKREPRO_TIMESTAMP}"
13.endif
14
15WARNS=		1
16DBG=		-Os
17
18CRUNCHBIN=	ramdiskbin
19LISTS=		${.CURDIR}/list ${DISTRIBDIR}/common/list.sysinst
20MTREECONF=	${.CURDIR}/mtree.conf
21.if empty(MACHINE_ARCH:M*eb)
22IMAGEENDIAN=	le
23.else
24IMAGEENDIAN=	be
25.endif
26MAKEDEVTARGETS=	ramdisk
27IMAGEDEPENDS=	${CRUNCHBIN} \
28		dot.profile master.passwd sshd_config ssh_host_rsa_key \
29		${NETBSDSRCDIR}/etc/group \
30		${NETBSDSRCDIR}/etc/netconfig ${DISTRIBDIR}/common/protocols \
31		${DISTRIBDIR}/common/services
32IMAGERUNTIME= libdata/firmware
33IMAGESPECEXTRA= libdata
34
35# Use stubs to eliminate some large stuff from libc
36HACKSRC=	${DISTRIBDIR}/utils/libhack
37.include	"${HACKSRC}/Makefile.inc"
38${CRUNCHBIN}:	libhack.o
39
40USE_PAM := no
41USE_YP := no
42USE_SKEY := no
43USE_KERBEROS := no
44USE_LDAP := no
45.export USE_PAM
46.export USE_YP
47.export USE_SKEY
48.export USE_KERBEROS
49.export USE_LDAP
50
51# libssh is private, so libssh.a is not installed in DESTDIR, so we
52# have to get it out of the objdir.
53#
54# XXX Should do this differently, and uniformly for all libraries.
55.if !defined(LIBDO.ssh)
56LIBDO.ssh!=	cd ${NETBSDSRCDIR}/crypto/external/bsd/openssh/lib && \
57		${PRINTOBJDIR}
58.MAKEOVERRIDES+=LIBDO.ssh
59.endif
60CRUNCHGEN_FLAGS+=-L ${LIBDO.ssh}
61
62.include "${DISTRIBDIR}/common/Makefile.crunch"
63.include "${DISTRIBDIR}/common/Makefile.dhcpcd"
64.include "${DISTRIBDIR}/common/Makefile.makedev"
65.include "${DISTRIBDIR}/common/Makefile.image"
66
67release:
68
69.include <bsd.prog.mk>
70