1c6ec7d31SBrooks Davis# $FreeBSD$ 2c6ec7d31SBrooks Davis 356695221SEnji Cooper.include <src.opts.mk> 4c6ec7d31SBrooks Davis 564a0982bSEnji Cooper.PATH: ${SRCTOP}/contrib/mtree 6c6ec7d31SBrooks Davis 7*dcf9d46aSEmmanuel VadotPACKAGE= mtree 8*dcf9d46aSEmmanuel Vadot 96adfbbbfSBrooks DavisPROG= mtree 10a85228f1SBrooks DavisMAN= mtree.5 mtree.8 11c6ec7d31SBrooks DavisSRCS= compare.c crc.c create.c excludes.c getid.c misc.c mtree.c \ 12edd6bc76SEd Schouten only.c spec.c specspec.c verify.c 13c6ec7d31SBrooks Davis 1464a0982bSEnji CooperCFLAGS+= -I${SRCTOP}/contrib/mknod 1564a0982bSEnji Cooper.PATH: ${SRCTOP}/contrib/mknod 16c6ec7d31SBrooks DavisSRCS+= pack_dev.c 17c6ec7d31SBrooks Davis 1864a0982bSEnji CooperCFLAGS+= -I${SRCTOP}/lib/libnetbsd 19c6db8143SBaptiste DaroussinLIBADD= netbsd md util 20c6ec7d31SBrooks Davis 216adfbbbfSBrooks DavisLINKS= ${BINDIR}/mtree ${BINDIR}/nmtree 226adfbbbfSBrooks DavisMLINKS= mtree.8 nmtree.8 23c6ec7d31SBrooks Davis 24d511b20aSEnji CooperHAS_TESTS= 254b330699SEnji CooperSUBDIR.${MK_TESTS}+= tests 2656695221SEnji Cooper 27c4bd82d7SAlex Richardson.if defined(BOOTSTRAPPING) 28c4bd82d7SAlex Richardson# Linux glibc has a dummy lchmod that always fails. Don't fail due to 29c4bd82d7SAlex Richardson# the linker warning that it emits. 30c4bd82d7SAlex RichardsonLD_FATAL_WARNINGS=no 31c4bd82d7SAlex Richardson.endif 32c4bd82d7SAlex Richardson 33c6ec7d31SBrooks Davis.include <bsd.prog.mk> 34