ntpd: Remove the ntpd plugin
[platform/upstream/connman.git] / Makefile.plugins
1
2 plugin_cflags = -fvisibility=hidden -I$(srcdir)/gdbus \
3                                         @DBUS_CFLAGS@ @GLIB_CFLAGS@
4 plugin_ldflags = -no-undefined -module -avoid-version
5
6 script_cflags = -fvisibility=hidden -I$(srcdir)/gdbus \
7                                         @DBUS_CFLAGS@
8
9 if LOOPBACK
10 if LOOPBACK_BUILTIN
11 builtin_modules += loopback
12 builtin_sources += plugins/loopback.c
13 else
14 plugin_LTLIBRARIES += plugins/loopback.la
15 plugin_objects += $(plugins_loopback_la_OBJECTS)
16 plugins_loopback_la_CFLAGS = $(plugin_cflags)
17 plugins_loopback_la_LDFLAGS = $(plugin_ldflags)
18 endif
19 endif
20
21 if ETHERNET
22 if ETHERNET_BUILTIN
23 builtin_modules += ethernet
24 builtin_sources += plugins/ethernet.c
25 else
26 plugin_LTLIBRARIES += plugins/ethernet.la
27 plugin_objects += $(plugins_ethernet_la_OBJECTS)
28 plugins_ethernet_la_CFLAGS = $(plugin_cflags)
29 plugins_ethernet_la_LDFLAGS = $(plugin_ldflags)
30 endif
31 endif
32
33 gsupplicant_sources = gsupplicant/gsupplicant.h gsupplicant/dbus.h \
34                         gsupplicant/supplicant.c gsupplicant/dbus.c
35
36 if WIFI
37 if WIFI_BUILTIN
38 builtin_modules += wifi
39 builtin_sources += plugins/wifi.c $(gsupplicant_sources)
40
41 else
42 plugin_LTLIBRARIES += plugins/wifi.la
43 plugin_objects += $(plugins_wifi_la_OBJECTS)
44 plugins_wifi_la_SOURCES = plugins/wifi.c $(gsupplicant_sources)
45 plugins_wifi_la_CFLAGS = $(plugin_cflags)
46 plugins_wifi_la_LDFLAGS = $(plugin_ldflags)
47
48 endif
49 endif
50
51 if BLUETOOTH
52 if BLUETOOTH_BUILTIN
53 builtin_modules += bluetooth
54 builtin_sources += plugins/bluetooth.c
55 else
56 plugin_LTLIBRARIES += plugins/bluetooth.la
57 plugin_objects += $(plugins_bluetooth_la_OBJECTS)
58 plugins_bluetooth_la_CFLAGS = $(plugin_cflags)
59 plugins_bluetooth_la_LDFLAGS = $(plugin_ldflags)
60 endif
61 endif
62
63 if HH2SERIAL_GPS
64 if HH2SERIAL_GPS_BUILTIN
65 builtin_modules += hh2serial_gps
66 builtin_sources += plugins/hh2serial-gps.c
67 else
68 plugin_LTLIBRARIES += plugins/hh2serial-gps.la
69 plugin_objects += $(plugins_hh2serial_gps_la_OBJECTS)
70 plugins_hh2serial_gps_la_CFLAGS = $(plugin_cflags)
71 plugins_hh2serial_gps_la_LDFLAGS = $(plugin_ldflags)
72 endif
73 endif
74
75 if OFONO
76 if OFONO_BUILTIN
77 builtin_modules += ofono
78 builtin_sources += plugins/mcc.h plugins/ofono.c
79 else
80 plugin_LTLIBRARIES += plugins/ofono.la
81 plugin_objects += $(plugins_ofono_la_OBJECTS)
82 plugins_ofono_la_SOURCES = plugins/mcc.h plugins/ofono.c
83 plugins_ofono_la_CFLAGS = $(plugin_cflags)
84 plugins_ofono_la_LDFLAGS = $(plugin_ldflags)
85 endif
86 endif
87
88 if OPENCONNECT
89 if OPENCONNECT_BUILTIN
90 builtin_modules += openconnect
91 builtin_sources += plugins/openconnect.c
92 builtin_vpn_sources = plugins/vpn.c plugins/vpn.h
93 builtin_cflags += -DOPENCONNECT=\"@OPENCONNECT@\"
94 else
95 plugin_LTLIBRARIES += plugins/openconnect.la
96 plugin_objects += $(plugins_openconnect_la_OBJECTS)
97 plugins_openconnect_la_SOURCES = plugins/vpn.h plugins/vpn.c \
98                                                 plugins/openconnect.c
99 plugins_openconnect_la_CFLAGS = $(plugin_cflags) -DOPENCONNECT=\"@OPENCONNECT@\" \
100                                         -DSTATEDIR=\""$(statedir)"\" \
101                                         -DSCRIPTDIR=\""$(build_scriptdir)"\"
102 plugins_openconnect_la_LDFLAGS = $(plugin_ldflags)
103 endif
104 endif
105
106 if OPENVPN
107 if OPENVPN_BUILTIN
108 builtin_modules += openvpn
109 builtin_sources += plugins/openvpn.c
110 builtin_vpn_sources = plugins/vpn.c plugins/vpn.h
111 builtin_cflags += -DOPENVPN=\"@OPENVPN@\"
112 else
113 plugin_LTLIBRARIES += plugins/openvpn.la
114 plugin_objects += $(plugins_openvpn_la_OBJECTS)
115 plugins_openvpn_la_SOURCES = plugins/vpn.h plugins/vpn.c \
116                                                 plugins/openvpn.c
117 plugins_openvpn_la_CFLAGS = $(plugin_cflags) -DOPENVPN=\"@OPENVPN@\" \
118                                         -DSTATEDIR=\""$(statedir)"\" \
119                                         -DSCRIPTDIR=\""$(build_scriptdir)"\"
120 plugins_openvpn_la_LDFLAGS = $(plugin_ldflags)
121 endif
122 endif
123
124 if VPNC
125 if VPNC_BUILTIN
126 builtin_modules += vpnc
127 builtin_sources += plugins/vpnc.c
128 builtin_vpn_sources = plugins/vpn.c plugins/vpn.h
129 builtin_cflags += -DVPNC=\"@VPNC@\"
130 else
131 plugin_LTLIBRARIES += plugins/vpnc.la
132 plugin_objects += $(plugins_vpnc_la_OBJECTS)
133 plugins_vpnc_la_SOURCES = plugins/vpn.h plugins/vpn.c \
134                                                 plugins/vpnc.c
135 plugins_vpnc_la_CFLAGS = $(plugin_cflags) -DVPNC=\"@VPNC@\" \
136                                         -DSTATEDIR=\""$(statedir)"\" \
137                                         -DSCRIPTDIR=\""$(build_scriptdir)"\"
138 plugins_vpnc_la_LDFLAGS = $(plugin_ldflags)
139 endif
140 endif
141
142 if L2TP
143 if L2TP_BUILTIN
144 builtin_modules += l2tp
145 builtin_sources += plugins/l2tp.c
146 builtin_vpn_sources = plugins/vpn.c plugins/vpn.h
147 builtin_cflags += -DL2TP=\"@L2TP@\"
148 else
149 plugin_LTLIBRARIES += plugins/l2tp.la
150 plugin_objects += $(plugins_l2tp_la_OBJECTS)
151 plugins_l2tp_la_SOURCES = plugins/vpn.h plugins/vpn.c \
152                                                 plugins/l2tp.c
153 plugins_l2tp_la_CFLAGS = $(plugin_cflags) -DL2TP=\"@L2TP@\" \
154                                         -DSTATEDIR=\""$(statedir)"\" \
155                                         -DSCRIPTDIR=\""$(build_scriptdir)"\"
156 plugins_l2tp_la_LDFLAGS = $(plugin_ldflags)
157 endif
158 endif
159
160 if PPTP
161 if PPTP_BUILTIN
162 builtin_modules += pptp
163 builtin_sources += plugins/pptp.c
164 builtin_vpn_sources = plugins/vpn.c plugins/vpn.h
165 builtin_cflags += -DPPPD=\"@PPPD@\" -DPPTP=\"@PPTP@\"
166 else
167 plugin_LTLIBRARIES += plugins/pptp.la
168 plugin_objects += $(plugins_pptp_la_OBJECTS)
169 plugins_pptp_la_SOURCES = plugins/vpn.h plugins/vpn.c \
170                                                 plugins/pptp.c
171 plugins_pptp_la_CFLAGS = $(plugin_cflags) -DPPPD=\"@PPPD@\" \
172                                         -DPPTP=\"@PPTP@\" \
173                                         -DSTATEDIR=\""$(statedir)"\" \
174                                         -DSCRIPTDIR=\""$(build_scriptdir)"\"
175 plugins_pptp_la_LDFLAGS = $(plugin_ldflags)
176 endif
177 endif
178
179 if PPTP
180 script_LTLIBRARIES += scripts/libppp-plugin.la
181 scripts_libppp_plugin_la_LDFLAGS = $(script_cflags) @DBUS_CFLAGS@
182 scripts_libppp_plugin_la_LIBADD = @DBUS_LIBS@
183 else
184 if L2TP
185 script_LTLIBRARIES += scripts/libppp-plugin.la
186 scripts_libppp_plugin_la_LDFLAGS = $(script_cflags) @DBUS_CFLAGS@
187 scripts_libppp_plugin_la_LIBADD = @DBUS_LIBS@
188 endif
189 endif
190
191 builtin_sources += $(builtin_vpn_sources)
192
193 if PACRUNNER
194 if PACRUNNER_BUILTIN
195 builtin_modules += pacrunner
196 builtin_sources += plugins/pacrunner.c
197 else
198 plugin_LTLIBRARIES += plugins/pacrunner.la
199 plugin_objects += $(plugins_pacrunner_la_OBJECTS)
200 plugins_pacrunner_la_CFLAGS = $(plugin_cflags)
201 plugins_pacrunner_la_LDFLAGS = $(plugin_ldflags)
202 endif
203 endif
204
205 if GOOGLE
206 if GOOGLE_BUILTIN
207 builtin_modules += google
208 builtin_sources += plugins/google.c
209 else
210 plugin_LTLIBRARIES += plugins/google.la
211 plugin_objects += $(plugins_google_la_OBJECTS)
212 plugins_google_la_CFLAGS = $(plugin_cflags)
213 plugins_google_la_LDFLAGS = $(plugin_ldflags)
214 endif
215 endif
216
217 if MEEGO
218 if MEEGO_BUILTIN
219 builtin_modules += meego
220 builtin_sources += plugins/meego.c
221 else
222 plugin_LTLIBRARIES += plugins/meego.la
223 plugin_objects += $(plugins_meego_la_OBJECTS)
224 plugins_meego_la_CFLAGS = $(plugin_cflags)
225 plugins_meego_la_LDFLAGS = $(plugin_ldflags)
226 endif
227 endif
228
229 if POLKIT
230 if POLKIT_BUILTIN
231 builtin_modules += polkit
232 builtin_sources += plugins/polkit.c
233 else
234 plugin_LTLIBRARIES += plugins/polkit.la
235 plugin_objects += $(plugins_polkit_la_OBJECTS)
236 plugins_polkit_la_CFLAGS = $(plugin_cflags)
237 plugins_polkit_la_LDFLAGS = $(plugin_ldflags)
238 endif
239
240 if DATAFILES
241 policydir = @POLKIT_DATADIR@
242
243 policy_DATA = plugins/net.connman.policy
244 endif
245 endif
246
247 if IWMX
248 plugin_LTLIBRARIES += plugins/iwmxsdk.la
249 plugin_objects += $(plugins_iwmxsdk_la_OBJECTS)
250 plugins_iwmxsdk_la_SOURCES = plugins/iwmx.h plugins/iwmx.c plugins/iwmxsdk.c
251 plugins_iwmxsdk_la_CFLAGS = $(plugin_cflags) @IWMXSDK_CFLAGS@
252 plugins_iwmxsdk_la_LIBADD = @IWMXSDK_LIBS@ @GLIB_LIBS@
253 plugins_iwmxsdk_la_LDFLAGS = $(plugin_ldflags)
254 endif
255
256 if IOSPM
257 plugin_LTLIBRARIES += plugins/iospm.la
258 plugin_objects += $(plugins_iospm_la_OBJECTS)
259 plugins_iospm_la_CFLAGS = $(plugin_cflags)
260 plugins_iospm_la_LDFLAGS = $(plugin_ldflags)
261 endif
262
263 if FAKE
264 plugin_LTLIBRARIES += plugins/fake.la
265 plugin_objects += $(plugins_fake_la_OBJECTS)
266 plugins_fake_la_CFLAGS = $(plugin_cflags)
267 plugins_fake_la_LDFLAGS = $(plugin_ldflags)
268 endif
269
270 if OPENCONNECT
271 script_PROGRAMS += scripts/openconnect-script
272
273 scripts_openconnect_script_LDADD = @DBUS_LIBS@
274 else
275 if VPNC
276 script_PROGRAMS += scripts/openconnect-script
277
278 scripts_openconnect_script_LDADD = @DBUS_LIBS@
279 endif
280 endif
281
282 if OPENVPN
283 script_PROGRAMS += scripts/openvpn-script
284
285 scripts_openvpn_script_LDADD = @DBUS_LIBS@
286 endif
287
288 if NMCOMPAT
289 if NMCOMPAT_BUILTIN
290 builtin_modules += nmcompat
291 builtin_sources += plugins/nmcompat.c
292 else
293 plugin_LTLIBRARIES += plugins/nmcompat.la
294 plugin_objects += $(plugins_nmcompat_la_OBJECTS)
295 plugins_nmcompat_la_CFLAGS = $(plugin_cflags)
296 plugins_nmcompat_la_LDFLAGS = $(plugin_ldflags)
297 endif
298 endif
299
300 if TIST
301 if TIST_BUILTIN
302 builtin_modules += tist
303 builtin_sources += plugins/tist.c
304 else
305 plugin_LTLIBRARIES += plugins/tist.la
306 plugin_objects += $(plugins_tist_la_OBJECTS)
307 plugins_tist_la_CFLAGS = $(plugin_cflags)
308 plugins_tist_la_LDFLAGS = $(plugin_ldflags)
309 endif
310 endif
311
312 EXTRA_DIST += plugins/polkit.policy
313
314 plugins/net.connman.policy: plugins/polkit.policy
315 if POLKIT
316         $(AM_V_GEN)cp $< $@
317 endif