xref: /freebsd/usr.sbin/nmtree/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
156695221SEnji Cooper.include <src.opts.mk>
2c6ec7d31SBrooks Davis
364a0982bSEnji Cooper.PATH: ${SRCTOP}/contrib/mtree
4c6ec7d31SBrooks Davis
5*dcf9d46aSEmmanuel VadotPACKAGE=	mtree
6*dcf9d46aSEmmanuel Vadot
76adfbbbfSBrooks DavisPROG=		mtree
8a85228f1SBrooks DavisMAN=		mtree.5 mtree.8
9c6ec7d31SBrooks DavisSRCS=		compare.c crc.c create.c excludes.c getid.c misc.c mtree.c \
10edd6bc76SEd Schouten		only.c spec.c specspec.c verify.c
11c6ec7d31SBrooks Davis
1264a0982bSEnji CooperCFLAGS+=	-I${SRCTOP}/contrib/mknod
1364a0982bSEnji Cooper.PATH:		${SRCTOP}/contrib/mknod
14c6ec7d31SBrooks DavisSRCS+=		pack_dev.c
15c6ec7d31SBrooks Davis
1664a0982bSEnji CooperCFLAGS+=	-I${SRCTOP}/lib/libnetbsd
17c6db8143SBaptiste DaroussinLIBADD=		netbsd md util
18c6ec7d31SBrooks Davis
196adfbbbfSBrooks DavisLINKS=		${BINDIR}/mtree ${BINDIR}/nmtree
206adfbbbfSBrooks DavisMLINKS=		mtree.8 nmtree.8
21c6ec7d31SBrooks Davis
22d511b20aSEnji CooperHAS_TESTS=
234b330699SEnji CooperSUBDIR.${MK_TESTS}+= tests
2456695221SEnji Cooper
25c4bd82d7SAlex Richardson.if defined(BOOTSTRAPPING)
26c4bd82d7SAlex Richardson# Linux glibc has a dummy lchmod that always fails. Don't fail due to
27c4bd82d7SAlex Richardson# the linker warning that it emits.
28c4bd82d7SAlex RichardsonLD_FATAL_WARNINGS=no
29c4bd82d7SAlex Richardson.endif
30c4bd82d7SAlex Richardson
31c6ec7d31SBrooks Davis.include <bsd.prog.mk>
32