xref: /freebsd/usr.sbin/nmtree/Makefile (revision edd6bc767082254635f649f825a7f9c5f9999e85)
1c6ec7d31SBrooks Davis#	$FreeBSD$
2c6ec7d31SBrooks Davis
3c6ec7d31SBrooks Davis.include <bsd.own.mk>
4c6ec7d31SBrooks Davis
5c6ec7d31SBrooks Davis.PATH: ${.CURDIR}/../../contrib/mtree
6c6ec7d31SBrooks Davis
7c6ec7d31SBrooks DavisPROG=		nmtree
8c6ec7d31SBrooks DavisMAN=		nmtree.8
9c6ec7d31SBrooks DavisSRCS=		compare.c crc.c create.c excludes.c getid.c misc.c mtree.c \
10*edd6bc76SEd Schouten		only.c spec.c specspec.c verify.c
11c6ec7d31SBrooks DavisLDADD+=		-lmd -lutil
12c6ec7d31SBrooks Davis
13c6ec7d31SBrooks DavisCFLAGS+=	-I${.CURDIR}/../../contrib/mknod
14c6ec7d31SBrooks Davis.PATH:		${.CURDIR}/../../contrib/mknod
15c6ec7d31SBrooks DavisSRCS+=		pack_dev.c
16c6ec7d31SBrooks Davis
17c6ec7d31SBrooks DavisCFLAGS+=	-I${.CURDIR}/../../lib/libnetbsd
18c6ec7d31SBrooks DavisLIBNETBSDDIR=	${.OBJDIR}/../../lib/libnetbsd
19c6ec7d31SBrooks DavisLIBNETBSD=	${LIBNETBSDDIR}/libnetbsd.a
20f7167420SAndrew TurnerDPADD+=		${LIBNETBSD}
21c6ec7d31SBrooks DavisLDADD+=		${LIBNETBSD}
22c6ec7d31SBrooks Davis
23624c4889SBrooks Davis.if ${MK_NMTREE} != "no"
24624c4889SBrooks DavisLINKS=		${BINDIR}/nmtree ${BINDIR}/mtree
25624c4889SBrooks DavisMLINKS=		nmtree.8 mtree.8
26624c4889SBrooks Davis.endif
27624c4889SBrooks Davis
28624c4889SBrooks DavisCLEANFILES+=	nmtree.8
29624c4889SBrooks Davis
30c6ec7d31SBrooks Davisnmtree.8: mtree.8
31c6ec7d31SBrooks Davis	cp ${.ALLSRC} ${.TARGET}
32c6ec7d31SBrooks Davis
33c6ec7d31SBrooks Davis.include <bsd.prog.mk>
34