Makefile revision 1.22
11.22Schristos#	$NetBSD: Makefile,v 1.22 2020/02/28 13:00:51 christos Exp $
21.1Sgarbled
31.1Sgarbled.include <bsd.own.mk>
41.1Sgarbled.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
51.1Sgarbled
61.1SgarbledIMAGE=		sshramdisk.fs
71.21SmlelstvIMAGESIZE=	33000k
81.12SchristosMAKEFS_FLAGS+=	-f 15
91.1Sgarbled
101.13Schristos.if ${MKREPRO_TIMESTAMP:Uno} != "no"
111.13SchristosMAKEFS_TIMESTAMP=-T "${MKREPRO_TIMESTAMP}"
121.13SchristosPAX_TIMESTAMP=--timestamp "${MKREPRO_TIMESTAMP}"
131.13Schristos.endif
141.13Schristos
151.1SgarbledWARNS=		1
161.1SgarbledDBG=		-Os
171.1Sgarbled
181.1SgarbledCRUNCHBIN=	ramdiskbin
191.1SgarbledLISTS=		${.CURDIR}/list ${DISTRIBDIR}/common/list.sysinst
201.1SgarbledMTREECONF=	${.CURDIR}/mtree.conf
211.9Smartin.if empty(MACHINE_ARCH:M*eb)
221.1SgarbledIMAGEENDIAN=	le
231.9Smartin.else
241.9SmartinIMAGEENDIAN=	be
251.9Smartin.endif
261.1SgarbledMAKEDEVTARGETS=	ramdisk
271.1SgarbledIMAGEDEPENDS=	${CRUNCHBIN} \
281.18Smartin		dot.profile master.passwd sshd_config ssh_host_rsa_key \
291.1Sgarbled		${NETBSDSRCDIR}/etc/group \
301.1Sgarbled		${NETBSDSRCDIR}/etc/netconfig ${DISTRIBDIR}/common/protocols \
311.1Sgarbled		${DISTRIBDIR}/common/services
321.14SchristosIMAGEPREBUILD=	${TOOL_PAX} ${PAX_TIMESTAMP} -rw -pp ${DESTDIR}/libdata/firmware ${WORKDIR}
331.1Sgarbled
341.22Schristos.PATH:	${NETBSDSRCDIR}/crypto/external/bsd/openssh/dist
351.22Schristosliboverride.o: ssh-sk-client.o
361.22Schristos	${_MKTARGET_LINK}
371.22Schristos	${LD} -r -o ${.TARGET} ${.ALLSRC}
381.22Schristos
391.22SchristosCLEANFILES+=	liboverride.o ssh-sk-client.o
401.22Schristos
411.22Schristos
421.1Sgarbled# Use stubs to eliminate some large stuff from libc
431.1SgarbledHACKSRC=	${DISTRIBDIR}/utils/libhack
441.1Sgarbled.include	"${HACKSRC}/Makefile.inc"
451.22Schristos${CRUNCHBIN}:	libhack.o liboverride.o
461.1Sgarbled
471.1SgarbledUSE_PAM := no
481.1SgarbledUSE_YP := no
491.1SgarbledUSE_SKEY := no
501.1SgarbledUSE_KERBEROS := no
511.1SgarbledUSE_LDAP := no
521.1Sgarbled.export USE_PAM
531.1Sgarbled.export USE_YP
541.1Sgarbled.export USE_SKEY
551.1Sgarbled.export USE_KERBEROS
561.1Sgarbled.export USE_LDAP
571.1Sgarbled
581.1Sgarbled.include "${DISTRIBDIR}/common/Makefile.crunch"
591.1Sgarbled.include "${DISTRIBDIR}/common/Makefile.dhcpcd"
601.1Sgarbled.include "${DISTRIBDIR}/common/Makefile.makedev"
611.1Sgarbled.include "${DISTRIBDIR}/common/Makefile.image"
621.1Sgarbled
631.1Sgarbledrelease:
641.1Sgarbled
651.1Sgarbled.include <bsd.prog.mk>
66