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 getid.c only.c 10 11SRCS+= pack_dev.c stat_flags.c 12 13DPADD+= ${LIBUTIL} 14LDADD+= -lutil 15 16.if !defined(BOOTSTRAPPING) && !defined(RESCUE) 17SRCS+= hash.c 18CFLAGS+= ${PRIVATELIB_CFLAGS} 19DPADD+= ${LIBCRYPTO} 20LDADD+= -lprivate_crypto 21LDFLAGS+= ${PRIVATELIB_LDFLAGS} 22.else 23CFLAGS+=-DNO_MD5 -DNO_SHA -DNO_RMD160 24.if ${WORLD_VERSION} < 500302 # pwcache(3)/vis(3) upgrades came in about here 25.PATH: ${.CURDIR}/../../lib/libc/gen 26SRCS+= pwcache.c vis.c 27CFLAGS+=-I${.CURDIR}/../../lib/libc/include 28CFLAGS+=-include ${.CURDIR}/../../include/grp.h 29CFLAGS+=-include ${.CURDIR}/../../include/pwd.h 30CFLAGS+=-include ${.CURDIR}/../../include/vis.h 31.endif 32.endif 33 34#CFLAGS+=-DDEBUG 35 36.include <bsd.prog.mk> 37