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 if OPENCONNECT_BUILTIN
51 builtin_modules += openconnect
52 builtin_sources += plugins/openconnect.c
53 builtin_vpn_sources = plugins/vpn.c plugins/vpn.h
54 builtin_cflags += -DOPENCONNECT=\"@OPENCONNECT@\"
56 plugin_LTLIBRARIES += plugins/openconnect.la
57 plugin_objects += $(plugins_openconnect_la_OBJECTS)
58 plugins_openconnect_la_SOURCES = plugins/vpn.h plugins/vpn.c \
60 plugins_openconnect_la_CFLAGS = $(plugin_cflags) -DOPENCONNECT=\"@OPENCONNECT@\" \
61 -DSTATEDIR=\""$(statedir)"\" \
62 -DSCRIPTDIR=\""$(build_scriptdir)"\"
63 plugins_openconnect_la_LDFLAGS = $(plugin_ldflags)
69 builtin_modules += openvpn
70 builtin_sources += plugins/openvpn.c
71 builtin_vpn_sources = plugins/vpn.c plugins/vpn.h
72 builtin_cflags += -DOPENVPN=\"@OPENVPN@\"
74 plugin_LTLIBRARIES += plugins/openvpn.la
75 plugin_objects += $(plugins_openvpn_la_OBJECTS)
76 plugins_openvpn_la_SOURCES = plugins/vpn.h plugins/vpn.c \
78 plugins_openvpn_la_CFLAGS = $(plugin_cflags) -DOPENVPN=\"@OPENVPN@\" \
79 -DSTATEDIR=\""$(statedir)"\" \
80 -DSCRIPTDIR=\""$(build_scriptdir)"\"
81 plugins_openvpn_la_LDFLAGS = $(plugin_ldflags)
87 builtin_modules += vpnc
88 builtin_sources += plugins/vpnc.c
89 builtin_vpn_sources = plugins/vpn.c plugins/vpn.h
90 builtin_cflags += -DVPNC=\"@VPNC@\"
92 plugin_LTLIBRARIES += plugins/vpnc.la
93 plugin_objects += $(plugins_vpnc_la_OBJECTS)
94 plugins_vpnc_la_SOURCES = plugins/vpn.h plugins/vpn.c \
96 plugins_vpnc_la_CFLAGS = $(plugin_cflags) -DVPNC=\"@VPNC@\" \
97 -DSTATEDIR=\""$(statedir)"\" \
98 -DSCRIPTDIR=\""$(build_scriptdir)"\"
99 plugins_vpnc_la_LDFLAGS = $(plugin_ldflags)
105 builtin_modules += l2tp
106 builtin_sources += plugins/l2tp.c
107 builtin_vpn_sources = plugins/vpn.c plugins/vpn.h
108 builtin_cflags += -DL2TP=\"@L2TP@\"
110 plugin_LTLIBRARIES += plugins/l2tp.la
111 plugin_objects += $(plugins_l2tp_la_OBJECTS)
112 plugins_l2tp_la_SOURCES = plugins/vpn.h plugins/vpn.c \
114 plugins_l2tp_la_CFLAGS = $(plugin_cflags) -DL2TP=\"@L2TP@\" \
115 -DSTATEDIR=\""$(statedir)"\" \
116 -DSCRIPTDIR=\""$(build_scriptdir)"\"
117 plugins_l2tp_la_LDFLAGS = $(plugin_ldflags)
123 builtin_modules += pptp
124 builtin_sources += plugins/pptp.c
125 builtin_vpn_sources = plugins/vpn.c plugins/vpn.h
126 builtin_cflags += -DPPPD=\"@PPPD@\" -DPPTP=\"@PPTP@\"
128 plugin_LTLIBRARIES += plugins/pptp.la
129 plugin_objects += $(plugins_pptp_la_OBJECTS)
130 plugins_pptp_la_SOURCES = plugins/vpn.h plugins/vpn.c \
132 plugins_pptp_la_CFLAGS = $(plugin_cflags) -DPPPD=\"@PPPD@\" \
134 -DSTATEDIR=\""$(statedir)"\" \
135 -DSCRIPTDIR=\""$(build_scriptdir)"\"
136 plugins_pptp_la_LDFLAGS = $(plugin_ldflags)
141 script_LTLIBRARIES += scripts/libppp-plugin.la
142 scripts_libppp_plugin_la_LDFLAGS = $(script_cflags) @DBUS_CFLAGS@
143 scripts_libppp_plugin_la_LIBADD = @DBUS_LIBS@
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@
152 builtin_sources += $(builtin_vpn_sources)
155 builtin_modules += pacrunner
156 builtin_sources += plugins/pacrunner.c
160 builtin_modules += polkit
161 builtin_sources += plugins/polkit.c
164 policydir = @POLKIT_DATADIR@
166 policy_DATA = plugins/net.connman.policy
171 plugin_LTLIBRARIES += plugins/iwmxsdk.la
172 plugin_objects += $(plugins_iwmxsdk_la_OBJECTS)
173 plugins_iwmxsdk_la_SOURCES = plugins/iwmx.h plugins/iwmx.c plugins/iwmxsdk.c
174 plugins_iwmxsdk_la_CFLAGS = $(plugin_cflags) @IWMXSDK_CFLAGS@
175 plugins_iwmxsdk_la_LIBADD = @IWMXSDK_LIBS@ @GLIB_LIBS@
176 plugins_iwmxsdk_la_LDFLAGS = $(plugin_ldflags)
180 plugin_LTLIBRARIES += plugins/iospm.la
181 plugin_objects += $(plugins_iospm_la_OBJECTS)
182 plugins_iospm_la_CFLAGS = $(plugin_cflags)
183 plugins_iospm_la_LDFLAGS = $(plugin_ldflags)
187 script_PROGRAMS += scripts/openconnect-script
189 scripts_openconnect_script_LDADD = @DBUS_LIBS@
192 script_PROGRAMS += scripts/openconnect-script
194 scripts_openconnect_script_LDADD = @DBUS_LIBS@
199 script_PROGRAMS += scripts/openvpn-script
201 scripts_openvpn_script_LDADD = @DBUS_LIBS@
205 builtin_modules += nmcompat
206 builtin_sources += plugins/nmcompat.c
211 builtin_modules += tist
212 builtin_sources += plugins/tist.c
214 plugin_LTLIBRARIES += plugins/tist.la
215 plugin_objects += $(plugins_tist_la_OBJECTS)
216 plugins_tist_la_CFLAGS = $(plugin_cflags)
217 plugins_tist_la_LDFLAGS = $(plugin_ldflags)
221 EXTRA_DIST += plugins/polkit.policy
223 plugins/net.connman.policy: plugins/polkit.policy