886422a61d81b00066a8f6211bf0ca1664cda748
[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 control/controller.c control/controller.h \
14 daemon.c daemon.h \
15 encoding/generator.c encoding/generator.h \
16 encoding/message.c encoding/message.h \
17 encoding/parser.c encoding/parser.h \
18 encoding/payloads/auth_payload.c encoding/payloads/auth_payload.h \
19 encoding/payloads/cert_payload.c encoding/payloads/cert_payload.h \
20 encoding/payloads/certreq_payload.c encoding/payloads/certreq_payload.h \
21 encoding/payloads/configuration_attribute.c encoding/payloads/configuration_attribute.h \
22 encoding/payloads/cp_payload.c encoding/payloads/cp_payload.h \
23 encoding/payloads/delete_payload.c encoding/payloads/delete_payload.h \
24 encoding/payloads/eap_payload.c encoding/payloads/eap_payload.h \
25 encoding/payloads/encodings.c encoding/payloads/encodings.h \
26 encoding/payloads/encryption_payload.c encoding/payloads/encryption_payload.h \
27 encoding/payloads/id_payload.c encoding/payloads/id_payload.h \
28 encoding/payloads/ike_header.c encoding/payloads/ike_header.h \
29 encoding/payloads/ke_payload.c  encoding/payloads/ke_payload.h \
30 encoding/payloads/nonce_payload.c encoding/payloads/nonce_payload.h \
31 encoding/payloads/notify_payload.c encoding/payloads/notify_payload.h \
32 encoding/payloads/payload.c encoding/payloads/payload.h \
33 encoding/payloads/proposal_substructure.c encoding/payloads/proposal_substructure.h \
34 encoding/payloads/sa_payload.c encoding/payloads/sa_payload.h \
35 encoding/payloads/traffic_selector_substructure.c encoding/payloads/traffic_selector_substructure.h \
36 encoding/payloads/transform_attribute.c encoding/payloads/transform_attribute.h \
37 encoding/payloads/transform_substructure.c encoding/payloads/transform_substructure.h \
38 encoding/payloads/ts_payload.c encoding/payloads/ts_payload.h \
39 encoding/payloads/unknown_payload.c encoding/payloads/unknown_payload.h \
40 encoding/payloads/vendor_id_payload.c encoding/payloads/vendor_id_payload.h \
41 kernel/kernel_interface.c kernel/kernel_interface.h \
42 network/packet.c network/packet.h \
43 network/receiver.c network/receiver.h \
44 network/sender.c network/sender.h \
45 network/socket.h \
46 processing/jobs/job.h \
47 processing/jobs/acquire_job.c processing/jobs/acquire_job.h \
48 processing/jobs/callback_job.c processing/jobs/callback_job.h \
49 processing/jobs/delete_child_sa_job.c processing/jobs/delete_child_sa_job.h \
50 processing/jobs/delete_ike_sa_job.c processing/jobs/delete_ike_sa_job.h \
51 processing/jobs/process_message_job.c processing/jobs/process_message_job.h \
52 processing/jobs/rekey_child_sa_job.c processing/jobs/rekey_child_sa_job.h \
53 processing/jobs/rekey_ike_sa_job.c processing/jobs/rekey_ike_sa_job.h \
54 processing/jobs/retransmit_job.c processing/jobs/retransmit_job.h \
55 processing/jobs/send_dpd_job.c processing/jobs/send_dpd_job.h \
56 processing/jobs/send_keepalive_job.c processing/jobs/send_keepalive_job.h \
57 processing/jobs/roam_job.c processing/jobs/roam_job.h \
58 processing/scheduler.c processing/scheduler.h \
59 processing/processor.c processing/processor.h  \
60 sa/authenticators/authenticator.c sa/authenticators/authenticator.h \
61 sa/authenticators/eap_authenticator.c sa/authenticators/eap_authenticator.h \
62 sa/authenticators/eap/eap_method.c sa/authenticators/eap/eap_method.h \
63 sa/authenticators/eap/eap_manager.c sa/authenticators/eap/eap_manager.h \
64 sa/authenticators/psk_authenticator.c sa/authenticators/psk_authenticator.h \
65 sa/authenticators/rsa_authenticator.c sa/authenticators/rsa_authenticator.h \
66 sa/child_sa.c sa/child_sa.h \
67 sa/ike_sa.c sa/ike_sa.h \
68 sa/ike_sa_id.c sa/ike_sa_id.h \
69 sa/ike_sa_manager.c sa/ike_sa_manager.h \
70 sa/task_manager.c sa/task_manager.h \
71 sa/tasks/child_create.c sa/tasks/child_create.h \
72 sa/tasks/child_delete.c sa/tasks/child_delete.h \
73 sa/tasks/child_rekey.c sa/tasks/child_rekey.h \
74 sa/tasks/ike_auth.c sa/tasks/ike_auth.h \
75 sa/tasks/ike_cert_pre.c sa/tasks/ike_cert_pre.h \
76 sa/tasks/ike_cert_post.c sa/tasks/ike_cert_post.h \
77 sa/tasks/ike_config.c sa/tasks/ike_config.h \
78 sa/tasks/ike_delete.c sa/tasks/ike_delete.h \
79 sa/tasks/ike_dpd.c sa/tasks/ike_dpd.h \
80 sa/tasks/ike_init.c sa/tasks/ike_init.h \
81 sa/tasks/ike_natd.c sa/tasks/ike_natd.h \
82 sa/tasks/ike_mobike.c sa/tasks/ike_mobike.h \
83 sa/tasks/ike_rekey.c sa/tasks/ike_rekey.h \
84 sa/tasks/ike_reauth.c sa/tasks/ike_reauth.h \
85 sa/tasks/ike_auth_lifetime.c sa/tasks/ike_auth_lifetime.h \
86 sa/tasks/task.c sa/tasks/task.h \
87 credentials/credential_manager.c credentials/credential_manager.h \
88 credentials/auth_info.c credentials/auth_info.h \
89 credentials/sets/auth_info_wrapper.c credentials/sets/auth_info_wrapper.h \
90 credentials/sets/ocsp_response_wrapper.c credentials/sets/ocsp_response_wrapper.h \
91 credentials/sets/cert_cache.c credentials/sets/cert_cache.h \
92 credentials/credential_set.h
93
94 INCLUDES = -I${linuxdir} -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/charon
95 AM_CFLAGS = -rdynamic -DIPSEC_DIR=\"${ipsecdir}\" \
96         -DIPSEC_PIDDIR=\"${piddir}\" -DIPSEC_PLUGINDIR=\"${plugindir}\"
97 charon_LDADD = $(top_builddir)/src/libstrongswan/libstrongswan.la -lpthread -lm -ldl
98
99 # compile options
100 #################
101
102 # Use RAW socket if pluto gets built
103 if USE_PLUTO
104   charon_SOURCES += network/socket-raw.c
105 else
106   charon_SOURCES += network/socket.c
107 endif
108
109 if USE_ME
110   AM_CFLAGS += -DME
111   charon_SOURCES += encoding/payloads/endpoint_notify.c encoding/payloads/endpoint_notify.h \
112     processing/jobs/initiate_mediation_job.c processing/jobs/initiate_mediation_job.h \
113     processing/jobs/mediation_job.c processing/jobs/mediation_job.h \
114     sa/connect_manager.c sa/connect_manager.h \
115     sa/mediation_manager.c sa/mediation_manager.h \
116     sa/tasks/ike_me.c sa/tasks/ike_me.h
117 endif
118
119 if USE_INTEGRITY_TEST
120   AM_CFLAGS += -DINTEGRITY_TEST
121 endif
122
123 if USE_SELF_TEST
124   AM_CFLAGS += -DSELF_TEST
125 endif
126
127 # build optional plugins
128 ########################
129
130 SUBDIRS = 
131
132 if USE_UNIT_TESTS
133   SUBDIRS += plugins/unit_tester
134 endif
135
136 if USE_STROKE
137   SUBDIRS += plugins/stroke
138 endif
139
140 if USE_SMP
141   SUBDIRS += plugins/smp
142 endif
143
144 if USE_SQL
145   SUBDIRS += plugins/sql
146 endif
147
148 if USE_EAP_IDENTITY
149   SUBDIRS += plugins/eap_identity
150 endif
151
152 if USE_EAP_SIM
153   SUBDIRS += plugins/eap_sim
154 endif
155
156 if USE_EAP_MD5
157   SUBDIRS += plugins/eap_md5
158 endif
159
160 if USE_EAP_AKA
161   SUBDIRS += plugins/eap_aka
162 endif
163
164 if USE_MED_DB
165   SUBDIRS += plugins/med_db
166 endif
167