libstrongswan agent plugin to use ssh-agent for RSA signatures
[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/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/prfs/prf.c crypto/prfs/prf.h \
26 crypto/rngs/rng.c crypto/rngs/rng.h \
27 crypto/prf_plus.h crypto/prf_plus.c \
28 crypto/signers/signer.c crypto/signers/signer.h \
29 crypto/diffie_hellman.c crypto/diffie_hellman.h \
30 crypto/crypto_factory.c crypto/crypto_factory.h \
31 credentials/credential_factory.c credentials/credential_factory.h \
32 credentials/builder.c credentials/builder.h \
33 credentials/keys/private_key.c credentials/keys/private_key.h \
34 credentials/keys/public_key.c credentials/keys/public_key.h \
35 credentials/keys/shared_key.c credentials/keys/shared_key.h \
36 credentials/certificates/certificate.c credentials/certificates/certificate.h \
37 credentials/certificates/x509.h credentials/certificates/x509.c \
38 credentials/certificates/ac.h \
39 credentials/certificates/crl.h credentials/certificates/crl.c \
40 credentials/certificates/ocsp_request.h \
41 credentials/certificates/ocsp_response.h credentials/certificates/ocsp_response.c \
42 fetcher/fetcher.h fetcher/fetcher_manager.h fetcher/fetcher_manager.c \
43 database/database.h database/database_factory.h database/database_factory.c \
44 utils.h utils.c \
45 utils/host.c utils/host.h \
46 utils/identification.c utils/identification.h \
47 utils/iterator.h \
48 utils/lexparser.c utils/lexparser.h \
49 utils/linked_list.c utils/linked_list.h \
50 utils/enumerator.c utils/enumerator.h \
51 utils/optionsfrom.c utils/optionsfrom.h \
52 utils/mutex.c utils/mutex.h \
53 plugins/plugin_loader.c plugins/plugin_loader.h plugins/plugin.h
54
55 libstrongswan_la_LIBADD = -lpthread -ldl
56
57 INCLUDES = -I$(top_srcdir)/src/libstrongswan
58 AM_CFLAGS = -DIPSEC_DIR=\"${ipsecdir}\" \
59                         -DIPSEC_PLUGINDIR=\"${plugindir}\"
60
61 if USE_LEAK_DETECTIVE
62   AM_CFLAGS += -DLEAK_DETECTIVE
63   libstrongswan_la_SOURCES += utils/leak_detective.c utils/leak_detective.h
64 endif
65
66 if USE_INTEGRITY_TEST
67   libstrongswan_la_SOURCES += \
68   fips/fips_canister_end.c
69 endif
70
71 EXTRA_DIST = asn1/oid.txt asn1/oid.pl
72 BUILT_SOURCES = asn1/oid.c asn1/oid.h
73 MAINTAINERCLEANFILES = asn1/oid.c asn1/oid.h
74
75 asn1/oid.c :    asn1/oid.txt asn1/oid.pl
76                 cd asn1 && $(PERL) oid.pl
77
78 asn1/oid.h :    asn1/oid.txt asn1/oid.pl
79                 cd asn1 && $(PERL) oid.pl
80
81
82 # build plugins with their own Makefile
83 #######################################
84
85 SUBDIRS = .
86
87 if USE_AES
88   SUBDIRS += plugins/aes
89 endif
90
91 if USE_DES
92   SUBDIRS += plugins/des
93 endif
94
95 if USE_MD5
96   SUBDIRS += plugins/md5
97 endif
98
99 if USE_SHA1
100   SUBDIRS += plugins/sha1
101 endif
102
103 if USE_SHA2
104   SUBDIRS += plugins/sha2
105 endif
106
107 if USE_FIPS_PRF
108   SUBDIRS += plugins/fips_prf
109 endif
110
111 if USE_GMP
112   SUBDIRS += plugins/gmp
113 endif
114
115 if USE_RANDOM
116   SUBDIRS += plugins/random
117 endif
118
119 if USE_HMAC
120   SUBDIRS += plugins/hmac
121 endif
122
123 if USE_XCBC
124   SUBDIRS += plugins/xcbc
125 endif
126
127 if USE_X509
128   SUBDIRS += plugins/x509
129 endif
130
131 if USE_PUBKEY
132   SUBDIRS += plugins/pubkey
133 endif
134
135 if USE_CURL
136   SUBDIRS += plugins/curl
137 endif
138
139 if USE_LDAP
140   SUBDIRS += plugins/ldap
141 endif
142
143 if USE_MYSQL
144   SUBDIRS += plugins/mysql
145 endif
146
147 if USE_SQLITE
148   SUBDIRS += plugins/sqlite
149 endif
150
151 if USE_PADLOCK
152   SUBDIRS += plugins/padlock
153 endif
154
155 if USE_OPENSSL
156   SUBDIRS += plugins/openssl
157 endif
158
159 if USE_AGENT
160   SUBDIRS += plugins/agent
161 endif
162
163 if USE_INTEGRITY_TEST
164   SUBDIRS += fips
165 endif