2009-04-18 14:50:31 +00:00
|
|
|
lib_LTLIBRARIES = libstrongswan.la libstrongswan-lite.la
|
2006-05-16 14:24:03 +00:00
|
|
|
|
2007-08-29 00:37:10 +00:00
|
|
|
if USE_INTEGRITY_TEST
|
|
|
|
libstrongswan_la_SOURCES = \
|
|
|
|
fips/fips_canister_start.c \
|
|
|
|
fips/fips.c fips/fips.h
|
|
|
|
else
|
|
|
|
libstrongswan_la_SOURCES =
|
|
|
|
endif
|
|
|
|
|
|
|
|
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
|
|
|
asn1/pem.c asn1/pem.h \
|
|
|
|
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 \
|
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/diffie_hellman.c crypto/diffie_hellman.h \
|
|
|
|
crypto/crypto_factory.c crypto/crypto_factory.h \
|
|
|
|
credentials/credential_factory.c credentials/credential_factory.h \
|
|
|
|
credentials/builder.c credentials/builder.h \
|
|
|
|
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 \
|
|
|
|
fetcher/fetcher.h fetcher/fetcher_manager.h fetcher/fetcher_manager.c \
|
|
|
|
database/database.h database/database_factory.h database/database_factory.c \
|
|
|
|
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
|
|
|
|
2008-03-13 14:14:44 +00:00
|
|
|
libstrongswan_la_LIBADD = -lpthread -ldl
|
2006-05-16 14:24:03 +00:00
|
|
|
|
2009-04-18 14:50:31 +00:00
|
|
|
libstrongswan_lite_la_SOURCES = \
|
|
|
|
chunk.c chunk.h \
|
|
|
|
debug.c debug.h \
|
2009-04-20 09:32:59 +00:00
|
|
|
enum.c enum.h \
|
2009-04-18 14:50:31 +00:00
|
|
|
printf_hook.c printf_hook.h \
|
|
|
|
settings.c settings.h \
|
|
|
|
utils.c utils.h \
|
2009-04-18 17:43:28 +00:00
|
|
|
asn1/oid.c asn1/oid.h \
|
2009-04-18 14:50:31 +00:00
|
|
|
utils/enumerator.c utils/enumerator.h \
|
2009-04-18 17:43:28 +00:00
|
|
|
utils/lexparser.c utils/lexparser.h \
|
|
|
|
utils/linked_list.c utils/linked_list.h \
|
|
|
|
utils/optionsfrom.c utils/optionsfrom.h
|
2009-04-18 14:50:31 +00:00
|
|
|
|
2006-05-16 14:24:03 +00:00
|
|
|
INCLUDES = -I$(top_srcdir)/src/libstrongswan
|
2008-03-26 20:16:42 +00:00
|
|
|
AM_CFLAGS = -DIPSEC_DIR=\"${ipsecdir}\" \
|
|
|
|
-DIPSEC_PLUGINDIR=\"${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
|
|
|
|
libstrongswan_lite_la_SOURCES += \
|
|
|
|
utils/leak_detective.c utils/leak_detective.h \
|
|
|
|
utils/backtrace.c utils/backtrace.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
|
|
|
|
|
2008-04-04 11:38:16 +00:00
|
|
|
if USE_INTEGRITY_TEST
|
|
|
|
libstrongswan_la_SOURCES += \
|
|
|
|
fips/fips_canister_end.c
|
2007-04-06 09:44:06 +00:00
|
|
|
endif
|
|
|
|
|
2009-03-12 18:07:32 +00:00
|
|
|
if USE_VSTR
|
|
|
|
libstrongswan_la_LIBADD += -lvstr
|
|
|
|
endif
|
|
|
|
|
2007-08-29 00:37:10 +00:00
|
|
|
EXTRA_DIST = asn1/oid.txt asn1/oid.pl
|
|
|
|
BUILT_SOURCES = asn1/oid.c asn1/oid.h
|
|
|
|
MAINTAINERCLEANFILES = asn1/oid.c asn1/oid.h
|
|
|
|
|
2008-10-14 08:46:31 +00:00
|
|
|
asn1/oid.c : asn1/oid.pl asn1/oid.txt
|
2008-10-16 15:38:48 +00:00
|
|
|
(cd `dirname $<` && $(PERL) `basename $<`)
|
2006-05-19 14:16:58 +00:00
|
|
|
|
2008-10-14 08:46:31 +00:00
|
|
|
asn1/oid.h : asn1/oid.pl asn1/oid.txt
|
2008-10-16 15:38:48 +00:00
|
|
|
(cd `dirname $<` && $(PERL) `basename $<`)
|
2007-08-29 00:37:10 +00:00
|
|
|
|
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-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
|
|
|
|
|
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
|
|
|
|
|
2008-09-02 11:04:26 +00:00
|
|
|
if USE_AGENT
|
|
|
|
SUBDIRS += plugins/agent
|
|
|
|
endif
|
|
|
|
|
2007-08-29 07:02:13 +00:00
|
|
|
if USE_INTEGRITY_TEST
|
2008-08-19 18:51:30 +00:00
|
|
|
SUBDIRS += fips
|
2007-08-29 07:02:13 +00:00
|
|
|
endif
|