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