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