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
29 builtin_sources += plugins/bluetooth.c
33 if HH2SERIAL_GPS_BUILTIN
34 builtin_modules += hh2serial_gps
35 builtin_sources += plugins/hh2serial-gps.c
37 plugin_LTLIBRARIES += plugins/hh2serial-gps.la
38 plugin_objects += $(plugins_hh2serial_gps_la_OBJECTS)
39 plugins_hh2serial_gps_la_CFLAGS = $(plugin_cflags)
40 plugins_hh2serial_gps_la_LDFLAGS = $(plugin_ldflags)
45 builtin_modules += ofono
46 builtin_sources += plugins/mcc.h plugins/ofono.c
50 builtin_modules += dundee
51 builtin_sources += plugins/dundee.c
55 if OPENCONNECT_BUILTIN
56 builtin_modules += openconnect
57 builtin_sources += plugins/openconnect.c
58 builtin_vpn_sources = plugins/vpn.c plugins/vpn.h
59 builtin_cflags += -DOPENCONNECT=\"@OPENCONNECT@\"
61 plugin_LTLIBRARIES += plugins/openconnect.la
62 plugin_objects += $(plugins_openconnect_la_OBJECTS)
63 plugins_openconnect_la_SOURCES = plugins/vpn.h plugins/vpn.c \
65 plugins_openconnect_la_CFLAGS = $(plugin_cflags) -DOPENCONNECT=\"@OPENCONNECT@\" \
66 -DSTATEDIR=\""$(statedir)"\" \
67 -DSCRIPTDIR=\""$(build_scriptdir)"\"
68 plugins_openconnect_la_LDFLAGS = $(plugin_ldflags)
74 builtin_modules += openvpn
75 builtin_sources += plugins/openvpn.c
76 builtin_vpn_sources = plugins/vpn.c plugins/vpn.h
77 builtin_cflags += -DOPENVPN=\"@OPENVPN@\"
79 plugin_LTLIBRARIES += plugins/openvpn.la
80 plugin_objects += $(plugins_openvpn_la_OBJECTS)
81 plugins_openvpn_la_SOURCES = plugins/vpn.h plugins/vpn.c \
83 plugins_openvpn_la_CFLAGS = $(plugin_cflags) -DOPENVPN=\"@OPENVPN@\" \
84 -DSTATEDIR=\""$(statedir)"\" \
85 -DSCRIPTDIR=\""$(build_scriptdir)"\"
86 plugins_openvpn_la_LDFLAGS = $(plugin_ldflags)
92 builtin_modules += vpnc
93 builtin_sources += plugins/vpnc.c
94 builtin_vpn_sources = plugins/vpn.c plugins/vpn.h
95 builtin_cflags += -DVPNC=\"@VPNC@\"
97 plugin_LTLIBRARIES += plugins/vpnc.la
98 plugin_objects += $(plugins_vpnc_la_OBJECTS)
99 plugins_vpnc_la_SOURCES = plugins/vpn.h plugins/vpn.c \
101 plugins_vpnc_la_CFLAGS = $(plugin_cflags) -DVPNC=\"@VPNC@\" \
102 -DSTATEDIR=\""$(statedir)"\" \
103 -DSCRIPTDIR=\""$(build_scriptdir)"\"
104 plugins_vpnc_la_LDFLAGS = $(plugin_ldflags)
110 builtin_modules += l2tp
111 builtin_sources += plugins/l2tp.c
112 builtin_vpn_sources = plugins/vpn.c plugins/vpn.h
113 builtin_cflags += -DL2TP=\"@L2TP@\"
115 plugin_LTLIBRARIES += plugins/l2tp.la
116 plugin_objects += $(plugins_l2tp_la_OBJECTS)
117 plugins_l2tp_la_SOURCES = plugins/vpn.h plugins/vpn.c \
119 plugins_l2tp_la_CFLAGS = $(plugin_cflags) -DL2TP=\"@L2TP@\" \
120 -DSTATEDIR=\""$(statedir)"\" \
121 -DSCRIPTDIR=\""$(build_scriptdir)"\"
122 plugins_l2tp_la_LDFLAGS = $(plugin_ldflags)
128 builtin_modules += pptp
129 builtin_sources += plugins/pptp.c
130 builtin_vpn_sources = plugins/vpn.c plugins/vpn.h
131 builtin_cflags += -DPPPD=\"@PPPD@\" -DPPTP=\"@PPTP@\"
133 plugin_LTLIBRARIES += plugins/pptp.la
134 plugin_objects += $(plugins_pptp_la_OBJECTS)
135 plugins_pptp_la_SOURCES = plugins/vpn.h plugins/vpn.c \
137 plugins_pptp_la_CFLAGS = $(plugin_cflags) -DPPPD=\"@PPPD@\" \
139 -DSTATEDIR=\""$(statedir)"\" \
140 -DSCRIPTDIR=\""$(build_scriptdir)"\"
141 plugins_pptp_la_LDFLAGS = $(plugin_ldflags)
146 script_LTLIBRARIES += scripts/libppp-plugin.la
147 scripts_libppp_plugin_la_LDFLAGS = $(script_cflags) @DBUS_CFLAGS@
148 scripts_libppp_plugin_la_LIBADD = @DBUS_LIBS@
151 script_LTLIBRARIES += scripts/libppp-plugin.la
152 scripts_libppp_plugin_la_LDFLAGS = $(script_cflags) @DBUS_CFLAGS@
153 scripts_libppp_plugin_la_LIBADD = @DBUS_LIBS@
157 builtin_sources += $(builtin_vpn_sources)
160 builtin_modules += pacrunner
161 builtin_sources += plugins/pacrunner.c
165 builtin_modules += polkit
166 builtin_sources += plugins/polkit.c
169 policydir = @POLKIT_DATADIR@
171 policy_DATA = plugins/net.connman.policy
176 plugin_LTLIBRARIES += plugins/iwmxsdk.la
177 plugin_objects += $(plugins_iwmxsdk_la_OBJECTS)
178 plugins_iwmxsdk_la_SOURCES = plugins/iwmx.h plugins/iwmx.c plugins/iwmxsdk.c
179 plugins_iwmxsdk_la_CFLAGS = $(plugin_cflags) @IWMXSDK_CFLAGS@
180 plugins_iwmxsdk_la_LIBADD = @IWMXSDK_LIBS@ @GLIB_LIBS@
181 plugins_iwmxsdk_la_LDFLAGS = $(plugin_ldflags)
185 plugin_LTLIBRARIES += plugins/iospm.la
186 plugin_objects += $(plugins_iospm_la_OBJECTS)
187 plugins_iospm_la_CFLAGS = $(plugin_cflags)
188 plugins_iospm_la_LDFLAGS = $(plugin_ldflags)
192 script_PROGRAMS += scripts/openconnect-script
194 scripts_openconnect_script_LDADD = @DBUS_LIBS@
197 script_PROGRAMS += scripts/openconnect-script
199 scripts_openconnect_script_LDADD = @DBUS_LIBS@
204 script_PROGRAMS += scripts/openvpn-script
206 scripts_openvpn_script_LDADD = @DBUS_LIBS@
210 builtin_modules += nmcompat
211 builtin_sources += plugins/nmcompat.c
216 builtin_modules += tist
217 builtin_sources += plugins/tist.c
219 plugin_LTLIBRARIES += plugins/tist.la
220 plugin_objects += $(plugins_tist_la_OBJECTS)
221 plugins_tist_la_CFLAGS = $(plugin_cflags)
222 plugins_tist_la_LDFLAGS = $(plugin_ldflags)
226 builtin_modules += @SESSION_CONFIG_PLUGIN@
227 builtin_sources += plugins/@SESSION_CONFIG_PLUGIN@.c
229 EXTRA_DIST += plugins/polkit.policy
231 plugins/net.connman.policy: plugins/polkit.policy