1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5.PATH: ${.CURDIR}/../../contrib/mtree 6 7PROG= mtree 8MAN= mtree.5 mtree.8 9SRCS= compare.c crc.c create.c excludes.c getid.c misc.c mtree.c \ 10 only.c spec.c specspec.c verify.c 11DPADD+= ${LIBMD} ${LIBUTIL} 12LDADD+= -lmd -lutil 13 14CFLAGS+= -I${.CURDIR}/../../contrib/mknod 15.PATH: ${.CURDIR}/../../contrib/mknod 16SRCS+= pack_dev.c 17 18CFLAGS+= -I${.CURDIR}/../../lib/libnetbsd 19LIBNETBSDDIR= ${.OBJDIR}/../../lib/libnetbsd 20LIBNETBSD= ${LIBNETBSDDIR}/libnetbsd.a 21DPADD+= ${LIBNETBSD} 22LDADD+= ${LIBNETBSD} 23 24LINKS= ${BINDIR}/mtree ${BINDIR}/nmtree 25MLINKS= mtree.8 nmtree.8 26 27.if ${MK_TESTS} != "no" 28SUBDIR+= tests 29.endif 30 31.include <bsd.prog.mk> 32