| 1 |
|
| 2 |
|
| 3 |
|
| 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 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
include ../../Makefile.modules |