Remove support for dhclient 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
7 builtin_modules += dhcp
8 builtin_sources += plugins/dhcp.c
9
10 if LOOPBACK
11 if LOOPBACK_BUILTIN
12 builtin_modules += loopback
13 builtin_sources += plugins/loopback.c
14 else
15 plugin_LTLIBRARIES += plugins/loopback.la
16 plugin_objects += $(plugins_loopback_la_OBJECTS)
17 plugins_loopback_la_CFLAGS = $(plugin_cflags)
18 plugins_loopback_la_LDFLAGS = $(plugin_ldflags)
19 endif
20 endif
21
22 if ETHERNET
23 if ETHERNET_BUILTIN
24 builtin_modules += ethernet
25 builtin_sources += plugins/ethernet.c
26 else
27 plugin_LTLIBRARIES += plugins/ethernet.la
28 plugin_objects += $(plugins_ethernet_la_OBJECTS)
29 plugins_ethernet_la_CFLAGS = $(plugin_cflags)
30 plugins_ethernet_la_LDFLAGS = $(plugin_ldflags)
31 endif
32 endif
33
34 gsupplicant_sources = gsupplicant/gsupplicant.h gsupplicant/dbus.h \
35                         gsupplicant/supplicant.c gsupplicant/dbus.c
36
37 if WIFI
38 if WIFI_BUILTIN
39 builtin_modules += wifi
40 builtin_sources += plugins/wifi.c $(gsupplicant_sources)
41
42 builtin_modules += wifi_legacy
43 builtin_sources += plugins/wifi-legacy.c \
44                         plugins/supplicant.h plugins/supplicant.c
45 else
46 plugin_LTLIBRARIES += plugins/wifi.la
47 plugin_objects += $(plugins_wifi_la_OBJECTS)
48 plugins_wifi_la_SOURCES = plugins/wifi.c $(gsupplicant_sources)
49 plugins_wifi_la_CFLAGS = $(plugin_cflags)
50 plugins_wifi_la_LDFLAGS = $(plugin_ldflags)
51
52 plugin_LTLIBRARIES += plugins/wifi_legacy.la
53 plugin_objects += $(plugins_wifi_legacy_la_OBJECTS)
54 plugins_wifi_legacy_la_SOURCES = plugins/wifi-legacy.c \
55                                 plugins/supplicant.h plugins/supplicant.c
56 plugins_wifi_legacy_la_CFLAGS = $(plugin_cflags)
57 plugins_wifi_legacy_la_LDFLAGS = $(plugin_ldflags)
58
59 endif
60 endif
61
62 if BLUETOOTH
63 if BLUETOOTH_BUILTIN
64 builtin_modules += bluetooth
65 builtin_sources += plugins/bluetooth.c
66 else
67 plugin_LTLIBRARIES += plugins/bluetooth.la
68 plugin_objects += $(plugins_bluetooth_la_OBJECTS)
69 plugins_bluetooth_la_CFLAGS = $(plugin_cflags)
70 plugins_bluetooth_la_LDFLAGS = $(plugin_ldflags)
71 endif
72 endif
73
74 if HH2SERIAL_GPS
75 if HH2SERIAL_GPS_BUILTIN
76 builtin_modules += hh2serial_gps
77 builtin_sources += plugins/hh2serial-gps.c
78 else
79 plugin_LTLIBRARIES += plugins/hh2serial-gps.la
80 plugin_objects += $(plugins_hh2serial_gps_la_OBJECTS)
81 plugins_hh2serial_gps_la_CFLAGS = $(plugin_cflags)
82 plugins_hh2serial_gps_la_LDFLAGS = $(plugin_ldflags)
83 endif
84 endif
85
86 if OFONO
87 if OFONO_BUILTIN
88 builtin_modules += ofono
89 builtin_sources += plugins/ofono.c
90 else
91 plugin_LTLIBRARIES += plugins/ofono.la
92 plugin_objects += $(plugins_ofono_la_OBJECTS)
93 plugins_ofono_la_CFLAGS = $(plugin_cflags)
94 plugins_ofono_la_LDFLAGS = $(plugin_ldflags)
95 endif
96 endif
97
98 if OPENCONNECT
99 if OPENCONNECT_BUILTIN
100 builtin_modules += openconnect
101 builtin_sources += plugins/openconnect.c
102 builtin_cflags += -DOPENCONNECT=\"@OPENCONNECT@\"
103 else
104 plugin_LTLIBRARIES += plugins/openconnect.la
105 plugin_objects += $(plugins_openconnect_la_OBJECTS)
106 plugins_openconnect_la_SOURCES = plugins/vpn.h plugins/vpn.c \
107                                                 plugins/openconnect.c
108 plugins_openconnect_la_CFLAGS = $(plugin_cflags) -DOPENCONNECT=\"@OPENCONNECT@\" \
109                                         -DSTATEDIR=\""$(statedir)"\" \
110                                         -DSCRIPTDIR=\""$(build_scriptdir)"\"
111 plugins_openconnect_la_LDFLAGS = $(plugin_ldflags)
112 endif
113 endif
114
115 if OPENVPN
116 if OPENVPN_BUILTIN
117 builtin_modules += openvpn
118 builtin_sources += plugins/openvpn.c
119 builtin_cflags += -DOPENVPN=\"@OPENVPN@\"
120 else
121 plugin_LTLIBRARIES += plugins/openvpn.la
122 plugin_objects += $(plugins_openvpn_la_OBJECTS)
123 plugins_openvpn_la_SOURCES = plugins/vpn.h plugins/vpn.c \
124                                                 plugins/openvpn.c
125 plugins_openvpn_la_CFLAGS = $(plugin_cflags) -DOPENVPN=\"@OPENVPN@\" \
126                                         -DSTATEDIR=\""$(statedir)"\" \
127                                         -DSCRIPTDIR=\""$(build_scriptdir)"\"
128 plugins_openvpn_la_LDFLAGS = $(plugin_ldflags)
129 endif
130 endif
131
132 if OPENCONNECT_BUILTIN
133 builtin_sources += plugins/vpn.c plugins/vpn.h
134 else
135 if OPENVPN_BUILTIN
136 builtin_sources += plugins/vpn.c plugins/vpn.h
137 endif
138 endif
139
140 if PORTAL
141 if PORTAL_BUILTIN
142 builtin_modules += portal
143 builtin_sources += plugins/portal.c
144 else
145 plugin_LTLIBRARIES += plugins/portal.la
146 plugin_objects += $(plugins_portal_la_OBJECTS)
147 plugins_portal_la_CFLAGS = $(plugin_cflags)
148 plugins_portal_la_LDFLAGS = $(plugin_ldflags)
149 endif
150 endif
151
152 if DNSPROXY
153 if DNSPROXY_BUILTIN
154 builtin_modules += dnsproxy
155 builtin_sources += plugins/dnsproxy.c
156 else
157 plugin_LTLIBRARIES += plugins/dnsproxy.la
158 plugin_objects += $(plugins_dnsproxy_la_OBJECTS)
159 plugins_dnsproxy_la_CFLAGS = $(plugin_cflags)
160 plugins_dnsproxy_la_LDFLAGS = $(plugin_ldflags)
161 endif
162 endif
163
164 if PACRUNNER
165 if PACRUNNER_BUILTIN
166 builtin_modules += pacrunner
167 builtin_sources += plugins/pacrunner.c
168 else
169 plugin_LTLIBRARIES += plugins/pacrunner.la
170 plugin_objects += $(plugins_pacrunner_la_OBJECTS)
171 plugins_pacrunner_la_CFLAGS = $(plugin_cflags)
172 plugins_pacrunner_la_LDFLAGS = $(plugin_ldflags)
173 endif
174 endif
175
176 if GOOGLE
177 if GOOGLE_BUILTIN
178 builtin_modules += google
179 builtin_sources += plugins/google.c
180 else
181 plugin_LTLIBRARIES += plugins/google.la
182 plugin_objects += $(plugins_google_la_OBJECTS)
183 plugins_google_la_CFLAGS = $(plugin_cflags)
184 plugins_google_la_LDFLAGS = $(plugin_ldflags)
185 endif
186 endif
187
188 if MEEGO
189 if MEEGO_BUILTIN
190 builtin_modules += meego
191 builtin_sources += plugins/meego.c
192 else
193 plugin_LTLIBRARIES += plugins/meego.la
194 plugin_objects += $(plugins_meego_la_OBJECTS)
195 plugins_meego_la_CFLAGS = $(plugin_cflags)
196 plugins_meego_la_LDFLAGS = $(plugin_ldflags)
197 endif
198 endif
199
200 if POLKIT
201 if POLKIT_BUILTIN
202 builtin_modules += polkit
203 builtin_sources += plugins/polkit.c
204 else
205 plugin_LTLIBRARIES += plugins/polkit.la
206 plugin_objects += $(plugins_polkit_la_OBJECTS)
207 plugins_polkit_la_CFLAGS = $(plugin_cflags)
208 plugins_polkit_la_LDFLAGS = $(plugin_ldflags)
209 endif
210
211 if DATAFILES
212 policydir = @POLKIT_DATADIR@
213
214 policy_DATA = plugins/connman.policy
215 endif
216 endif
217
218 if IWMX
219 plugin_LTLIBRARIES += plugins/iwmxsdk.la
220 plugin_objects += $(plugins_iwmxsdk_la_OBJECTS)
221 plugins_iwmxsdk_la_SOURCES = plugins/iwmx.h plugins/iwmx.c plugins/iwmxsdk.c
222 plugins_iwmxsdk_la_CFLAGS = $(plugin_cflags) @IWMXSDK_CFLAGS@
223 plugins_iwmxsdk_la_LIBADD = @IWMXSDK_LIBS@ @GLIB_LIBS@
224 plugins_iwmxsdk_la_LDFLAGS = $(plugin_ldflags)
225 endif
226
227 if IOSPM
228 plugin_LTLIBRARIES += plugins/iospm.la
229 plugin_objects += $(plugins_iospm_la_OBJECTS)
230 plugins_iospm_la_CFLAGS = $(plugin_cflags)
231 plugins_iospm_la_LDFLAGS = $(plugin_ldflags)
232 endif
233
234 if FAKE
235 plugin_LTLIBRARIES += plugins/fake.la
236 plugin_objects += $(plugins_fake_la_OBJECTS)
237 plugins_fake_la_CFLAGS = $(plugin_cflags)
238 plugins_fake_la_LDFLAGS = $(plugin_ldflags)
239 endif
240
241 if OPENCONNECT
242 script_PROGRAMS += scripts/openconnect-script
243
244 scripts_openconnect_script_LDADD = @DBUS_LIBS@
245 endif
246
247 if OPENVPN
248 script_PROGRAMS += scripts/openvpn-script
249
250 scripts_openvpn_script_LDADD = @DBUS_LIBS@
251 endif
252
253 if NTPD
254 if NTPD_BUILTIN
255 builtin_modules += ntpd
256 builtin_sources += plugins/ntpd.c
257 builtin_cflags += -DNTPD=\"@NTPD@\"
258 else
259 plugin_LTLIBRARIES += plugins/ntpd.la
260 plugin_objects += $(plugins_ntpd_la_OBJECTS)
261 plugins_ntpd_la_CFLAGS = $(plugin_cflags) -DNTPD=\"@NTPD@\"
262 plugins_ntpd_la_LDFLAGS = $(plugin_ldflags)
263 endif
264 endif
265
266 EXTRA_DIST += plugins/polkit.policy
267
268 plugins/connman.policy: plugins/polkit.policy
269 if POLKIT
270         $(AM_V_GEN)cp $< $@
271 endif