xref: /dragonfly/usr.sbin/mtree/Makefile (revision 2b7dbe20)
1#	$NetBSD: Makefile,v 1.34 2013/02/03 19:15:16 christos Exp $
2#	from: @(#)Makefile	8.2 (Berkeley) 4/27/95
3
4.PATH: ${.CURDIR}/../../usr.bin/cksum
5
6PROG=	mtree
7MAN=	mtree.8
8SRCS=	compare.c crc.c create.c excludes.c misc.c mtree.c spec.c verify.c
9SRCS+=	specspec.c only.c
10
11SRCS+=	pack_dev.c stat_flags.c
12CFLAGS+=-DHAVE_NETDB_H
13
14.if !defined(BOOTSTRAPPING)
15SRCS+= getid.c
16.endif
17
18.if !defined(BOOTSTRAPPING) && !defined(RESCUE)
19SRCS+= hash.c
20CFLAGS+= 	${PRIVATELIB_CFLAGS}
21DPADD+=		${LIBCRYPTO}
22LDADD+=		-lprivate_crypto
23LDFLAGS+=	${PRIVATELIB_LDFLAGS}
24.else
25CFLAGS+=-DNO_MD5 -DNO_SHA -DNO_RMD160
26CFLAGS+=-DBOOTSTRAPPING
27.if ${WORLD_VERSION} < 500302 # pwcache(3)/vis(3) upgrades came in about here
28.PATH: ${.CURDIR}/../../lib/libc/gen
29SRCS+=	vis.c
30CFLAGS+=-include ${.CURDIR}/../../include/vis.h
31.endif
32.if ${WORLD_VERSION} < 500901 # fparseln(3) was moved from libutil to libc
33DPADD+=	${LIBUTIL}
34LDADD+=	-lutil
35.endif
36.endif
37
38#CFLAGS+=-DDEBUG
39
40.include <bsd.prog.mk>
41