The introduced SHA1_NOFINAL hasher was not sufficient for EAP-AKA,
[strongswan.git] / src / libstrongswan / Makefile.am
1 lib_LTLIBRARIES = libstrongswan.la
2
3 if USE_INTEGRITY_TEST
4   libstrongswan_la_SOURCES = \
5   fips/fips_canister_start.c \
6   fips/fips.c fips/fips.h
7 else
8   libstrongswan_la_SOURCES =
9 endif
10
11 libstrongswan_la_SOURCES += \
12 library.c library.h \
13 chunk.c chunk.h \
14 debug.c debug.h \
15 enum.c enum.h \
16 settings.h settings.c \
17 printf_hook.c printf_hook.h \
18 asn1/asn1.c asn1/asn1.h \
19 asn1/oid.c asn1/oid.h \
20 asn1/pem.c asn1/pem.h \
21 asn1/ttodata.c asn1/ttodata.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/prfs/prf.c crypto/prfs/prf.h \
26 crypto/prf_plus.h crypto/prf_plus.c \
27 crypto/signers/signer.c crypto/signers/signer.h \
28 crypto/diffie_hellman.c crypto/diffie_hellman.h \
29 crypto/crypto_factory.c crypto/crypto_factory.h \
30 credentials/credential_factory.c credentials/credential_factory.h \
31 credentials/builder.c credentials/builder.h \
32 credentials/keys/private_key.c credentials/keys/private_key.h \
33 credentials/keys/public_key.c credentials/keys/public_key.h \
34 credentials/keys/shared_key.c credentials/keys/shared_key.h \
35 credentials/certificates/certificate.c credentials/certificates/certificate.h \
36 credentials/certificates/x509.h credentials/certificates/x509.c \
37 credentials/certificates/crl.h credentials/certificates/crl.c \
38 credentials/certificates/ocsp_request.h credentials/certificates/ocsp_request.c \
39 credentials/certificates/ocsp_response.h credentials/certificates/ocsp_response.c \
40 fetcher/fetcher.h fetcher/fetcher_manager.h fetcher/fetcher_manager.c \
41 database/database.h database/database_factory.h database/database_factory.c \
42 utils.h utils.c \
43 utils/host.c utils/host.h \
44 utils/identification.c utils/identification.h \
45 utils/iterator.h \
46 utils/leak_detective.c utils/leak_detective.h \
47 utils/lexparser.c utils/lexparser.h \
48 utils/linked_list.c utils/linked_list.h \
49 utils/enumerator.c utils/enumerator.h \
50 utils/optionsfrom.c utils/optionsfrom.h \
51 utils/randomizer.c utils/randomizer.h \
52 utils/mutex.c utils/mutex.h \
53 plugins/plugin_loader.c plugins/plugin_loader.h plugins/plugin.h
54
55 if USE_INTEGRITY_TEST
56   libstrongswan_la_SOURCES += \
57   fips/fips_canister_end.c
58 endif
59
60 libstrongswan_la_LIBADD = -lpthread -ldl
61
62 INCLUDES = -I$(top_srcdir)/src/libstrongswan
63 AM_CFLAGS =
64
65 if USE_LEAK_DETECTIVE
66   AM_CFLAGS += -DLEAK_DETECTIVE
67 endif
68
69 EXTRA_DIST = asn1/oid.txt asn1/oid.pl
70 BUILT_SOURCES = asn1/oid.c asn1/oid.h
71 MAINTAINERCLEANFILES = asn1/oid.c asn1/oid.h
72
73 asn1/oid.c :    asn1/oid.txt asn1/oid.pl
74                 cd asn1 && $(PERL) oid.pl
75
76 asn1/oid.h :    asn1/oid.txt asn1/oid.pl
77                 cd asn1 && $(PERL) oid.pl
78
79
80 # build plugins with their own Makefile
81 #######################################
82
83 SUBDIRS = 
84
85 if USE_AES
86   SUBDIRS += plugins/aes
87 endif
88
89 if USE_DES
90   SUBDIRS += plugins/des
91 endif
92
93 if USE_MD5
94   SUBDIRS += plugins/md5
95 endif
96
97 if USE_SHA1
98   SUBDIRS += plugins/sha1
99 endif
100
101 if USE_SHA2
102   SUBDIRS += plugins/sha2
103 endif
104
105 if USE_FIPS_PRF
106   SUBDIRS += plugins/fips_prf
107 endif
108
109 if USE_GMP
110   SUBDIRS += plugins/gmp
111 endif
112
113 if USE_HMAC
114   SUBDIRS += plugins/hmac
115 endif
116
117 if USE_X509
118   SUBDIRS += plugins/x509
119 endif
120
121 if USE_CURL
122   SUBDIRS += plugins/curl
123 endif
124
125 if USE_LDAP
126   SUBDIRS += plugins/ldap
127 endif
128
129 if USE_MYSQL
130   SUBDIRS += plugins/mysql
131 endif
132
133 if USE_SQLITE
134   SUBDIRS += plugins/sqlite
135 endif
136
137
138 if USE_INTEGRITY_TEST
139 # build fips_signer which in turn builds fips_signature.h
140 #########################################################
141 noinst_PROGRAMS = fips_signer
142 fips_signer_SOURCES = fips/fips_signer.c
143 fips_signer_LDADD = libstrongswan.la
144
145 BUILT_SOURCES += fips_signature.h
146 CLEANFILES = fips_signature.h fips_signer
147
148 fips_signature.h : fips_signer
149                    ./fips_signer
150 endif