| 1 |
# |
| 2 |
# |
| 3 |
# WARNING: do not run this directly, it should be run by the main Makefile |
| 4 |
|
| 5 |
include ../../Makefile.defs |
| 6 |
auto_gen= |
| 7 |
NAME=auth_ephemeral.so |
| 8 |
|
| 9 |
ifeq ($(CROSS_COMPILE),) |
| 10 |
SSL_BUILDER=$(shell \ |
| 11 |
if pkg-config --exists libssl; then \ |
| 12 |
echo 'pkg-config libssl'; \ |
| 13 |
fi) |
| 14 |
|
| 15 |
ifneq ($(SSL_BUILDER),) |
| 16 |
SSL_BUILDER+=$(shell \ |
| 17 |
if pkg-config --exists libcrypto; then \ |
| 18 |
echo 'libcrypto'; \ |
| 19 |
fi) |
| 20 |
endif |
| 21 |
|
| 22 |
endif |
| 23 |
|
| 24 |
ifneq ($(SSL_BUILDER),) |
| 25 |
DEFS += $(shell $(SSL_BUILDER) --cflags) |
| 26 |
LIBS += $(shell $(SSL_BUILDER) --libs) |
| 27 |
else |
| 28 |
DEFS += -I$(LOCALBASE)/ssl/include |
| 29 |
LIBS += -L$(LOCALBASE)/lib -L$(LOCALBASE)/ssl/lib \ |
| 30 |
-L$(LOCALBASE)/lib64 -L$(LOCALBASE)/ssl/lib64 \ |
| 31 |
-lssl -lcrypto |
| 32 |
# NOTE: depending on the way in which libssl was compiled you might |
| 33 |
# have to add -lz -lkrb5 (zlib and kerberos5). |
| 34 |
# E.g.: make TLS_HOOKS=1 TLS_EXTRA_LIBS="-lz -lkrb5" |
| 35 |
endif |
| 36 |
|
| 37 |
LIBS+= $(TLS_EXTRA_LIBS) |
| 38 |
|
| 39 |
# Static linking, if you'd like to use TLS and AUTH_EPHEMERAL at the same time |
| 40 |
# |
| 41 |
#LIBS+= /usr/lib/libcurl.a /usr/lib/libssl.a /usr/lib/libcrypto.a -lkrb5 -lidn -lz -lgssapi_krb5 -lrt |
| 42 |
|
| 43 |
include ../../Makefile.modules |