]> git.ipfire.org Git - thirdparty/strongswan.git/blame - src/libstrongswan/Makefile.am
memleak fixed when reading smartcard secrets
[thirdparty/strongswan.git] / src / libstrongswan / Makefile.am
CommitLineData
f2c2d395
MW
1lib_LTLIBRARIES = libstrongswan.la
2
55434a1b
AS
3if USE_INTEGRITY_TEST
4 libstrongswan_la_SOURCES = \
5 fips/fips_canister_start.c \
6 fips/fips.c fips/fips.h
7else
8 libstrongswan_la_SOURCES =
9endif
10
11libstrongswan_la_SOURCES += \
307b4ded 12library.c library.h \
db7ef624
MW
13chunk.c chunk.h \
14debug.c debug.h \
15enum.c enum.h \
552cc11b 16settings.h settings.c \
db7ef624 17printf_hook.c printf_hook.h \
307b4ded 18asn1/asn1.c asn1/asn1.h \
d3d7e46b 19asn1/asn1_parser.c asn1/asn1_parser.h \
2ef41cda 20asn1/oid.c asn1/oid.h \
307b4ded 21asn1/pem.c asn1/pem.h \
307b4ded 22crypto/crypters/crypter.c crypto/crypters/crypter.h \
307b4ded 23crypto/hashers/hasher.h crypto/hashers/hasher.c \
e8bfe742 24crypto/pkcs9.c crypto/pkcs9.h \
2ef41cda 25crypto/prfs/prf.c crypto/prfs/prf.h \
6a365f07 26crypto/rngs/rng.c crypto/rngs/rng.h \
2ef41cda 27crypto/prf_plus.h crypto/prf_plus.c \
2ef41cda 28crypto/signers/signer.c crypto/signers/signer.h \
552cc11b
MW
29crypto/diffie_hellman.c crypto/diffie_hellman.h \
30crypto/crypto_factory.c crypto/crypto_factory.h \
31credentials/credential_factory.c credentials/credential_factory.h \
32credentials/builder.c credentials/builder.h \
33credentials/keys/private_key.c credentials/keys/private_key.h \
34credentials/keys/public_key.c credentials/keys/public_key.h \
35credentials/keys/shared_key.c credentials/keys/shared_key.h \
36credentials/certificates/certificate.c credentials/certificates/certificate.h \
37credentials/certificates/x509.h credentials/certificates/x509.c \
26930a8c 38credentials/certificates/ac.h \
552cc11b 39credentials/certificates/crl.h credentials/certificates/crl.c \
7b88a983 40credentials/certificates/ocsp_request.h \
552cc11b
MW
41credentials/certificates/ocsp_response.h credentials/certificates/ocsp_response.c \
42fetcher/fetcher.h fetcher/fetcher_manager.h fetcher/fetcher_manager.c \
43database/database.h database/database_factory.h database/database_factory.c \
44utils.h utils.c \
307b4ded 45utils/host.c utils/host.h \
2ef41cda
AS
46utils/identification.c utils/identification.h \
47utils/iterator.h \
307b4ded 48utils/lexparser.c utils/lexparser.h \
2ef41cda 49utils/linked_list.c utils/linked_list.h \
0948edbb 50utils/hashtable.c utils/hashtable.h \
d62a4526 51utils/enumerator.c utils/enumerator.h \
b4979ff7 52utils/optionsfrom.c utils/optionsfrom.h \
552cc11b 53utils/mutex.c utils/mutex.h \
f7237cf3 54utils/backtrace.c utils/backtrace.h \
552cc11b 55plugins/plugin_loader.c plugins/plugin_loader.h plugins/plugin.h
f2c2d395 56
552cc11b 57libstrongswan_la_LIBADD = -lpthread -ldl
f2c2d395
MW
58
59INCLUDES = -I$(top_srcdir)/src/libstrongswan
1aad8bdf
AS
60AM_CFLAGS = -DIPSEC_DIR=\"${ipsecdir}\" \
61 -DIPSEC_PLUGINDIR=\"${plugindir}\"
d6c32b83 62
4acc8989 63if USE_LEAK_DETECTIVE
552cc11b 64 AM_CFLAGS += -DLEAK_DETECTIVE
a9184df3
MW
65 libstrongswan_la_SOURCES += utils/leak_detective.c utils/leak_detective.h
66endif
67
02140125
MW
68if USE_LOCK_PROFILER
69 AM_CFLAGS += -DLOCK_PROFILER
70endif
71
a9184df3
MW
72if USE_INTEGRITY_TEST
73 libstrongswan_la_SOURCES += \
74 fips/fips_canister_end.c
241d2ff3
AS
75endif
76
55434a1b
AS
77EXTRA_DIST = asn1/oid.txt asn1/oid.pl
78BUILT_SOURCES = asn1/oid.c asn1/oid.h
79MAINTAINERCLEANFILES = asn1/oid.c asn1/oid.h
80
1adaa02b 81asn1/oid.c : asn1/oid.pl asn1/oid.txt
104c28d6 82 (cd `dirname $<` && $(PERL) `basename $<`)
d6c32b83 83
1adaa02b 84asn1/oid.h : asn1/oid.pl asn1/oid.txt
104c28d6 85 (cd `dirname $<` && $(PERL) `basename $<`)
55434a1b 86
552cc11b
MW
87
88# build plugins with their own Makefile
89#######################################
90
82d8368b 91SUBDIRS = .
552cc11b
MW
92
93if USE_AES
94 SUBDIRS += plugins/aes
95endif
96
97if USE_DES
98 SUBDIRS += plugins/des
99endif
100
1e0d1ae2
AS
101if USE_MD4
102 SUBDIRS += plugins/md4
103endif
104
552cc11b
MW
105if USE_MD5
106 SUBDIRS += plugins/md5
107endif
108
109if USE_SHA1
110 SUBDIRS += plugins/sha1
111endif
112
113if USE_SHA2
114 SUBDIRS += plugins/sha2
115endif
116
117if USE_FIPS_PRF
118 SUBDIRS += plugins/fips_prf
119endif
120
121if USE_GMP
122 SUBDIRS += plugins/gmp
123endif
124
6a365f07
MW
125if USE_RANDOM
126 SUBDIRS += plugins/random
127endif
128
552cc11b
MW
129if USE_HMAC
130 SUBDIRS += plugins/hmac
131endif
132
27d04e05
MW
133if USE_XCBC
134 SUBDIRS += plugins/xcbc
135endif
136
552cc11b
MW
137if USE_X509
138 SUBDIRS += plugins/x509
139endif
140
affd7a90
MW
141if USE_PUBKEY
142 SUBDIRS += plugins/pubkey
143endif
144
552cc11b
MW
145if USE_CURL
146 SUBDIRS += plugins/curl
147endif
148
149if USE_LDAP
150 SUBDIRS += plugins/ldap
151endif
152
153if USE_MYSQL
154 SUBDIRS += plugins/mysql
155endif
156
157if USE_SQLITE
158 SUBDIRS += plugins/sqlite
159endif
160
36d62fac
MW
161if USE_PADLOCK
162 SUBDIRS += plugins/padlock
163endif
552cc11b 164
17353034
TB
165if USE_OPENSSL
166 SUBDIRS += plugins/openssl
167endif
168
21c95463
MW
169if USE_AGENT
170 SUBDIRS += plugins/agent
171endif
172
d8b45dcd 173if USE_INTEGRITY_TEST
af165431 174 SUBDIRS += fips
d8b45dcd 175endif