2 plugin_cflags = -fvisibility=hidden -I$(srcdir)/gdbus \
3 @DBUS_CFLAGS@ @GLIB_CFLAGS@
4 plugin_ldflags = -no-undefined -module -avoid-version
6 script_cflags = -fvisibility=hidden -I$(srcdir)/gdbus \
10 builtin_modules += loopback
11 builtin_sources += plugins/loopback.c
15 builtin_modules += ethernet
16 builtin_sources += plugins/ethernet.c
19 gsupplicant_sources = gsupplicant/gsupplicant.h gsupplicant/dbus.h \
20 gsupplicant/supplicant.c gsupplicant/dbus.c
23 builtin_modules += wifi
24 builtin_sources += plugins/wifi.c $(gsupplicant_sources)
28 builtin_modules += bluetooth_legacy
29 builtin_sources += plugins/bluetooth_legacy.c
30 builtin_modules += bluetooth
31 builtin_sources += plugins/bluetooth.c
35 if HH2SERIAL_GPS_BUILTIN
36 builtin_modules += hh2serial_gps
37 builtin_sources += plugins/hh2serial-gps.c
39 plugin_LTLIBRARIES += plugins/hh2serial-gps.la
40 plugin_objects += $(plugins_hh2serial_gps_la_OBJECTS)
41 plugins_hh2serial_gps_la_CFLAGS = $(plugin_cflags)
42 plugins_hh2serial_gps_la_LDFLAGS = $(plugin_ldflags)
47 builtin_modules += ofono
48 builtin_sources += plugins/mcc.h plugins/ofono.c
52 builtin_modules += dundee
53 builtin_sources += plugins/dundee.c
57 builtin_modules += vpn
58 builtin_sources += plugins/vpn.c
61 if OPENCONNECT_BUILTIN
62 builtin_vpn_modules += openconnect
63 builtin_vpn_sources += vpn/plugins/openconnect.c
64 builtin_vpn_source = vpn/plugins/vpn.c vpn/plugins/vpn.h
65 builtin_vpn_cflags += -DOPENCONNECT=\"@OPENCONNECT@\"
67 vpn_plugin_LTLIBRARIES += vpn/plugins/openconnect.la
68 vpn_plugin_objects += $(plugins_openconnect_la_OBJECTS)
69 vpn_plugins_openconnect_la_SOURCES = vpn/plugins/vpn.h vpn/plugins/vpn.c \
70 vpn/plugins/openconnect.c
71 vpn_plugins_openconnect_la_CFLAGS = $(plugin_cflags) \
72 -DOPENCONNECT=\"@OPENCONNECT@\" \
73 -DSTATEDIR=\""$(statedir)"\" \
74 -DSCRIPTDIR=\""$(build_scriptdir)"\"
75 vpn_plugins_openconnect_la_LDFLAGS = $(plugin_ldflags)
81 builtin_vpn_modules += openvpn
82 builtin_vpn_sources += vpn/plugins/openvpn.c
83 builtin_vpn_source = vpn/plugins/vpn.c vpn/plugins/vpn.h
84 builtin_vpn_cflags += -DOPENVPN=\"@OPENVPN@\"
86 vpn_plugin_LTLIBRARIES += vpn/plugins/openvpn.la
87 vpn_plugin_objects += $(plugins_openvpn_la_OBJECTS)
88 vpn_plugins_openvpn_la_SOURCES = vpn/plugins/vpn.h vpn/plugins/vpn.c \
90 vpn_plugins_openvpn_la_CFLAGS = $(plugin_cflags) -DOPENVPN=\"@OPENVPN@\" \
91 -DSTATEDIR=\""$(statedir)"\" \
92 -DSCRIPTDIR=\""$(build_scriptdir)"\"
93 vpn_plugins_openvpn_la_LDFLAGS = $(plugin_ldflags)
99 builtin_vpn_modules += vpnc
100 builtin_vpn_sources += vpn/plugins/vpnc.c
101 builtin_vpn_source = vpn/plugins/vpn.c vpn/plugins/vpn.h
102 builtin_vpn_cflags += -DVPNC=\"@VPNC@\"
104 vpn_plugin_LTLIBRARIES += vpn/plugins/vpnc.la
105 vpn_plugin_objects += $(plugins_vpnc_la_OBJECTS)
106 vpn_plugins_vpnc_la_SOURCES = vpn/plugins/vpn.h vpn/plugins/vpn.c \
108 vpn_plugins_vpnc_la_CFLAGS = $(plugin_cflags) -DVPNC=\"@VPNC@\" \
109 -DSTATEDIR=\""$(statedir)"\" \
110 -DSCRIPTDIR=\""$(build_scriptdir)"\"
111 vpn_plugins_vpnc_la_LDFLAGS = $(plugin_ldflags)
117 builtin_vpn_modules += l2tp
118 builtin_vpn_sources += vpn/plugins/l2tp.c
119 builtin_vpn_source = vpn/plugins/vpn.c vpn/plugins/vpn.h
120 builtin_vpn_cflags += -DL2TP=\"@L2TP@\"
122 vpn_plugin_LTLIBRARIES += vpn/plugins/l2tp.la
123 vpn_plugin_objects += $(plugins_l2tp_la_OBJECTS)
124 vpn_plugins_l2tp_la_SOURCES = vpn/plugins/vpn.h vpn/plugins/vpn.c \
126 vpn_plugins_l2tp_la_CFLAGS = $(plugin_cflags) -DL2TP=\"@L2TP@\" \
127 -DSTATEDIR=\""$(statedir)"\" \
128 -DSCRIPTDIR=\""$(build_scriptdir)"\"
129 vpn_plugins_l2tp_la_LDFLAGS = $(plugin_ldflags)
135 builtin_vpn_modules += pptp
136 builtin_vpn_sources += vpn/plugins/pptp.c
137 builtin_vpn_source = vpn/plugins/vpn.c vpn/plugins/vpn.h
138 builtin_vpn_cflags += -DPPPD=\"@PPPD@\" -DPPTP=\"@PPTP@\"
140 vpn_plugin_LTLIBRARIES += vpn/plugins/pptp.la
141 vpn_plugin_objects += $(plugins_pptp_la_OBJECTS)
142 vpn_plugins_pptp_la_SOURCES = vpn/plugins/vpn.h vpn/plugins/vpn.c \
144 vpn_plugins_pptp_la_CFLAGS = $(plugin_cflags) -DPPPD=\"@PPPD@\" \
146 -DSTATEDIR=\""$(statedir)"\" \
147 -DSCRIPTDIR=\""$(build_scriptdir)"\"
148 vpn_plugins_pptp_la_LDFLAGS = $(plugin_ldflags)
153 script_LTLIBRARIES += scripts/libppp-plugin.la
154 scripts_libppp_plugin_la_LDFLAGS = $(script_cflags) @DBUS_CFLAGS@
155 scripts_libppp_plugin_la_LIBADD = @DBUS_LIBS@
158 script_LTLIBRARIES += scripts/libppp-plugin.la
159 scripts_libppp_plugin_la_LDFLAGS = $(script_cflags) @DBUS_CFLAGS@
160 scripts_libppp_plugin_la_LIBADD = @DBUS_LIBS@
165 builtin_vpn_sources += $(builtin_vpn_source)
170 builtin_modules += pacrunner
171 builtin_sources += plugins/pacrunner.c
175 builtin_modules += polkit
176 builtin_sources += plugins/polkit.c
179 policydir = @POLKIT_DATADIR@
181 policy_DATA = plugins/net.connman.policy
184 policy_DATA += vpn/net.connman.vpn.policy
190 plugin_LTLIBRARIES += plugins/iospm.la
191 plugin_objects += $(plugins_iospm_la_OBJECTS)
192 plugins_iospm_la_CFLAGS = $(plugin_cflags)
193 plugins_iospm_la_LDFLAGS = $(plugin_ldflags)
197 script_PROGRAMS += scripts/openconnect-script
199 scripts_openconnect_script_LDADD = @DBUS_LIBS@
202 script_PROGRAMS += scripts/openconnect-script
204 scripts_openconnect_script_LDADD = @DBUS_LIBS@
209 script_PROGRAMS += scripts/openvpn-script
211 scripts_openvpn_script_LDADD = @DBUS_LIBS@
215 builtin_modules += nmcompat
216 builtin_sources += plugins/nmcompat.c
221 builtin_modules += tist
222 builtin_sources += plugins/tist.c
224 plugin_LTLIBRARIES += plugins/tist.la
225 plugin_objects += $(plugins_tist_la_OBJECTS)
226 plugins_tist_la_CFLAGS = $(plugin_cflags)
227 plugins_tist_la_LDFLAGS = $(plugin_ldflags)
231 if SESSION_POLICY_LOCAL
232 if SESSION_POLICY_LOCAL_BUILTIN
233 builtin_modules += session_policy_local
234 builtin_sources += plugins/session_policy_local.c
236 plugin_LTLIBRARIES += plugins/session_policy_local.la
237 plugin_objects += $(plugins_session_policy_local_la_OBJECTS)
238 plugins_session_policy_local_la_CFLAGS = $(plugin_cflags) \
239 -DSTORAGEDIR=\""$(storagedir)\""
240 plugins_session_policy_local_la_LDFLAGS = $(plugin_ldflags)
244 EXTRA_DIST += plugins/polkit.policy
246 plugins/net.connman.policy: plugins/polkit.policy
251 EXTRA_DIST += vpn/vpn-polkit.policy
254 vpn/net.connman.vpn.policy: vpn/vpn-polkit.policy