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