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