Update tcplay from 2.0 to 3.3
[dragonfly.git] / sbin / tcplay / Makefile
1 TCPLAY_DIR=     ${.CURDIR}/../../lib/libtcplay
2
3 MAJ_VER=        3
4 MIN_VER=        3
5
6 PROG=   tcplay
7 MAN=    tcplay.8
8
9 SRCS+=          tcplay.c crc32.c safe_mem.c io.c hdr.c humanize.c
10 SRCS+=          crypto.c generic_xts.c
11 SRCS+=          crypto-dev.c pbkdf2-openssl.c
12 SRCS+=          main.c
13
14 LDADD=          -ldm -lprop -lutil
15 DPADD=          ${LIBDM} ${LIBPROP} ${LIBUTIL}
16
17 DPADD+=         ${LIBCRYPTO}
18 LDADD+=         -lprivate_crypto
19 LDFLAGS+=       ${PRIVATELIB_LDFLAGS}
20 CFLAGS+=        -I${.CURDIR}/../../crypto/libressl/include
21
22 CFLAGS+=        -I${TCPLAY_DIR}
23 CFLAGS+=        -DMAJ_VER=${MAJ_VER} -DMIN_VER=${MIN_VER}
24 CFLAGS+=        -D_FILE_OFFSET_BITS=64
25
26 .PATH: ${TCPLAY_DIR}
27
28 .include <bsd.prog.mk>