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 += bluetooth_legacy
31 builtin_sources += plugins/bluetooth_legacy.c
32 builtin_modules += bluetooth
33 builtin_sources += plugins/bluetooth.c
37 if HH2SERIAL_GPS_BUILTIN
38 builtin_modules += hh2serial_gps
39 builtin_sources += plugins/hh2serial-gps.c
41 plugin_LTLIBRARIES += plugins/hh2serial-gps.la
42 plugin_objects += $(plugins_hh2serial_gps_la_OBJECTS)
43 plugins_hh2serial_gps_la_CFLAGS = $(plugin_cflags)
44 plugins_hh2serial_gps_la_LDFLAGS = $(plugin_ldflags)
49 builtin_modules += ofono
50 builtin_sources += plugins/mcc.h plugins/ofono.c
54 builtin_modules += dundee
55 builtin_sources += plugins/dundee.c
60 builtin_modules += telephony
61 builtin_sources += plugins/telephony.c
63 plugin_LTLIBRARIES += plugins/telephony.la
64 plugin_objects += $(plugins_telephony_la_OBJECTS)
65 plugins_telephony_la_CFLAGS = $(plugin_cflags)
66 plugins_telephony_la_LDFLAGS = $(plugin_ldflags)
71 builtin_modules += vpn
72 builtin_sources += plugins/vpn.c
75 if OPENCONNECT_BUILTIN
76 builtin_vpn_modules += openconnect
77 builtin_vpn_sources += vpn/plugins/openconnect.c
78 builtin_vpn_source = vpn/plugins/vpn.c vpn/plugins/vpn.h
79 builtin_vpn_cflags += -DOPENCONNECT=\"@OPENCONNECT@\"
81 vpn_plugin_LTLIBRARIES += vpn/plugins/openconnect.la
82 vpn_plugin_objects += $(plugins_openconnect_la_OBJECTS)
83 vpn_plugins_openconnect_la_SOURCES = vpn/plugins/vpn.h vpn/plugins/vpn.c \
84 vpn/plugins/openconnect.c
85 vpn_plugins_openconnect_la_CFLAGS = $(plugin_cflags) \
86 -DOPENCONNECT=\"@OPENCONNECT@\" \
87 -DVPN_STATEDIR=\""$(vpn_statedir)"\" \
88 -DSCRIPTDIR=\""$(build_scriptdir)"\"
89 vpn_plugins_openconnect_la_LDFLAGS = $(plugin_ldflags)
95 builtin_vpn_modules += openvpn
96 builtin_vpn_sources += vpn/plugins/openvpn.c
97 builtin_vpn_source = vpn/plugins/vpn.c vpn/plugins/vpn.h
98 builtin_vpn_cflags += -DOPENVPN=\"@OPENVPN@\"
100 vpn_plugin_LTLIBRARIES += vpn/plugins/openvpn.la
101 vpn_plugin_objects += $(plugins_openvpn_la_OBJECTS)
102 vpn_plugins_openvpn_la_SOURCES = vpn/plugins/vpn.h vpn/plugins/vpn.c \
103 vpn/plugins/openvpn.c
104 vpn_plugins_openvpn_la_CFLAGS = $(plugin_cflags) -DOPENVPN=\"@OPENVPN@\" \
105 -DVPN_STATEDIR=\""$(vpn_statedir)"\" \
106 -DSCRIPTDIR=\""$(build_scriptdir)"\"
107 vpn_plugins_openvpn_la_LDFLAGS = $(plugin_ldflags)
113 builtin_vpn_modules += vpnc
114 builtin_vpn_sources += vpn/plugins/vpnc.c
115 builtin_vpn_source = vpn/plugins/vpn.c vpn/plugins/vpn.h
116 builtin_vpn_cflags += -DVPNC=\"@VPNC@\"
118 vpn_plugin_LTLIBRARIES += vpn/plugins/vpnc.la
119 vpn_plugin_objects += $(plugins_vpnc_la_OBJECTS)
120 vpn_plugins_vpnc_la_SOURCES = vpn/plugins/vpn.h vpn/plugins/vpn.c \
122 vpn_plugins_vpnc_la_CFLAGS = $(plugin_cflags) -DVPNC=\"@VPNC@\" \
123 -DVPN_STATEDIR=\""$(vpn_statedir)"\" \
124 -DSCRIPTDIR=\""$(build_scriptdir)"\"
125 vpn_plugins_vpnc_la_LDFLAGS = $(plugin_ldflags)
131 builtin_vpn_modules += l2tp
132 builtin_vpn_sources += vpn/plugins/l2tp.c
133 builtin_vpn_source = vpn/plugins/vpn.c vpn/plugins/vpn.h
134 builtin_vpn_cflags += -DL2TP=\"@L2TP@\"
136 vpn_plugin_LTLIBRARIES += vpn/plugins/l2tp.la
137 vpn_plugin_objects += $(plugins_l2tp_la_OBJECTS)
138 vpn_plugins_l2tp_la_SOURCES = vpn/plugins/vpn.h vpn/plugins/vpn.c \
140 vpn_plugins_l2tp_la_CFLAGS = $(plugin_cflags) -DL2TP=\"@L2TP@\" \
141 -DVPN_STATEDIR=\""$(vpn_statedir)"\" \
142 -DSCRIPTDIR=\""$(build_scriptdir)"\"
143 vpn_plugins_l2tp_la_LDFLAGS = $(plugin_ldflags)
149 builtin_vpn_modules += pptp
150 builtin_vpn_sources += vpn/plugins/pptp.c
151 builtin_vpn_source = vpn/plugins/vpn.c vpn/plugins/vpn.h
152 builtin_vpn_cflags += -DPPPD=\"@PPPD@\" -DPPTP=\"@PPTP@\"
154 vpn_plugin_LTLIBRARIES += vpn/plugins/pptp.la
155 vpn_plugin_objects += $(plugins_pptp_la_OBJECTS)
156 vpn_plugins_pptp_la_SOURCES = vpn/plugins/vpn.h vpn/plugins/vpn.c \
158 vpn_plugins_pptp_la_CFLAGS = $(plugin_cflags) -DPPPD=\"@PPPD@\" \
160 -DVPN_STATEDIR=\""$(vpn_statedir)"\" \
161 -DSCRIPTDIR=\""$(build_scriptdir)"\"
162 vpn_plugins_pptp_la_LDFLAGS = $(plugin_ldflags)
167 script_LTLIBRARIES += scripts/libppp-plugin.la
168 scripts_libppp_plugin_la_LDFLAGS = $(plugin_ldflags)
169 scripts_libppp_plugin_la_LIBADD = @DBUS_LIBS@
172 script_LTLIBRARIES += scripts/libppp-plugin.la
173 scripts_libppp_plugin_la_LDFLAGS = $(plugin_ldflags)
174 scripts_libppp_plugin_la_LIBADD = @DBUS_LIBS@
179 builtin_vpn_sources += $(builtin_vpn_source)
184 builtin_modules += pacrunner
185 builtin_sources += plugins/pacrunner.c
189 builtin_modules += polkit
190 builtin_sources += plugins/polkit.c
193 policydir = @POLKIT_DATADIR@
195 policy_DATA = plugins/net.connman.policy
198 policy_DATA += vpn/net.connman.vpn.policy
204 plugin_LTLIBRARIES += plugins/iospm.la
205 plugin_objects += $(plugins_iospm_la_OBJECTS)
206 plugins_iospm_la_CFLAGS = $(plugin_cflags)
207 plugins_iospm_la_LDFLAGS = $(plugin_ldflags)
211 script_PROGRAMS += scripts/openconnect-script
213 scripts_openconnect_script_LDADD = @DBUS_LIBS@
216 script_PROGRAMS += scripts/openconnect-script
218 scripts_openconnect_script_LDADD = @DBUS_LIBS@
223 script_PROGRAMS += scripts/openvpn-script
225 scripts_openvpn_script_LDADD = @DBUS_LIBS@
229 builtin_modules += nmcompat
230 builtin_sources += plugins/nmcompat.c
235 builtin_modules += tist
236 builtin_sources += plugins/tist.c
238 plugin_LTLIBRARIES += plugins/tist.la
239 plugin_objects += $(plugins_tist_la_OBJECTS)
240 plugins_tist_la_CFLAGS = $(plugin_cflags)
241 plugins_tist_la_LDFLAGS = $(plugin_ldflags)
245 if SESSION_POLICY_LOCAL
246 if SESSION_POLICY_LOCAL_BUILTIN
247 builtin_modules += session_policy_local
248 builtin_sources += plugins/session_policy_local.c
250 plugin_LTLIBRARIES += plugins/session_policy_local.la
251 plugin_objects += $(plugins_session_policy_local_la_OBJECTS)
252 plugins_session_policy_local_la_CFLAGS = $(plugin_cflags) \
253 -DSTORAGEDIR=\""$(storagedir)\""
254 plugins_session_policy_local_la_LDFLAGS = $(plugin_ldflags)
259 builtin_modules += neard
260 builtin_sources += plugins/neard.c
263 EXTRA_DIST += plugins/polkit.policy
265 plugins/net.connman.policy: plugins/polkit.policy
270 EXTRA_DIST += vpn/vpn-polkit.policy
273 vpn/net.connman.vpn.policy: vpn/vpn-polkit.policy