4
# WARNING: do not run this directly, it should be run by the master Makefile
6
include ../../Makefile.defs
10
ifeq ($(CROSS_COMPILE),)
12
if pkg-config --exists libssl; then \
13
echo 'pkg-config libssl'; \
17
ifneq ($(SSL_BUILDER),)
18
DEFS += $(shell $(SSL_BUILDER) --cflags)
19
LIBS += $(shell $(SSL_BUILDER) --libs)
21
DEFS += -I$(LOCALBASE)/ssl/include
22
LIBS += -L$(LOCALBASE)/lib -L$(LOCALBASE)/ssl/lib \
23
-L$(LOCALBASE)/lib64 -L$(LOCALBASE)/ssl/lib64 \
25
# NOTE: depending on the way in which libssl was compiled you might
26
# have to add -lz -lkrb5 (zlib and kerberos5).
27
# E.g.: make TLS_HOOKS=1 TLS_EXTRA_LIBS="-lz -lkrb5"
30
LIBS+= $(TLS_EXTRA_LIBS)
32
# Static linking, if you'd like to use TLS and AUTH_EPHEMERAL at the same time
34
#LIBS+= /usr/lib/libcurl.a /usr/lib/libssl.a /usr/lib/libcrypto.a -lkrb5 -lidn -lz -lgssapi_krb5 -lrt
35
DEFS+=-DKAMAILIO_MOD_INTERFACE
38
SER_LIBS+=$(SERLIBPATH)/kcore/kcore
39
SER_LIBS+=$(SERLIBPATH)/kmi/kmi
41
include ../../Makefile.modules