1 lib_LTLIBRARIES = libstrongswan.la
3 libstrongswan_la_SOURCES = \
8 settings.h settings.c \
9 printf_hook.c printf_hook.h \
10 asn1/asn1.c asn1/asn1.h \
11 asn1/asn1_parser.c asn1/asn1_parser.h \
12 asn1/oid.c asn1/oid.h \
13 asn1/pem.c asn1/pem.h \
14 crypto/crypters/crypter.c crypto/crypters/crypter.h \
15 crypto/hashers/hasher.h crypto/hashers/hasher.c \
16 crypto/pkcs9.c crypto/pkcs9.h \
17 crypto/proposal/proposal_keywords.c crypto/proposal/proposal_keywords.h \
18 crypto/prfs/prf.c crypto/prfs/prf.h \
19 crypto/rngs/rng.c crypto/rngs/rng.h \
20 crypto/prf_plus.h crypto/prf_plus.c \
21 crypto/signers/signer.c crypto/signers/signer.h \
22 crypto/crypto_factory.c crypto/crypto_factory.h \
23 crypto/crypto_tester.c crypto/crypto_tester.h \
24 crypto/diffie_hellman.c crypto/diffie_hellman.h \
25 crypto/transform.c crypto/transform.h \
26 credentials/credential_factory.c credentials/credential_factory.h \
27 credentials/builder.c credentials/builder.h \
28 credentials/keys/private_key.c credentials/keys/private_key.h \
29 credentials/keys/public_key.c credentials/keys/public_key.h \
30 credentials/keys/shared_key.c credentials/keys/shared_key.h \
31 credentials/certificates/certificate.c credentials/certificates/certificate.h \
32 credentials/certificates/x509.h credentials/certificates/x509.c \
33 credentials/certificates/ac.h \
34 credentials/certificates/crl.h credentials/certificates/crl.c \
35 credentials/certificates/ocsp_request.h \
36 credentials/certificates/ocsp_response.h credentials/certificates/ocsp_response.c \
37 database/database.h database/database_factory.h database/database_factory.c \
38 fetcher/fetcher.h fetcher/fetcher_manager.h fetcher/fetcher_manager.c \
41 utils/host.c utils/host.h \
42 utils/identification.c utils/identification.h \
44 utils/lexparser.c utils/lexparser.h \
45 utils/linked_list.c utils/linked_list.h \
46 utils/hashtable.c utils/hashtable.h \
47 utils/enumerator.c utils/enumerator.h \
48 utils/optionsfrom.c utils/optionsfrom.h \
49 utils/mutex.c utils/mutex.h \
50 utils/backtrace.c utils/backtrace.h \
51 plugins/plugin_loader.c plugins/plugin_loader.h plugins/plugin.h
53 libstrongswan_la_LIBADD = -lpthread $(DLLIB)
55 INCLUDES = -I$(top_srcdir)/src/libstrongswan
57 -DIPSEC_DIR=\"${ipsecdir}\" \
58 -DIPSEC_PLUGINDIR=\"${plugindir}\"
61 AM_CFLAGS += -DLEAK_DETECTIVE
62 libstrongswan_la_SOURCES += \
63 utils/leak_detective.c utils/leak_detective.h
67 AM_CFLAGS += -DLOCK_PROFILER
71 AM_CFLAGS += -DINTEGRITY_TEST
72 libstrongswan_la_SOURCES += \
73 integrity_checker.c integrity_checker.h
77 libstrongswan_la_LIBADD += -lvstr
81 asn1/oid.txt asn1/oid.pl \
82 crypto/proposal/proposal_keywords.txt
85 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
86 $(srcdir)/crypto/proposal/proposal_keywords.c
88 MAINTAINERCLEANFILES = \
89 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
90 $(srcdir)/crypto/proposal/proposal_keywords.c
92 $(srcdir)/asn1/oid.c : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
93 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
95 $(srcdir)/asn1/oid.h : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
96 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
98 $(srcdir)/crypto/proposal/proposal_keywords.c: $(srcdir)/crypto/proposal/proposal_keywords.txt \
99 $(srcdir)/crypto/proposal/proposal_keywords.h
100 $(GPERF) -N proposal_get_token -m 10 -C -G -c -t -D < \
101 $(srcdir)/crypto/proposal/proposal_keywords.txt > $@
104 # build plugins with their own Makefile
105 #######################################
110 SUBDIRS += plugins/aes
114 SUBDIRS += plugins/des
118 SUBDIRS += plugins/blowfish
122 SUBDIRS += plugins/md4
126 SUBDIRS += plugins/md5
130 SUBDIRS += plugins/sha1
134 SUBDIRS += plugins/sha2
138 SUBDIRS += plugins/fips_prf
142 SUBDIRS += plugins/gmp
146 SUBDIRS += plugins/random
150 SUBDIRS += plugins/hmac
154 SUBDIRS += plugins/xcbc
158 SUBDIRS += plugins/x509
162 SUBDIRS += plugins/pubkey
166 SUBDIRS += plugins/curl
170 SUBDIRS += plugins/ldap
174 SUBDIRS += plugins/mysql
178 SUBDIRS += plugins/sqlite
182 SUBDIRS += plugins/padlock
186 SUBDIRS += plugins/openssl
190 SUBDIRS += plugins/gcrypt
194 SUBDIRS += plugins/agent
198 SUBDIRS += plugins/test_vectors