2012-12-21 21:00:00 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2014-10-09 00:32:33 +00:00
|
|
|
.include <src.opts.mk>
|
2012-12-21 21:00:00 +00:00
|
|
|
|
2017-03-04 11:38:03 +00:00
|
|
|
.PATH: ${SRCTOP}/contrib/mtree
|
2012-12-21 21:00:00 +00:00
|
|
|
|
2014-01-30 21:25:01 +00:00
|
|
|
PROG= mtree
|
2014-01-30 21:32:25 +00:00
|
|
|
MAN= mtree.5 mtree.8
|
2012-12-21 21:00:00 +00:00
|
|
|
SRCS= compare.c crc.c create.c excludes.c getid.c misc.c mtree.c \
|
2013-04-09 06:50:11 +00:00
|
|
|
only.c spec.c specspec.c verify.c
|
2012-12-21 21:00:00 +00:00
|
|
|
|
2017-03-04 11:38:03 +00:00
|
|
|
CFLAGS+= -I${SRCTOP}/contrib/mknod
|
|
|
|
.PATH: ${SRCTOP}/contrib/mknod
|
2012-12-21 21:00:00 +00:00
|
|
|
SRCS+= pack_dev.c
|
|
|
|
|
2017-03-04 11:38:03 +00:00
|
|
|
CFLAGS+= -I${SRCTOP}/lib/libnetbsd
|
2014-11-25 16:57:27 +00:00
|
|
|
LIBADD= netbsd md util
|
2012-12-21 21:00:00 +00:00
|
|
|
|
2014-01-30 21:25:01 +00:00
|
|
|
LINKS= ${BINDIR}/mtree ${BINDIR}/nmtree
|
|
|
|
MLINKS= mtree.8 nmtree.8
|
2012-12-21 21:00:00 +00:00
|
|
|
|
2017-08-02 08:50:42 +00:00
|
|
|
HAS_TESTS=
|
2017-08-02 08:35:51 +00:00
|
|
|
SUBDIR.${MK_TESTS}+= tests
|
2014-10-09 00:32:33 +00:00
|
|
|
|
2020-08-03 18:08:10 +00:00
|
|
|
.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
|
|
|
|
|
2012-12-21 21:00:00 +00:00
|
|
|
.include <bsd.prog.mk>
|