1#	$FreeBSD$
2
3.include <src.opts.mk>
4
5.PATH: ${SRCTOP}/contrib/mtree
6
7PROG=		mtree
8MAN=		mtree.5 mtree.8
9SRCS=		compare.c crc.c create.c excludes.c getid.c misc.c mtree.c \
10		only.c spec.c specspec.c verify.c
11
12CFLAGS+=	-I${SRCTOP}/contrib/mknod
13.PATH:		${SRCTOP}/contrib/mknod
14SRCS+=		pack_dev.c
15
16CFLAGS+=	-I${SRCTOP}/lib/libnetbsd
17LIBADD=		netbsd md util
18
19LINKS=		${BINDIR}/mtree ${BINDIR}/nmtree
20MLINKS=		mtree.8 nmtree.8
21
22HAS_TESTS=
23SUBDIR.${MK_TESTS}+= tests
24
25.if defined(BOOTSTRAPPING)
26# Linux glibc has a dummy lchmod that always fails. Don't fail due to
27# the linker warning that it emits.
28LD_FATAL_WARNINGS=no
29.endif
30
31.include <bsd.prog.mk>
32