3393b4516314fcdf50845742efe70e6c281aeb04
[strongswan.git] / src / charon / Makefile.am
1 ipsec_PROGRAMS = charon
2
3 charon_SOURCES = \
4 bus/bus.c bus/bus.h \
5 bus/listeners/file_logger.c bus/listeners/file_logger.h \
6 bus/listeners/sys_logger.c bus/listeners/sys_logger.h \
7 config/backend_manager.c config/backend_manager.h config/backend.h \
8 config/child_cfg.c config/child_cfg.h \
9 config/ike_cfg.c config/ike_cfg.h \
10 config/peer_cfg.c config/peer_cfg.h \
11 config/proposal.c config/proposal.h \
12 config/traffic_selector.c config/traffic_selector.h \
13 config/attributes/attribute_provider.h \
14 config/attributes/attribute_manager.c config/attributes/attribute_manager.h \
15 control/controller.c control/controller.h \
16 daemon.c daemon.h \
17 encoding/generator.c encoding/generator.h \
18 encoding/message.c encoding/message.h \
19 encoding/parser.c encoding/parser.h \
20 encoding/payloads/auth_payload.c encoding/payloads/auth_payload.h \
21 encoding/payloads/cert_payload.c encoding/payloads/cert_payload.h \
22 encoding/payloads/certreq_payload.c encoding/payloads/certreq_payload.h \
23 encoding/payloads/configuration_attribute.c encoding/payloads/configuration_attribute.h \
24 encoding/payloads/cp_payload.c encoding/payloads/cp_payload.h \
25 encoding/payloads/delete_payload.c encoding/payloads/delete_payload.h \
26 encoding/payloads/eap_payload.c encoding/payloads/eap_payload.h \
27 encoding/payloads/encodings.c encoding/payloads/encodings.h \
28 encoding/payloads/encryption_payload.c encoding/payloads/encryption_payload.h \
29 encoding/payloads/id_payload.c encoding/payloads/id_payload.h \
30 encoding/payloads/ike_header.c encoding/payloads/ike_header.h \
31 encoding/payloads/ke_payload.c  encoding/payloads/ke_payload.h \
32 encoding/payloads/nonce_payload.c encoding/payloads/nonce_payload.h \
33 encoding/payloads/notify_payload.c encoding/payloads/notify_payload.h \
34 encoding/payloads/payload.c encoding/payloads/payload.h \
35 encoding/payloads/proposal_substructure.c encoding/payloads/proposal_substructure.h \
36 encoding/payloads/sa_payload.c encoding/payloads/sa_payload.h \
37 encoding/payloads/traffic_selector_substructure.c encoding/payloads/traffic_selector_substructure.h \
38 encoding/payloads/transform_attribute.c encoding/payloads/transform_attribute.h \
39 encoding/payloads/transform_substructure.c encoding/payloads/transform_substructure.h \
40 encoding/payloads/ts_payload.c encoding/payloads/ts_payload.h \
41 encoding/payloads/unknown_payload.c encoding/payloads/unknown_payload.h \
42 encoding/payloads/vendor_id_payload.c encoding/payloads/vendor_id_payload.h \
43 kernel/kernel_interface.c kernel/kernel_interface.h \
44 kernel/kernel_ipsec.c kernel/kernel_ipsec.h \
45 kernel/kernel_net.h \
46 network/packet.c network/packet.h \
47 network/receiver.c network/receiver.h \
48 network/sender.c network/sender.h \
49 network/socket.h \
50 processing/jobs/job.h \
51 processing/jobs/acquire_job.c processing/jobs/acquire_job.h \
52 processing/jobs/callback_job.c processing/jobs/callback_job.h \
53 processing/jobs/delete_child_sa_job.c processing/jobs/delete_child_sa_job.h \
54 processing/jobs/delete_ike_sa_job.c processing/jobs/delete_ike_sa_job.h \
55 processing/jobs/migrate_job.c processing/jobs/migrate_job.h \
56 processing/jobs/process_message_job.c processing/jobs/process_message_job.h \
57 processing/jobs/rekey_child_sa_job.c processing/jobs/rekey_child_sa_job.h \
58 processing/jobs/rekey_ike_sa_job.c processing/jobs/rekey_ike_sa_job.h \
59 processing/jobs/retransmit_job.c processing/jobs/retransmit_job.h \
60 processing/jobs/send_dpd_job.c processing/jobs/send_dpd_job.h \
61 processing/jobs/send_keepalive_job.c processing/jobs/send_keepalive_job.h \
62 processing/jobs/roam_job.c processing/jobs/roam_job.h \
63 processing/jobs/update_sa_job.c processing/jobs/update_sa_job.h \
64 processing/scheduler.c processing/scheduler.h \
65 processing/processor.c processing/processor.h  \
66 sa/authenticators/authenticator.c sa/authenticators/authenticator.h \
67 sa/authenticators/eap_authenticator.c sa/authenticators/eap_authenticator.h \
68 sa/authenticators/eap/eap_method.c sa/authenticators/eap/eap_method.h \
69 sa/authenticators/eap/eap_manager.c sa/authenticators/eap/eap_manager.h \
70 sa/authenticators/eap/sim_manager.c sa/authenticators/eap/sim_manager.h \
71 sa/authenticators/psk_authenticator.c sa/authenticators/psk_authenticator.h \
72 sa/authenticators/pubkey_authenticator.c sa/authenticators/pubkey_authenticator.h \
73 sa/child_sa.c sa/child_sa.h \
74 sa/ike_sa.c sa/ike_sa.h \
75 sa/ike_sa_id.c sa/ike_sa_id.h \
76 sa/ike_sa_manager.c sa/ike_sa_manager.h \
77 sa/task_manager.c sa/task_manager.h \
78 sa/keymat.c sa/keymat.h \
79 sa/tasks/child_create.c sa/tasks/child_create.h \
80 sa/tasks/child_delete.c sa/tasks/child_delete.h \
81 sa/tasks/child_rekey.c sa/tasks/child_rekey.h \
82 sa/tasks/ike_auth.c sa/tasks/ike_auth.h \
83 sa/tasks/ike_cert_pre.c sa/tasks/ike_cert_pre.h \
84 sa/tasks/ike_cert_post.c sa/tasks/ike_cert_post.h \
85 sa/tasks/ike_config.c sa/tasks/ike_config.h \
86 sa/tasks/ike_delete.c sa/tasks/ike_delete.h \
87 sa/tasks/ike_dpd.c sa/tasks/ike_dpd.h \
88 sa/tasks/ike_init.c sa/tasks/ike_init.h \
89 sa/tasks/ike_natd.c sa/tasks/ike_natd.h \
90 sa/tasks/ike_mobike.c sa/tasks/ike_mobike.h \
91 sa/tasks/ike_rekey.c sa/tasks/ike_rekey.h \
92 sa/tasks/ike_reauth.c sa/tasks/ike_reauth.h \
93 sa/tasks/ike_auth_lifetime.c sa/tasks/ike_auth_lifetime.h \
94 sa/tasks/task.c sa/tasks/task.h \
95 credentials/credential_manager.c credentials/credential_manager.h \
96 credentials/auth_info.c credentials/auth_info.h \
97 credentials/sets/auth_info_wrapper.c credentials/sets/auth_info_wrapper.h \
98 credentials/sets/ocsp_response_wrapper.c credentials/sets/ocsp_response_wrapper.h \
99 credentials/sets/cert_cache.c credentials/sets/cert_cache.h \
100 credentials/credential_set.h
101
102 INCLUDES = -I${linuxdir} -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/charon
103 AM_CFLAGS = -rdynamic \
104   -DIPSEC_DIR=\"${ipsecdir}\" \
105   -DIPSEC_PIDDIR=\"${piddir}\" \
106   -DIPSEC_PLUGINDIR=\"${plugindir}\" \
107   -DSTRONGSWAN_CONF=\"${strongswan_conf}\" \
108   -DRESOLV_CONF=\"${resolv_conf}\"
109 charon_LDADD = $(top_builddir)/src/libstrongswan/libstrongswan.la -lpthread -lm -ldl
110
111 # compile options
112 #################
113
114 # Use RAW socket if pluto gets built
115 if USE_PLUTO
116   charon_SOURCES += network/socket-raw.c
117 else
118   charon_SOURCES += network/socket.c
119 endif
120
121 if USE_ME
122   charon_SOURCES += encoding/payloads/endpoint_notify.c encoding/payloads/endpoint_notify.h \
123     processing/jobs/initiate_mediation_job.c processing/jobs/initiate_mediation_job.h \
124     processing/jobs/mediation_job.c processing/jobs/mediation_job.h \
125     sa/connect_manager.c sa/connect_manager.h \
126     sa/mediation_manager.c sa/mediation_manager.h \
127     sa/tasks/ike_me.c sa/tasks/ike_me.h
128 endif
129
130 if USE_INTEGRITY_TEST
131   AM_CFLAGS += -DINTEGRITY_TEST
132 endif
133
134 if USE_SELF_TEST
135   AM_CFLAGS += -DSELF_TEST
136 endif
137
138 if USE_CAPABILITIES
139   charon_LDADD += -lcap
140 endif
141
142
143 # build optional plugins
144 ########################
145
146 SUBDIRS = . 
147 PLUGINS = ${libstrongswan_plugins}
148
149 if USE_LOAD_TESTS
150   SUBDIRS += plugins/load_tester
151   PLUGINS += load-tester
152 endif
153
154 if USE_KERNEL_PFKEY
155   SUBDIRS += plugins/kernel_pfkey
156   PLUGINS += kernel-pfkey
157 endif
158
159 if USE_KERNEL_KLIPS
160   SUBDIRS += plugins/kernel_klips
161   PLUGINS += kernel-klips
162 endif
163
164 if USE_KERNEL_NETLINK
165   SUBDIRS += plugins/kernel_netlink
166   PLUGINS += kernel-netlink
167 endif
168
169 if USE_STROKE
170   SUBDIRS += plugins/stroke
171   PLUGINS += stroke
172 endif
173
174 if USE_SMP
175   SUBDIRS += plugins/smp
176   PLUGINS += smp
177 endif
178
179 if USE_SQL
180   SUBDIRS += plugins/sql
181   PLUGINS += sql
182 endif
183
184 if USE_UPDOWN
185   SUBDIRS += plugins/updown
186   PLUGINS += updown
187 endif
188
189 if USE_EAP_IDENTITY
190   SUBDIRS += plugins/eap_identity
191   PLUGINS += eapidentity
192 endif
193
194 if USE_EAP_SIM
195   SUBDIRS += plugins/eap_sim
196   PLUGINS += eapsim
197 endif
198
199 if USE_EAP_SIM_FILE
200   SUBDIRS += plugins/eap_sim_file
201   PLUGINS += eapsim-file
202 endif
203
204 if USE_EAP_MD5
205   SUBDIRS += plugins/eap_md5
206   PLUGINS += eapmd5
207 endif
208
209 if USE_EAP_GTC
210   SUBDIRS += plugins/eap_gtc
211   PLUGINS += eapgtc
212 endif
213
214 if USE_EAP_AKA
215   SUBDIRS += plugins/eap_aka
216   PLUGINS += eapaka
217 endif
218
219 if USE_EAP_MSCHAPV2
220   SUBDIRS += plugins/eap_mschapv2
221   PLUGINS += eapmschapv2
222 endif
223
224 if USE_MEDSRV
225   SUBDIRS += plugins/medsrv
226   PLUGINS += medsrv
227 endif
228
229 if USE_MEDCLI
230   SUBDIRS += plugins/medcli
231   PLUGINS += medcli
232 endif
233
234 if USE_NM
235   SUBDIRS += plugins/nm
236   PLUGINS += nm
237 endif
238
239 if USE_UCI
240   SUBDIRS += plugins/uci
241   PLUGINS += uci
242 endif
243
244 if USE_UNIT_TESTS
245   SUBDIRS += plugins/unit_tester
246   PLUGINS += unit-tester
247 endif
248
249 AM_CFLAGS += -DPLUGINS=\""${PLUGINS}\""
250