aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/nmtree/Makefile
blob: 45610b0b2965c28868cca5966c469352b3777a54 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

.include <src.opts.mk>

.PATH: ${SRCTOP}/contrib/mtree

PACKAGE=	mtree

PROG=		mtree
MAN=		mtree.5 mtree.8
SRCS=		compare.c crc.c create.c excludes.c getid.c misc.c mtree.c \
		only.c spec.c specspec.c verify.c

CFLAGS+=	-I${SRCTOP}/contrib/mknod
.PATH:		${SRCTOP}/contrib/mknod
SRCS+=		pack_dev.c

CFLAGS+=	-I${SRCTOP}/lib/libnetbsd
LIBADD=		netbsd md util

LINKS=		${BINDIR}/mtree ${BINDIR}/nmtree
MLINKS=		mtree.8 nmtree.8

HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests

.if defined(BOOTSTRAPPING)
# Linux glibc has a dummy lchmod that always fails. Don't fail due to
# the linker warning that it emits.
LD_FATAL_WARNINGS=no
.endif

.include <bsd.prog.mk>