fixed casting
[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/interface_manager.c control/interface_manager.h \
18 daemon.c daemon.h \
19 encoding/generator.c encoding/generator.h \
20 encoding/message.c encoding/message.h \
21 encoding/parser.c encoding/parser.h \
22 encoding/payloads/auth_payload.c encoding/payloads/auth_payload.h \
23 encoding/payloads/cert_payload.c encoding/payloads/cert_payload.h \
24 encoding/payloads/certreq_payload.c encoding/payloads/certreq_payload.h \
25 encoding/payloads/configuration_attribute.c encoding/payloads/configuration_attribute.h \
26 encoding/payloads/cp_payload.c encoding/payloads/cp_payload.h \
27 encoding/payloads/delete_payload.c encoding/payloads/delete_payload.h \
28 encoding/payloads/eap_payload.c encoding/payloads/eap_payload.h \
29 encoding/payloads/encodings.c encoding/payloads/encodings.h \
30 encoding/payloads/encryption_payload.c encoding/payloads/encryption_payload.h \
31 encoding/payloads/id_payload.c encoding/payloads/id_payload.h \
32 encoding/payloads/ike_header.c encoding/payloads/ike_header.h \
33 encoding/payloads/ke_payload.c  encoding/payloads/ke_payload.h \
34 encoding/payloads/nonce_payload.c encoding/payloads/nonce_payload.h \
35 encoding/payloads/notify_payload.c encoding/payloads/notify_payload.h \
36 encoding/payloads/payload.c encoding/payloads/payload.h \
37 encoding/payloads/proposal_substructure.c encoding/payloads/proposal_substructure.h \
38 encoding/payloads/sa_payload.c encoding/payloads/sa_payload.h \
39 encoding/payloads/traffic_selector_substructure.c encoding/payloads/traffic_selector_substructure.h \
40 encoding/payloads/transform_attribute.c encoding/payloads/transform_attribute.h \
41 encoding/payloads/transform_substructure.c encoding/payloads/transform_substructure.h \
42 encoding/payloads/ts_payload.c encoding/payloads/ts_payload.h \
43 encoding/payloads/unknown_payload.c encoding/payloads/unknown_payload.h \
44 encoding/payloads/vendor_id_payload.c encoding/payloads/vendor_id_payload.h \
45 kernel/kernel_interface.c kernel/kernel_interface.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.c network/socket.h \
50 processing/event_queue.c processing/event_queue.h \
51 processing/job_queue.c processing/job_queue.h \
52 processing/jobs/acquire_job.c processing/jobs/acquire_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/initiate_job.c processing/jobs/initiate_job.h \
56 processing/jobs/job.c processing/jobs/job.h \
57 processing/jobs/process_message_job.c processing/jobs/process_message_job.h \
58 processing/jobs/rekey_child_sa_job.c processing/jobs/rekey_child_sa_job.h \
59 processing/jobs/rekey_ike_sa_job.c processing/jobs/rekey_ike_sa_job.h \
60 processing/jobs/retransmit_job.c processing/jobs/retransmit_job.h \
61 processing/jobs/route_job.c processing/jobs/route_job.h \
62 processing/jobs/send_dpd_job.c processing/jobs/send_dpd_job.h \
63 processing/jobs/send_keepalive_job.c processing/jobs/send_keepalive_job.h \
64 processing/scheduler.c processing/scheduler.h \
65 processing/thread_pool.c processing/thread_pool.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/psk_authenticator.c sa/authenticators/psk_authenticator.h \
70 sa/authenticators/rsa_authenticator.c sa/authenticators/rsa_authenticator.h \
71 sa/child_sa.c sa/child_sa.h \
72 sa/ike_sa.c sa/ike_sa.h \
73 sa/ike_sa_id.c sa/ike_sa_id.h \
74 sa/ike_sa_manager.c sa/ike_sa_manager.h \
75 sa/task_manager.c sa/task_manager.h \
76 sa/tasks/child_create.c sa/tasks/child_create.h \
77 sa/tasks/child_delete.c sa/tasks/child_delete.h \
78 sa/tasks/child_rekey.c sa/tasks/child_rekey.h \
79 sa/tasks/ike_auth.c sa/tasks/ike_auth.h \
80 sa/tasks/ike_cert.c sa/tasks/ike_cert.h \
81 sa/tasks/ike_config.c sa/tasks/ike_config.h \
82 sa/tasks/ike_delete.c sa/tasks/ike_delete.h \
83 sa/tasks/ike_dpd.c sa/tasks/ike_dpd.h \
84 sa/tasks/ike_init.c sa/tasks/ike_init.h \
85 sa/tasks/ike_natd.c sa/tasks/ike_natd.h \
86 sa/tasks/ike_rekey.c sa/tasks/ike_rekey.h \
87 sa/tasks/task.c sa/tasks/task.h
88
89
90 INCLUDES = -I${linuxdir} -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/charon -I$(top_srcdir)/src/stroke
91 AM_CFLAGS = -rdynamic -DIPSEC_CONFDIR=\"${confdir}\" -DIPSEC_PIDDIR=\"${piddir}\" \
92         -DIPSEC_EAPDIR=\"${eapdir}\" -DIPSEC_BACKENDDIR=\"${backenddir}\" -DIPSEC_INTERFACEDIR=\"${interfacedir}\"
93 charon_LDADD = $(top_builddir)/src/libstrongswan/libstrongswan.la -lgmp -lpthread -lm -ldl
94
95 if USE_LIBCURL
96   charon_LDADD += -lcurl
97 endif
98
99
100 # build EAP plugins, EAP-Identity is always built
101 #################################################
102 eap_LTLIBRARIES =
103
104 eap_LTLIBRARIES += libeapidentity.la
105 libeapidentity_la_SOURCES = sa/authenticators/eap/eap_identity.h sa/authenticators/eap/eap_identity.c
106 libeapidentity_la_LDFLAGS = -module
107
108 if BUILD_EAP_SIM
109   eap_LTLIBRARIES += libeapsim.la
110   libeapsim_la_SOURCES = sa/authenticators/eap/eap_sim.h sa/authenticators/eap/eap_sim.c
111   libeapsim_la_LDFLAGS = -module
112 endif
113
114 # build backends, local backend is always built
115 ###############################################
116 backend_LTLIBRARIES =
117
118 backend_LTLIBRARIES += liblocal.la
119 liblocal_la_SOURCES = config/backends/local_backend.h config/backends/local_backend.c
120 liblocal_la_LDFLAGS = -module
121
122 # build control interfaces, stroke interface is always built
123 ############################################################
124 interface_LTLIBRARIES =
125
126 interface_LTLIBRARIES += libstroke.la
127 libstroke_la_SOURCES = control/interfaces/stroke_interface.h control/interfaces/stroke_interface.c
128 libstroke_la_LDFLAGS = -module
129
130 if USE_LIBDBUS
131   interface_LTLIBRARIES += libdbus.la
132   libdbus_la_SOURCES = control/interfaces/dbus_interface.h control/interfaces/dbus_interface.c
133   libdbus_la_LDFLAGS = -module
134   libdbus_la_LIBADD = ${dbus_LIBS}
135   INCLUDES += ${dbus_CFLAGS}
136 endif
137
138 if USE_LIBXML
139   interface_LTLIBRARIES += libxml.la
140   libxml_la_SOURCES = control/interfaces/xml_interface.h control/interfaces/xml_interface.c
141   libxml_la_LDFLAGS = -module
142   libxml_la_LIBADD = ${xml_LIBS}
143   INCLUDES += ${xml_CFLAGS}
144 endif
145