cpdup(1): Convert to LibreSSL MD5 hash API.
[dragonfly.git] / bin / cpdup / Makefile
1 PROG=   cpdup
2 SRCS=   cpdup.c hcproto.c hclink.c misc.c fsmid.c
3
4 .if defined(.FreeBSD)
5 CFLAGS += -D_ST_FLAGS_PRESENT_=1 -DWITH_LIBMD
6 WARNS?= 6
7 .endif
8
9 .if defined(BOOTSTRAPPING) || defined(RESCUE)
10 # For boostrapping buildworld the md5 functionality is not needed
11 CFLAGS+=-DNOMD5
12 .else
13 .if !defined(NOMD5)
14 SRCS+=  md5.c
15 CFLAGS+=        ${PRIVATELIB_CFLAGS}
16 DPADD=          ${LIBCRYPTO}
17 LDADD=          -lprivate_crypto
18 LDFLAGS+=       ${PRIVATELIB_LDFLAGS}
19 .endif
20 .endif
21
22 .include <bsd.prog.mk>
23