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