openssl: Check and link against libeay32 instead of libcrypto on Windows
[strongswan.git] / src / libstrongswan / plugins / openssl / Makefile.am
1 AM_CPPFLAGS = \
2         -I$(top_srcdir)/src/libstrongswan \
3         -DFIPS_MODE=${fips_mode}
4
5 AM_CFLAGS = \
6         $(PLUGIN_CFLAGS)
7
8 if MONOLITHIC
9 noinst_LTLIBRARIES = libstrongswan-openssl.la
10 else
11 plugin_LTLIBRARIES = libstrongswan-openssl.la
12 endif
13
14 libstrongswan_openssl_la_SOURCES = \
15         openssl_plugin.h openssl_plugin.c \
16         openssl_util.c openssl_util.h \
17         openssl_crypter.c openssl_crypter.h \
18         openssl_hasher.c openssl_hasher.h \
19         openssl_sha1_prf.c openssl_sha1_prf.h \
20         openssl_diffie_hellman.c openssl_diffie_hellman.h \
21         openssl_rsa_private_key.c openssl_rsa_private_key.h \
22         openssl_rsa_public_key.c openssl_rsa_public_key.h \
23         openssl_ec_diffie_hellman.c openssl_ec_diffie_hellman.h \
24         openssl_ec_private_key.c openssl_ec_private_key.h \
25         openssl_ec_public_key.c openssl_ec_public_key.h \
26         openssl_x509.c openssl_x509.h \
27         openssl_crl.c openssl_crl.h \
28         openssl_pkcs7.c openssl_pkcs7.h \
29         openssl_pkcs12.c openssl_pkcs12.h \
30         openssl_rng.c openssl_rng.h \
31         openssl_hmac.c openssl_hmac.h \
32         openssl_gcm.c openssl_gcm.h
33
34 libstrongswan_openssl_la_LDFLAGS = -module -avoid-version
35 libstrongswan_openssl_la_LIBADD  = $(OPENSSL_LIB)