1 lib_LTLIBRARIES = libstrongswan.la
4 libstrongswan_la_SOURCES = \
5 fips/fips_canister_start.c \
6 fips/fips.c fips/fips.h
8 libstrongswan_la_SOURCES =
11 libstrongswan_la_SOURCES += \
16 settings.h settings.c \
17 printf_hook.c printf_hook.h \
18 asn1/asn1.c asn1/asn1.h \
19 asn1/asn1_parser.c asn1/asn1_parser.h \
20 asn1/oid.c asn1/oid.h \
21 asn1/pem.c asn1/pem.h \
22 crypto/crypters/crypter.c crypto/crypters/crypter.h \
23 crypto/hashers/hasher.h crypto/hashers/hasher.c \
24 crypto/pkcs9.c crypto/pkcs9.h \
25 crypto/proposal/proposal_keywords.c crypto/proposal/proposal_keywords.h \
26 crypto/prfs/prf.c crypto/prfs/prf.h \
27 crypto/rngs/rng.c crypto/rngs/rng.h \
28 crypto/prf_plus.h crypto/prf_plus.c \
29 crypto/signers/signer.c crypto/signers/signer.h \
30 crypto/crypto_factory.c crypto/crypto_factory.h \
31 crypto/crypto_tester.c crypto/crypto_tester.h \
32 crypto/diffie_hellman.c crypto/diffie_hellman.h \
33 crypto/transform.c crypto/transform.h \
34 credentials/credential_factory.c credentials/credential_factory.h \
35 credentials/builder.c credentials/builder.h \
36 credentials/keys/private_key.c credentials/keys/private_key.h \
37 credentials/keys/public_key.c credentials/keys/public_key.h \
38 credentials/keys/shared_key.c credentials/keys/shared_key.h \
39 credentials/certificates/certificate.c credentials/certificates/certificate.h \
40 credentials/certificates/x509.h credentials/certificates/x509.c \
41 credentials/certificates/ac.h \
42 credentials/certificates/crl.h credentials/certificates/crl.c \
43 credentials/certificates/ocsp_request.h \
44 credentials/certificates/ocsp_response.h credentials/certificates/ocsp_response.c \
45 database/database.h database/database_factory.h database/database_factory.c \
46 fetcher/fetcher.h fetcher/fetcher_manager.h fetcher/fetcher_manager.c \
49 utils/host.c utils/host.h \
50 utils/identification.c utils/identification.h \
52 utils/lexparser.c utils/lexparser.h \
53 utils/linked_list.c utils/linked_list.h \
54 utils/hashtable.c utils/hashtable.h \
55 utils/enumerator.c utils/enumerator.h \
56 utils/optionsfrom.c utils/optionsfrom.h \
57 utils/mutex.c utils/mutex.h \
58 utils/backtrace.c utils/backtrace.h \
59 plugins/plugin_loader.c plugins/plugin_loader.h plugins/plugin.h
61 libstrongswan_la_LIBADD = -lpthread $(DLLIB)
63 INCLUDES = -I$(top_srcdir)/src/libstrongswan
65 -DIPSEC_DIR=\"${ipsecdir}\" \
66 -DIPSEC_PLUGINDIR=\"${plugindir}\"
69 AM_CFLAGS += -DLEAK_DETECTIVE
70 libstrongswan_la_SOURCES += \
71 utils/leak_detective.c utils/leak_detective.h
75 AM_CFLAGS += -DLOCK_PROFILER
79 libstrongswan_la_SOURCES += \
80 fips/fips_canister_end.c
84 libstrongswan_la_LIBADD += -lvstr
88 asn1/oid.txt asn1/oid.pl \
89 crypto/proposal/proposal_keywords.txt
92 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
93 $(srcdir)/crypto/proposal/proposal_keywords.c
95 MAINTAINERCLEANFILES = \
96 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
97 $(srcdir)/crypto/proposal/proposal_keywords.c
99 $(srcdir)/asn1/oid.c : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
100 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
102 $(srcdir)/asn1/oid.h : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
103 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
105 $(srcdir)/crypto/proposal/proposal_keywords.c: $(srcdir)/crypto/proposal/proposal_keywords.txt \
106 $(srcdir)/crypto/proposal/proposal_keywords.h
107 $(GPERF) -N proposal_get_token -m 10 -C -G -c -t -D < \
108 $(srcdir)/crypto/proposal/proposal_keywords.txt > $@
111 # build plugins with their own Makefile
112 #######################################
117 SUBDIRS += plugins/aes
121 SUBDIRS += plugins/des
125 SUBDIRS += plugins/blowfish
129 SUBDIRS += plugins/serpent
133 SUBDIRS += plugins/twofish
137 SUBDIRS += plugins/md4
141 SUBDIRS += plugins/md5
145 SUBDIRS += plugins/sha1
149 SUBDIRS += plugins/sha2
153 SUBDIRS += plugins/fips_prf
157 SUBDIRS += plugins/gmp
161 SUBDIRS += plugins/random
165 SUBDIRS += plugins/hmac
169 SUBDIRS += plugins/xcbc
173 SUBDIRS += plugins/x509
177 SUBDIRS += plugins/pubkey
181 SUBDIRS += plugins/curl
185 SUBDIRS += plugins/ldap
189 SUBDIRS += plugins/mysql
193 SUBDIRS += plugins/sqlite
197 SUBDIRS += plugins/padlock
201 SUBDIRS += plugins/openssl
205 SUBDIRS += plugins/gcrypt
209 SUBDIRS += plugins/agent
212 if USE_INTEGRITY_TEST