2009-04-21 12:26:04 +00:00
|
|
|
lib_LTLIBRARIES = libstrongswan.la
|
2006-05-16 14:24:03 +00:00
|
|
|
|
2009-06-19 14:39:44 +00:00
|
|
|
libstrongswan_la_SOURCES = \
|
2006-06-16 05:52:52 +00:00
|
|
|
library.c library.h \
|
2006-10-31 12:27:59 +00:00
|
|
|
chunk.c chunk.h \
|
|
|
|
debug.c debug.h \
|
|
|
|
enum.c enum.h \
|
2008-03-13 14:14:44 +00:00
|
|
|
settings.h settings.c \
|
2006-10-31 12:27:59 +00:00
|
|
|
printf_hook.c printf_hook.h \
|
2006-06-16 05:52:52 +00:00
|
|
|
asn1/asn1.c asn1/asn1.h \
|
2008-04-26 09:24:14 +00:00
|
|
|
asn1/asn1_parser.c asn1/asn1_parser.h \
|
2007-02-23 15:14:59 +00:00
|
|
|
asn1/oid.c asn1/oid.h \
|
2006-06-16 05:52:52 +00:00
|
|
|
crypto/crypters/crypter.c crypto/crypters/crypter.h \
|
|
|
|
crypto/hashers/hasher.h crypto/hashers/hasher.c \
|
2008-02-01 14:19:26 +00:00
|
|
|
crypto/pkcs9.c crypto/pkcs9.h \
|
2009-05-15 20:43:48 +00:00
|
|
|
crypto/proposal/proposal_keywords.c crypto/proposal/proposal_keywords.h \
|
2007-02-23 15:14:59 +00:00
|
|
|
crypto/prfs/prf.c crypto/prfs/prf.h \
|
2008-04-15 05:56:35 +00:00
|
|
|
crypto/rngs/rng.c crypto/rngs/rng.h \
|
2007-02-23 15:14:59 +00:00
|
|
|
crypto/prf_plus.h crypto/prf_plus.c \
|
|
|
|
crypto/signers/signer.c crypto/signers/signer.h \
|
2008-03-13 14:14:44 +00:00
|
|
|
crypto/crypto_factory.c crypto/crypto_factory.h \
|
2009-06-10 09:22:02 +00:00
|
|
|
crypto/crypto_tester.c crypto/crypto_tester.h \
|
2009-05-15 20:43:48 +00:00
|
|
|
crypto/diffie_hellman.c crypto/diffie_hellman.h \
|
|
|
|
crypto/transform.c crypto/transform.h \
|
2008-03-13 14:14:44 +00:00
|
|
|
credentials/credential_factory.c credentials/credential_factory.h \
|
|
|
|
credentials/builder.c credentials/builder.h \
|
2009-08-18 15:48:34 +00:00
|
|
|
credentials/keys/key_encoding.c credentials/keys/key_encoding.h \
|
2008-03-13 14:14:44 +00:00
|
|
|
credentials/keys/private_key.c credentials/keys/private_key.h \
|
|
|
|
credentials/keys/public_key.c credentials/keys/public_key.h \
|
|
|
|
credentials/keys/shared_key.c credentials/keys/shared_key.h \
|
|
|
|
credentials/certificates/certificate.c credentials/certificates/certificate.h \
|
|
|
|
credentials/certificates/x509.h credentials/certificates/x509.c \
|
2008-03-25 22:28:27 +00:00
|
|
|
credentials/certificates/ac.h \
|
2008-03-13 14:14:44 +00:00
|
|
|
credentials/certificates/crl.h credentials/certificates/crl.c \
|
2008-03-26 15:21:50 +00:00
|
|
|
credentials/certificates/ocsp_request.h \
|
2008-03-13 14:14:44 +00:00
|
|
|
credentials/certificates/ocsp_response.h credentials/certificates/ocsp_response.c \
|
|
|
|
database/database.h database/database_factory.h database/database_factory.c \
|
2009-06-05 19:14:31 +00:00
|
|
|
fetcher/fetcher.h fetcher/fetcher_manager.h fetcher/fetcher_manager.c \
|
2008-03-13 14:14:44 +00:00
|
|
|
utils.h utils.c \
|
2006-06-16 05:52:52 +00:00
|
|
|
utils/host.c utils/host.h \
|
2007-02-23 15:14:59 +00:00
|
|
|
utils/identification.c utils/identification.h \
|
|
|
|
utils/iterator.h \
|
2006-06-16 05:52:52 +00:00
|
|
|
utils/lexparser.c utils/lexparser.h \
|
2007-02-23 15:14:59 +00:00
|
|
|
utils/linked_list.c utils/linked_list.h \
|
2008-12-03 09:32:16 +00:00
|
|
|
utils/hashtable.c utils/hashtable.h \
|
2007-10-04 08:21:53 +00:00
|
|
|
utils/enumerator.c utils/enumerator.h \
|
2007-09-18 11:23:52 +00:00
|
|
|
utils/optionsfrom.c utils/optionsfrom.h \
|
2008-03-13 14:14:44 +00:00
|
|
|
utils/mutex.c utils/mutex.h \
|
2008-11-05 13:58:19 +00:00
|
|
|
utils/backtrace.c utils/backtrace.h \
|
2008-03-13 14:14:44 +00:00
|
|
|
plugins/plugin_loader.c plugins/plugin_loader.h plugins/plugin.h
|
2006-05-16 14:24:03 +00:00
|
|
|
|
2009-08-31 13:03:35 +00:00
|
|
|
libstrongswan_la_LIBADD = -lpthread $(DLLIB) $(BTLIB) $(SOCKLIB) $(RTLIB)
|
2006-05-16 14:24:03 +00:00
|
|
|
|
|
|
|
INCLUDES = -I$(top_srcdir)/src/libstrongswan
|
2009-04-20 20:53:38 +00:00
|
|
|
AM_CFLAGS = \
|
|
|
|
-DIPSEC_DIR=\"${ipsecdir}\" \
|
2009-09-08 17:48:34 +00:00
|
|
|
-DPLUGINDIR=\"${plugindir}\"
|
2006-05-19 14:16:58 +00:00
|
|
|
|
2006-05-23 08:00:29 +00:00
|
|
|
if USE_LEAK_DETECTIVE
|
2008-03-13 14:14:44 +00:00
|
|
|
AM_CFLAGS += -DLEAK_DETECTIVE
|
2009-04-18 14:50:31 +00:00
|
|
|
libstrongswan_la_SOURCES += \
|
|
|
|
utils/leak_detective.c utils/leak_detective.h
|
2008-04-04 11:38:16 +00:00
|
|
|
endif
|
|
|
|
|
2008-11-05 14:36:57 +00:00
|
|
|
if USE_LOCK_PROFILER
|
|
|
|
AM_CFLAGS += -DLOCK_PROFILER
|
|
|
|
endif
|
|
|
|
|
2009-06-19 15:37:08 +00:00
|
|
|
if USE_INTEGRITY_TEST
|
|
|
|
AM_CFLAGS += -DINTEGRITY_TEST
|
|
|
|
libstrongswan_la_SOURCES += \
|
|
|
|
integrity_checker.c integrity_checker.h
|
|
|
|
endif
|
|
|
|
|
2009-03-12 18:07:32 +00:00
|
|
|
if USE_VSTR
|
|
|
|
libstrongswan_la_LIBADD += -lvstr
|
|
|
|
endif
|
|
|
|
|
2009-05-15 20:43:48 +00:00
|
|
|
EXTRA_DIST = \
|
|
|
|
asn1/oid.txt asn1/oid.pl \
|
|
|
|
crypto/proposal/proposal_keywords.txt
|
|
|
|
|
|
|
|
BUILT_SOURCES = \
|
|
|
|
$(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
|
|
|
|
$(srcdir)/crypto/proposal/proposal_keywords.c
|
|
|
|
|
|
|
|
MAINTAINERCLEANFILES = \
|
|
|
|
$(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
|
|
|
|
$(srcdir)/crypto/proposal/proposal_keywords.c
|
2007-08-29 00:37:10 +00:00
|
|
|
|
2009-04-30 11:37:54 +00:00
|
|
|
$(srcdir)/asn1/oid.c : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
|
|
|
|
(cd $(srcdir)/asn1/ && $(PERL) oid.pl)
|
2006-05-19 14:16:58 +00:00
|
|
|
|
2009-04-30 11:37:54 +00:00
|
|
|
$(srcdir)/asn1/oid.h : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
|
|
|
|
(cd $(srcdir)/asn1/ && $(PERL) oid.pl)
|
2007-08-29 00:37:10 +00:00
|
|
|
|
2009-05-15 20:43:48 +00:00
|
|
|
$(srcdir)/crypto/proposal/proposal_keywords.c: $(srcdir)/crypto/proposal/proposal_keywords.txt \
|
|
|
|
$(srcdir)/crypto/proposal/proposal_keywords.h
|
2009-07-16 08:09:23 +00:00
|
|
|
$(GPERF) -N proposal_get_token -m 10 -C -G -c -t -D < \
|
2009-05-15 20:43:48 +00:00
|
|
|
$(srcdir)/crypto/proposal/proposal_keywords.txt > $@
|
|
|
|
|
2008-03-13 14:14:44 +00:00
|
|
|
|
|
|
|
# build plugins with their own Makefile
|
|
|
|
#######################################
|
|
|
|
|
2008-04-15 07:57:01 +00:00
|
|
|
SUBDIRS = .
|
2008-03-13 14:14:44 +00:00
|
|
|
|
|
|
|
if USE_AES
|
|
|
|
SUBDIRS += plugins/aes
|
|
|
|
endif
|
|
|
|
|
|
|
|
if USE_DES
|
|
|
|
SUBDIRS += plugins/des
|
|
|
|
endif
|
|
|
|
|
2009-05-08 22:04:15 +00:00
|
|
|
if USE_BLOWFISH
|
|
|
|
SUBDIRS += plugins/blowfish
|
|
|
|
endif
|
|
|
|
|
2009-02-19 10:06:58 +00:00
|
|
|
if USE_MD4
|
|
|
|
SUBDIRS += plugins/md4
|
|
|
|
endif
|
|
|
|
|
2008-03-13 14:14:44 +00:00
|
|
|
if USE_MD5
|
|
|
|
SUBDIRS += plugins/md5
|
|
|
|
endif
|
|
|
|
|
|
|
|
if USE_SHA1
|
|
|
|
SUBDIRS += plugins/sha1
|
|
|
|
endif
|
|
|
|
|
|
|
|
if USE_SHA2
|
|
|
|
SUBDIRS += plugins/sha2
|
|
|
|
endif
|
|
|
|
|
|
|
|
if USE_FIPS_PRF
|
|
|
|
SUBDIRS += plugins/fips_prf
|
|
|
|
endif
|
|
|
|
|
|
|
|
if USE_GMP
|
|
|
|
SUBDIRS += plugins/gmp
|
|
|
|
endif
|
|
|
|
|
2008-04-15 05:56:35 +00:00
|
|
|
if USE_RANDOM
|
|
|
|
SUBDIRS += plugins/random
|
|
|
|
endif
|
|
|
|
|
2008-03-13 14:14:44 +00:00
|
|
|
if USE_HMAC
|
|
|
|
SUBDIRS += plugins/hmac
|
|
|
|
endif
|
|
|
|
|
2008-04-30 14:26:24 +00:00
|
|
|
if USE_XCBC
|
|
|
|
SUBDIRS += plugins/xcbc
|
|
|
|
endif
|
|
|
|
|
2008-03-13 14:14:44 +00:00
|
|
|
if USE_X509
|
|
|
|
SUBDIRS += plugins/x509
|
|
|
|
endif
|
|
|
|
|
2008-05-08 13:16:42 +00:00
|
|
|
if USE_PUBKEY
|
|
|
|
SUBDIRS += plugins/pubkey
|
|
|
|
endif
|
|
|
|
|
2009-08-14 14:48:40 +00:00
|
|
|
if USE_PKCS1
|
|
|
|
SUBDIRS += plugins/pkcs1
|
|
|
|
endif
|
|
|
|
|
2009-08-17 11:46:04 +00:00
|
|
|
if USE_PGP
|
|
|
|
SUBDIRS += plugins/pgp
|
|
|
|
endif
|
|
|
|
|
2009-08-17 12:45:52 +00:00
|
|
|
if USE_DNSKEY
|
|
|
|
SUBDIRS += plugins/dnskey
|
|
|
|
endif
|
|
|
|
|
2009-08-11 14:24:01 +00:00
|
|
|
if USE_PEM
|
|
|
|
SUBDIRS += plugins/pem
|
|
|
|
endif
|
|
|
|
|
2008-03-13 14:14:44 +00:00
|
|
|
if USE_CURL
|
|
|
|
SUBDIRS += plugins/curl
|
|
|
|
endif
|
|
|
|
|
|
|
|
if USE_LDAP
|
|
|
|
SUBDIRS += plugins/ldap
|
|
|
|
endif
|
|
|
|
|
|
|
|
if USE_MYSQL
|
|
|
|
SUBDIRS += plugins/mysql
|
|
|
|
endif
|
|
|
|
|
|
|
|
if USE_SQLITE
|
|
|
|
SUBDIRS += plugins/sqlite
|
|
|
|
endif
|
|
|
|
|
2008-04-22 08:44:56 +00:00
|
|
|
if USE_PADLOCK
|
|
|
|
SUBDIRS += plugins/padlock
|
|
|
|
endif
|
2008-03-13 14:14:44 +00:00
|
|
|
|
2008-04-28 14:25:19 +00:00
|
|
|
if USE_OPENSSL
|
|
|
|
SUBDIRS += plugins/openssl
|
|
|
|
endif
|
|
|
|
|
2009-06-04 12:23:39 +00:00
|
|
|
if USE_GCRYPT
|
|
|
|
SUBDIRS += plugins/gcrypt
|
|
|
|
endif
|
|
|
|
|
2008-09-02 11:04:26 +00:00
|
|
|
if USE_AGENT
|
|
|
|
SUBDIRS += plugins/agent
|
|
|
|
endif
|
|
|
|
|
2009-06-11 09:09:33 +00:00
|
|
|
if USE_TEST_VECTORS
|
|
|
|
SUBDIRS += plugins/test_vectors
|
|
|
|
endif
|