removed obsolete INTEGRITY_TEST and fips signer code
[strongswan.git] / src / libstrongswan / Makefile.am
1 lib_LTLIBRARIES = libstrongswan.la
2
3 libstrongswan_la_SOURCES = \
4 library.c library.h \
5 chunk.c chunk.h \
6 debug.c debug.h \
7 enum.c enum.h \
8 settings.h settings.c \
9 printf_hook.c printf_hook.h \
10 integrity_checker.c integrity_checker.h \
11 asn1/asn1.c asn1/asn1.h \
12 asn1/asn1_parser.c asn1/asn1_parser.h \
13 asn1/oid.c asn1/oid.h \
14 asn1/pem.c asn1/pem.h \
15 crypto/crypters/crypter.c crypto/crypters/crypter.h \
16 crypto/hashers/hasher.h crypto/hashers/hasher.c \
17 crypto/pkcs9.c crypto/pkcs9.h \
18 crypto/proposal/proposal_keywords.c crypto/proposal/proposal_keywords.h \
19 crypto/prfs/prf.c crypto/prfs/prf.h \
20 crypto/rngs/rng.c crypto/rngs/rng.h \
21 crypto/prf_plus.h crypto/prf_plus.c \
22 crypto/signers/signer.c crypto/signers/signer.h \
23 crypto/crypto_factory.c crypto/crypto_factory.h \
24 crypto/crypto_tester.c crypto/crypto_tester.h \
25 crypto/diffie_hellman.c crypto/diffie_hellman.h \
26 crypto/transform.c crypto/transform.h \
27 credentials/credential_factory.c credentials/credential_factory.h \
28 credentials/builder.c credentials/builder.h \
29 credentials/keys/private_key.c credentials/keys/private_key.h \
30 credentials/keys/public_key.c credentials/keys/public_key.h \
31 credentials/keys/shared_key.c credentials/keys/shared_key.h \
32 credentials/certificates/certificate.c credentials/certificates/certificate.h \
33 credentials/certificates/x509.h credentials/certificates/x509.c \
34 credentials/certificates/ac.h \
35 credentials/certificates/crl.h credentials/certificates/crl.c \
36 credentials/certificates/ocsp_request.h \
37 credentials/certificates/ocsp_response.h credentials/certificates/ocsp_response.c \
38 database/database.h database/database_factory.h database/database_factory.c \
39 fetcher/fetcher.h fetcher/fetcher_manager.h fetcher/fetcher_manager.c \
40 pgp/pgp.c pgp/pgp.h \
41 utils.h utils.c \
42 utils/host.c utils/host.h \
43 utils/identification.c utils/identification.h \
44 utils/iterator.h \
45 utils/lexparser.c utils/lexparser.h \
46 utils/linked_list.c utils/linked_list.h \
47 utils/hashtable.c utils/hashtable.h \
48 utils/enumerator.c utils/enumerator.h \
49 utils/optionsfrom.c utils/optionsfrom.h \
50 utils/mutex.c utils/mutex.h \
51 utils/backtrace.c utils/backtrace.h \
52 plugins/plugin_loader.c plugins/plugin_loader.h plugins/plugin.h
53
54 libstrongswan_la_LIBADD = -lpthread $(DLLIB)
55
56 INCLUDES = -I$(top_srcdir)/src/libstrongswan
57 AM_CFLAGS = \
58 -DIPSEC_DIR=\"${ipsecdir}\" \
59 -DIPSEC_PLUGINDIR=\"${plugindir}\"
60
61 if USE_LEAK_DETECTIVE
62   AM_CFLAGS += -DLEAK_DETECTIVE
63   libstrongswan_la_SOURCES += \
64     utils/leak_detective.c utils/leak_detective.h
65 endif
66
67 if USE_LOCK_PROFILER
68   AM_CFLAGS += -DLOCK_PROFILER
69 endif
70
71 if USE_VSTR
72   libstrongswan_la_LIBADD += -lvstr
73 endif
74
75 EXTRA_DIST = \
76 asn1/oid.txt asn1/oid.pl \
77 crypto/proposal/proposal_keywords.txt
78
79 BUILT_SOURCES = \
80 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
81 $(srcdir)/crypto/proposal/proposal_keywords.c
82
83 MAINTAINERCLEANFILES = \
84 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
85 $(srcdir)/crypto/proposal/proposal_keywords.c
86
87 $(srcdir)/asn1/oid.c :  $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
88                 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
89
90 $(srcdir)/asn1/oid.h :  $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
91                 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
92
93 $(srcdir)/crypto/proposal/proposal_keywords.c:  $(srcdir)/crypto/proposal/proposal_keywords.txt \
94                                                                                                 $(srcdir)/crypto/proposal/proposal_keywords.h
95                 $(GPERF) -N proposal_get_token -m 10 -C -G -c -t -D < \
96                                                                                                 $(srcdir)/crypto/proposal/proposal_keywords.txt > $@
97
98
99 # build plugins with their own Makefile
100 #######################################
101
102 SUBDIRS = .
103
104 if USE_AES
105   SUBDIRS += plugins/aes
106 endif
107
108 if USE_DES
109   SUBDIRS += plugins/des
110 endif
111
112 if USE_BLOWFISH
113   SUBDIRS += plugins/blowfish
114 endif
115
116 if USE_MD4
117   SUBDIRS += plugins/md4
118 endif
119
120 if USE_MD5
121   SUBDIRS += plugins/md5
122 endif
123
124 if USE_SHA1
125   SUBDIRS += plugins/sha1
126 endif
127
128 if USE_SHA2
129   SUBDIRS += plugins/sha2
130 endif
131
132 if USE_FIPS_PRF
133   SUBDIRS += plugins/fips_prf
134 endif
135
136 if USE_GMP
137   SUBDIRS += plugins/gmp
138 endif
139
140 if USE_RANDOM
141   SUBDIRS += plugins/random
142 endif
143
144 if USE_HMAC
145   SUBDIRS += plugins/hmac
146 endif
147
148 if USE_XCBC
149   SUBDIRS += plugins/xcbc
150 endif
151
152 if USE_X509
153   SUBDIRS += plugins/x509
154 endif
155
156 if USE_PUBKEY
157   SUBDIRS += plugins/pubkey
158 endif
159
160 if USE_CURL
161   SUBDIRS += plugins/curl
162 endif
163
164 if USE_LDAP
165   SUBDIRS += plugins/ldap
166 endif
167
168 if USE_MYSQL
169   SUBDIRS += plugins/mysql
170 endif
171
172 if USE_SQLITE
173   SUBDIRS += plugins/sqlite
174 endif
175
176 if USE_PADLOCK
177   SUBDIRS += plugins/padlock
178 endif
179
180 if USE_OPENSSL
181   SUBDIRS += plugins/openssl
182 endif
183
184 if USE_GCRYPT
185   SUBDIRS += plugins/gcrypt
186 endif
187
188 if USE_AGENT
189   SUBDIRS += plugins/agent
190 endif
191
192 if USE_TEST_VECTORS
193   SUBDIRS += plugins/test_vectors
194 endif
195
196 if USE_INTEGRITY_TEST
197   SUBDIRS += checksum
198 endif