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