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