2 plugin_cflags = -fvisibility=hidden -I$(srcdir)/gdbus \
3 @DBUS_CFLAGS@ @GLIB_CFLAGS@
4 plugin_ldflags = -no-undefined -module -avoid-version
7 builtin_modules += loopback
8 builtin_sources += plugins/loopback.c
12 builtin_modules += ethernet
13 builtin_sources += plugins/ethernet.c
17 builtin_modules += gadget
18 builtin_sources += plugins/gadget.c
21 gsupplicant_sources = gsupplicant/gsupplicant.h gsupplicant/dbus.h \
22 gsupplicant/supplicant.c gsupplicant/dbus.c
25 builtin_modules += wifi
26 builtin_sources += plugins/wifi.c $(gsupplicant_sources)
30 builtin_modules += iwd
31 builtin_sources += plugins/iwd.c
35 builtin_modules += bluetooth
36 builtin_sources += plugins/bluetooth.c
40 if HH2SERIAL_GPS_BUILTIN
41 builtin_modules += hh2serial_gps
42 builtin_sources += plugins/hh2serial-gps.c
44 plugin_LTLIBRARIES += plugins/hh2serial-gps.la
45 plugin_objects += $(plugins_hh2serial_gps_la_OBJECTS)
46 plugins_hh2serial_gps_la_CFLAGS = $(plugin_cflags)
47 plugins_hh2serial_gps_la_LDFLAGS = $(plugin_ldflags)
52 builtin_modules += ofono
53 builtin_sources += plugins/mcc.h plugins/ofono.c
57 builtin_modules += dundee
58 builtin_sources += plugins/dundee.c
63 builtin_modules += telephony
64 builtin_sources += plugins/telephony.c
66 plugin_LTLIBRARIES += plugins/telephony.la
67 plugin_objects += $(plugins_telephony_la_OBJECTS)
68 plugins_telephony_la_CFLAGS = $(plugin_cflags)
69 plugins_telephony_la_LDFLAGS = $(plugin_ldflags)
74 builtin_modules += vpn
75 builtin_sources += plugins/vpn.c
78 if OPENCONNECT_BUILTIN
79 builtin_vpn_modules += openconnect
80 builtin_vpn_sources += vpn/plugins/openconnect.c
81 builtin_vpn_source = vpn/plugins/vpn.c vpn/plugins/vpn.h
82 builtin_vpn_cflags += -DOPENCONNECT=\"@OPENCONNECT@\"
84 vpn_plugin_LTLIBRARIES += vpn/plugins/openconnect.la
85 vpn_plugin_objects += $(plugins_openconnect_la_OBJECTS)
86 vpn_plugins_openconnect_la_SOURCES = vpn/plugins/vpn.h vpn/plugins/vpn.c \
87 vpn/plugins/openconnect.c
88 vpn_plugins_openconnect_la_CFLAGS = $(plugin_cflags) \
89 -DOPENCONNECT=\"@OPENCONNECT@\" \
90 -DVPN_STATEDIR=\""$(vpn_statedir)"\" \
91 -DSCRIPTDIR=\""$(build_scriptdir)"\"
92 vpn_plugins_openconnect_la_LDFLAGS = $(plugin_ldflags)
98 builtin_vpn_modules += openvpn
99 builtin_vpn_sources += vpn/plugins/openvpn.c
100 builtin_vpn_source = vpn/plugins/vpn.c vpn/plugins/vpn.h
101 builtin_vpn_cflags += -DOPENVPN=\"@OPENVPN@\"
103 vpn_plugin_LTLIBRARIES += vpn/plugins/openvpn.la
104 vpn_plugin_objects += $(plugins_openvpn_la_OBJECTS)
105 vpn_plugins_openvpn_la_SOURCES = vpn/plugins/vpn.h vpn/plugins/vpn.c \
106 vpn/plugins/openvpn.c
107 vpn_plugins_openvpn_la_CFLAGS = $(plugin_cflags) -DOPENVPN=\"@OPENVPN@\" \
108 -DVPN_STATEDIR=\""$(vpn_statedir)"\" \
109 -DSCRIPTDIR=\""$(build_scriptdir)"\"
110 vpn_plugins_openvpn_la_LDFLAGS = $(plugin_ldflags)
116 builtin_vpn_modules += ipsec
117 builtin_vpn_sources += vpn/plugins/ipsec.h vpn/plugins/ipsec.c
118 builtin_vpn_sources += vpn/plugins/vici-client.h vpn/plugins/vici-client.c
119 builtin_vpn_source = vpn/plugins/vpn.c vpn/plugins/vpn.h
120 builtin_vpn_cflags += -DIPSEC=\"@IPSEC@\"
122 vpn_plugin_LTLIBRARIES += vpn/plugins/ipsec.la
123 vpn_plugin_objects += $(plugins_ipsec_la_OBJECTS)
124 vpn_plugins_ipsec_la_SOURCES = vpn/plugins/vpn.h vpn/plugins/vpn.c \
125 vpn/plugins/ipsec.c vpn/plugins/vici-client.c
126 vpn_plugins_ipsec_la_CFLAGS = $(plugin_cflags) -DIPSEC=\"@IPSEC@\" \
127 -DVPN_STATEDIR=\""$(vpn_statedir)"\" \
128 -DSCRIPTDIR=\""$(build_scriptdir)"\" @GIO_CFLAGS@
129 vpn_plugins_ipsec_la_LDFLAGS = $(plugin_ldflags) @GIO_LIBS@
135 builtin_vpn_modules += vpnc
136 builtin_vpn_sources += vpn/plugins/vpnc.c
137 builtin_vpn_source = vpn/plugins/vpn.c vpn/plugins/vpn.h
138 builtin_vpn_cflags += -DVPNC=\"@VPNC@\"
140 vpn_plugin_LTLIBRARIES += vpn/plugins/vpnc.la
141 vpn_plugin_objects += $(plugins_vpnc_la_OBJECTS)
142 vpn_plugins_vpnc_la_SOURCES = vpn/plugins/vpn.h vpn/plugins/vpn.c \
144 vpn_plugins_vpnc_la_CFLAGS = $(plugin_cflags) -DVPNC=\"@VPNC@\" \
145 -DVPN_STATEDIR=\""$(vpn_statedir)"\" \
146 -DSCRIPTDIR=\""$(build_scriptdir)"\"
147 vpn_plugins_vpnc_la_LDFLAGS = $(plugin_ldflags)
153 builtin_vpn_modules += l2tp
154 builtin_vpn_sources += vpn/plugins/l2tp.c
155 builtin_vpn_source = vpn/plugins/vpn.c vpn/plugins/vpn.h
156 builtin_vpn_cflags += -DL2TP=\"@L2TP@\"
158 vpn_plugin_LTLIBRARIES += vpn/plugins/l2tp.la
159 vpn_plugin_objects += $(plugins_l2tp_la_OBJECTS)
160 vpn_plugins_l2tp_la_SOURCES = vpn/plugins/vpn.h vpn/plugins/vpn.c \
162 vpn_plugins_l2tp_la_CFLAGS = $(plugin_cflags) -DL2TP=\"@L2TP@\" \
163 -DVPN_STATEDIR=\""$(vpn_statedir)"\" \
164 -DSCRIPTDIR=\""$(build_scriptdir)"\"
165 vpn_plugins_l2tp_la_LDFLAGS = $(plugin_ldflags)
171 builtin_vpn_modules += pptp
172 builtin_vpn_sources += vpn/plugins/pptp.c
173 builtin_vpn_source = vpn/plugins/vpn.c vpn/plugins/vpn.h
174 builtin_vpn_cflags += -DPPPD=\"@PPPD@\" -DPPTP=\"@PPTP@\"
176 vpn_plugin_LTLIBRARIES += vpn/plugins/pptp.la
177 vpn_plugin_objects += $(plugins_pptp_la_OBJECTS)
178 vpn_plugins_pptp_la_SOURCES = vpn/plugins/vpn.h vpn/plugins/vpn.c \
180 vpn_plugins_pptp_la_CFLAGS = $(plugin_cflags) -DPPPD=\"@PPPD@\" \
182 -DVPN_STATEDIR=\""$(vpn_statedir)"\" \
183 -DSCRIPTDIR=\""$(build_scriptdir)"\"
184 vpn_plugins_pptp_la_LDFLAGS = $(plugin_ldflags)
189 script_LTLIBRARIES += scripts/libppp-plugin.la
190 scripts_libppp_plugin_la_LDFLAGS = $(plugin_ldflags)
191 scripts_libppp_plugin_la_LIBADD = @DBUS_LIBS@
194 script_LTLIBRARIES += scripts/libppp-plugin.la
195 scripts_libppp_plugin_la_LDFLAGS = $(plugin_ldflags)
196 scripts_libppp_plugin_la_LIBADD = @DBUS_LIBS@
201 builtin_vpn_sources += $(builtin_vpn_source)
206 builtin_modules += pacrunner
207 builtin_sources += plugins/pacrunner.c
211 builtin_modules += polkit
212 builtin_sources += plugins/polkit.c
215 policydir = @POLKIT_DATADIR@
217 policy_DATA = plugins/net.connman.policy
220 policy_DATA += vpn/net.connman.vpn.policy
226 plugin_LTLIBRARIES += plugins/iospm.la
227 plugin_objects += $(plugins_iospm_la_OBJECTS)
228 plugins_iospm_la_CFLAGS = $(plugin_cflags)
229 plugins_iospm_la_LDFLAGS = $(plugin_ldflags)
233 script_PROGRAMS += scripts/openconnect-script
235 scripts_openconnect_script_LDADD = @DBUS_LIBS@
238 script_PROGRAMS += scripts/openconnect-script
240 scripts_openconnect_script_LDADD = @DBUS_LIBS@
245 script_PROGRAMS += scripts/openvpn-script
247 scripts_openvpn_script_LDADD = @DBUS_LIBS@
251 script_PROGRAMS += scripts/ipsec-script
253 scripts_ipsec_script_LDADD = @DBUS_LIBS@
257 builtin_modules += nmcompat
258 builtin_sources += plugins/nmcompat.c
263 builtin_modules += tist
264 builtin_sources += plugins/tist.c
266 plugin_LTLIBRARIES += plugins/tist.la
267 plugin_objects += $(plugins_tist_la_OBJECTS)
268 plugins_tist_la_CFLAGS = $(plugin_cflags)
269 plugins_tist_la_LDFLAGS = $(plugin_ldflags)
273 if SESSION_POLICY_LOCAL
274 if SESSION_POLICY_LOCAL_BUILTIN
275 builtin_modules += session_policy_local
276 builtin_sources += plugins/session_policy_local.c
278 plugin_LTLIBRARIES += plugins/session_policy_local.la
279 plugin_objects += $(plugins_session_policy_local_la_OBJECTS)
280 plugins_session_policy_local_la_CFLAGS = $(plugin_cflags) \
281 -DSTORAGEDIR=\""$(storagedir)\""
282 plugins_session_policy_local_la_LDFLAGS = $(plugin_ldflags)
287 builtin_modules += neard
288 builtin_sources += plugins/neard.c
291 EXTRA_DIST += plugins/polkit.policy
293 plugins/net.connman.policy: plugins/polkit.policy
298 EXTRA_DIST += vpn/vpn-polkit.policy
301 vpn/net.connman.vpn.policy: vpn/vpn-polkit.policy