Update tcplay from 2.0 to 3.3
[dragonfly.git] / lib / libtcplay / Makefile
1 LIB=            tcplay
2 MAJ_VER=        3
3 MIN_VER=        3
4 SHLIB_MAJOR?=   ${MAJ_VER}
5 SHLIB_MINOR?=   ${MIN_VER}
6 MAN=            tcplay.3
7
8 MLINKS+=        tcplay.3        tc_api_init.3
9 MLINKS+=        tcplay.3        tc_api_uninit.3
10 MLINKS+=        tcplay.3        tc_api_has.3
11 MLINKS+=        tcplay.3        tc_api_cipher_iterate.3
12 MLINKS+=        tcplay.3        tc_api_prf_iterate.3
13 MLINKS+=        tcplay.3        tc_api_task_init.3
14 MLINKS+=        tcplay.3        tc_api_task_uninit.3
15 MLINKS+=        tcplay.3        tc_api_task_set.3
16 MLINKS+=        tcplay.3        tc_api_task_do.3
17 MLINKS+=        tcplay.3        tc_api_task_info_get.3
18 MLINKS+=        tcplay.3        tc_api_task_get_error.3
19
20 CFLAGS+=        -DMAJ_VER=${MAJ_VER} -DMIN_VER=${MIN_VER}
21 CFLAGS+=        -D_FILE_OFFSET_BITS=64
22 CFLAGS+=        -I${.CURDIR}/../../crypto/libressl/include
23
24 SRCS+=          tcplay.c crc32.c safe_mem.c io.c hdr.c humanize.c
25 SRCS+=          crypto.c generic_xts.c
26 SRCS+=          crypto-dev.c pbkdf2-openssl.c
27 SRCS+=          tcplay_api.c
28
29 INCS+=          tcplay_api.h
30
31 LDFLAGS+=       -Wl,-version-script=${.CURDIR}/tcplay.map
32
33 .include <bsd.lib.mk>