ipsec stroke rereadaacerts|rereadacerts supported
[strongswan.git] / src / charon / Makefile.am
1
2
3 ipsec_PROGRAMS = charon
4
5 charon_SOURCES = \
6 bus/bus.c bus/bus.h \
7 bus/listeners/file_logger.c bus/listeners/file_logger.h \
8 bus/listeners/sys_logger.c bus/listeners/sys_logger.h \
9 config/backends/backend.h config/backends/writeable_backend.h \
10 config/backend_manager.c config/backend_manager.h \
11 config/child_cfg.c config/child_cfg.h \
12 config/credentials/local_credential_store.c config/credentials/local_credential_store.h \
13 config/ike_cfg.c config/ike_cfg.h \
14 config/peer_cfg.c config/peer_cfg.h \
15 config/proposal.c config/proposal.h \
16 config/traffic_selector.c config/traffic_selector.h \
17 control/interfaces/interface.h \
18 control/interface_manager.c control/interface_manager.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 network/packet.c network/packet.h \
48 network/receiver.c network/receiver.h \
49 network/sender.c network/sender.h \
50 network/socket.c network/socket.h \
51 processing/jobs/job.h \
52 processing/jobs/acquire_job.c processing/jobs/acquire_job.h \
53 processing/jobs/callback_job.c processing/jobs/callback_job.h \
54 processing/jobs/delete_child_sa_job.c processing/jobs/delete_child_sa_job.h \
55 processing/jobs/delete_ike_sa_job.c processing/jobs/delete_ike_sa_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/scheduler.c processing/scheduler.h \
64 processing/processor.c processing/processor.h  \
65 sa/authenticators/authenticator.c sa/authenticators/authenticator.h \
66 sa/authenticators/eap_authenticator.c sa/authenticators/eap_authenticator.h \
67 sa/authenticators/eap/eap_method.c sa/authenticators/eap/eap_method.h \
68 sa/authenticators/psk_authenticator.c sa/authenticators/psk_authenticator.h \
69 sa/authenticators/rsa_authenticator.c sa/authenticators/rsa_authenticator.h \
70 sa/child_sa.c sa/child_sa.h \
71 sa/ike_sa.c sa/ike_sa.h \
72 sa/ike_sa_id.c sa/ike_sa_id.h \
73 sa/ike_sa_manager.c sa/ike_sa_manager.h \
74 sa/task_manager.c sa/task_manager.h \
75 sa/tasks/child_create.c sa/tasks/child_create.h \
76 sa/tasks/child_delete.c sa/tasks/child_delete.h \
77 sa/tasks/child_rekey.c sa/tasks/child_rekey.h \
78 sa/tasks/ike_auth.c sa/tasks/ike_auth.h \
79 sa/tasks/ike_cert.c sa/tasks/ike_cert.h \
80 sa/tasks/ike_config.c sa/tasks/ike_config.h \
81 sa/tasks/ike_delete.c sa/tasks/ike_delete.h \
82 sa/tasks/ike_dpd.c sa/tasks/ike_dpd.h \
83 sa/tasks/ike_init.c sa/tasks/ike_init.h \
84 sa/tasks/ike_natd.c sa/tasks/ike_natd.h \
85 sa/tasks/ike_mobike.c sa/tasks/ike_mobike.h \
86 sa/tasks/ike_rekey.c sa/tasks/ike_rekey.h \
87 sa/tasks/ike_reauth.c sa/tasks/ike_reauth.h \
88 sa/tasks/task.c sa/tasks/task.h
89
90
91 INCLUDES = -I${linuxdir} -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/charon -I$(top_srcdir)/src/stroke
92 AM_CFLAGS = -rdynamic -DIPSEC_CONFDIR=\"${confdir}\" -DIPSEC_PIDDIR=\"${piddir}\" \
93         -DIPSEC_EAPDIR=\"${eapdir}\" -DIPSEC_BACKENDDIR=\"${backenddir}\" -DIPSEC_INTERFACEDIR=\"${interfacedir}\"
94 charon_LDADD = $(top_builddir)/src/libstrongswan/libstrongswan.la -lgmp -lpthread -lm -ldl
95
96 if USE_LIBCURL
97   charon_LDADD += -lcurl
98 endif
99
100
101 # build EAP plugins, EAP-Identity is always built
102 #################################################
103 eap_LTLIBRARIES =
104
105 eap_LTLIBRARIES += libeapidentity.la
106 libeapidentity_la_SOURCES = sa/authenticators/eap/eap_identity.h sa/authenticators/eap/eap_identity.c
107 libeapidentity_la_LDFLAGS = -module
108
109 if BUILD_EAP_SIM
110   eap_LTLIBRARIES += libeapsim.la
111   libeapsim_la_SOURCES = sa/authenticators/eap/eap_sim.h sa/authenticators/eap/eap_sim.c
112   libeapsim_la_LDFLAGS = -module
113 endif
114
115 # build backends, local backend is always built
116 ###############################################
117 backend_LTLIBRARIES =
118
119 backend_LTLIBRARIES += liblocal.la
120 liblocal_la_SOURCES = config/backends/local_backend.h config/backends/local_backend.c
121 liblocal_la_LDFLAGS = -module
122
123 # build control interfaces, stroke interface is always built
124 ############################################################
125 interface_LTLIBRARIES =
126
127 interface_LTLIBRARIES += libstroke.la
128 libstroke_la_SOURCES = control/interfaces/stroke_interface.h control/interfaces/stroke_interface.c
129 libstroke_la_LDFLAGS = -module
130
131 if USE_LIBDBUS
132   interface_LTLIBRARIES += libdbus.la
133   libdbus_la_SOURCES = control/interfaces/dbus_interface.h control/interfaces/dbus_interface.c
134   libdbus_la_LDFLAGS = -module
135   libdbus_la_LIBADD = ${dbus_LIBS}
136   INCLUDES += ${dbus_CFLAGS}
137 endif
138
139 if USE_LIBXML
140   interface_LTLIBRARIES += libxml.la
141   libxml_la_SOURCES = control/interfaces/xml_interface.h control/interfaces/xml_interface.c
142   libxml_la_LDFLAGS = -module
143   libxml_la_LIBADD = ${xml_LIBS}
144   INCLUDES += ${xml_CFLAGS}
145 endif
146