session: Remove Priority documentation
[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 builtin_modules += loopback
11 builtin_sources += plugins/loopback.c
12 endif
13
14 if ETHERNET
15 builtin_modules += ethernet
16 builtin_sources += plugins/ethernet.c
17 endif
18
19 gsupplicant_sources = gsupplicant/gsupplicant.h gsupplicant/dbus.h \
20                         gsupplicant/supplicant.c gsupplicant/dbus.c
21
22 if WIFI
23 builtin_modules += wifi
24 builtin_sources += plugins/wifi.c $(gsupplicant_sources)
25 endif
26
27 if BLUETOOTH
28 builtin_modules += bluetooth
29 builtin_sources += plugins/bluetooth.c
30 endif
31
32 if HH2SERIAL_GPS
33 if HH2SERIAL_GPS_BUILTIN
34 builtin_modules += hh2serial_gps
35 builtin_sources += plugins/hh2serial-gps.c
36 else
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)
41 endif
42 endif
43
44 if OFONO
45 builtin_modules += ofono
46 builtin_sources += plugins/mcc.h plugins/ofono.c
47 endif
48
49 if DUNDEE
50 builtin_modules += dundee
51 builtin_sources += plugins/dundee.c
52 endif
53
54 if OPENCONNECT
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@\"
60 else
61 plugin_LTLIBRARIES += plugins/openconnect.la
62 plugin_objects += $(plugins_openconnect_la_OBJECTS)
63 plugins_openconnect_la_SOURCES = plugins/vpn.h plugins/vpn.c \
64                                                 plugins/openconnect.c
65 plugins_openconnect_la_CFLAGS = $(plugin_cflags) -DOPENCONNECT=\"@OPENCONNECT@\" \
66                                         -DSTATEDIR=\""$(statedir)"\" \
67                                         -DSCRIPTDIR=\""$(build_scriptdir)"\"
68 plugins_openconnect_la_LDFLAGS = $(plugin_ldflags)
69 endif
70 endif
71
72 if OPENVPN
73 if OPENVPN_BUILTIN
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@\"
78 else
79 plugin_LTLIBRARIES += plugins/openvpn.la
80 plugin_objects += $(plugins_openvpn_la_OBJECTS)
81 plugins_openvpn_la_SOURCES = plugins/vpn.h plugins/vpn.c \
82                                                 plugins/openvpn.c
83 plugins_openvpn_la_CFLAGS = $(plugin_cflags) -DOPENVPN=\"@OPENVPN@\" \
84                                         -DSTATEDIR=\""$(statedir)"\" \
85                                         -DSCRIPTDIR=\""$(build_scriptdir)"\"
86 plugins_openvpn_la_LDFLAGS = $(plugin_ldflags)
87 endif
88 endif
89
90 if VPNC
91 if VPNC_BUILTIN
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@\"
96 else
97 plugin_LTLIBRARIES += plugins/vpnc.la
98 plugin_objects += $(plugins_vpnc_la_OBJECTS)
99 plugins_vpnc_la_SOURCES = plugins/vpn.h plugins/vpn.c \
100                                                 plugins/vpnc.c
101 plugins_vpnc_la_CFLAGS = $(plugin_cflags) -DVPNC=\"@VPNC@\" \
102                                         -DSTATEDIR=\""$(statedir)"\" \
103                                         -DSCRIPTDIR=\""$(build_scriptdir)"\"
104 plugins_vpnc_la_LDFLAGS = $(plugin_ldflags)
105 endif
106 endif
107
108 if L2TP
109 if L2TP_BUILTIN
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@\"
114 else
115 plugin_LTLIBRARIES += plugins/l2tp.la
116 plugin_objects += $(plugins_l2tp_la_OBJECTS)
117 plugins_l2tp_la_SOURCES = plugins/vpn.h plugins/vpn.c \
118                                                 plugins/l2tp.c
119 plugins_l2tp_la_CFLAGS = $(plugin_cflags) -DL2TP=\"@L2TP@\" \
120                                         -DSTATEDIR=\""$(statedir)"\" \
121                                         -DSCRIPTDIR=\""$(build_scriptdir)"\"
122 plugins_l2tp_la_LDFLAGS = $(plugin_ldflags)
123 endif
124 endif
125
126 if PPTP
127 if PPTP_BUILTIN
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@\"
132 else
133 plugin_LTLIBRARIES += plugins/pptp.la
134 plugin_objects += $(plugins_pptp_la_OBJECTS)
135 plugins_pptp_la_SOURCES = plugins/vpn.h plugins/vpn.c \
136                                                 plugins/pptp.c
137 plugins_pptp_la_CFLAGS = $(plugin_cflags) -DPPPD=\"@PPPD@\" \
138                                         -DPPTP=\"@PPTP@\" \
139                                         -DSTATEDIR=\""$(statedir)"\" \
140                                         -DSCRIPTDIR=\""$(build_scriptdir)"\"
141 plugins_pptp_la_LDFLAGS = $(plugin_ldflags)
142 endif
143 endif
144
145 if PPTP
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@
149 else
150 if L2TP
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@
154 endif
155 endif
156
157 builtin_sources += $(builtin_vpn_sources)
158
159 if PACRUNNER
160 builtin_modules += pacrunner
161 builtin_sources += plugins/pacrunner.c
162 endif
163
164 if POLKIT
165 builtin_modules += polkit
166 builtin_sources += plugins/polkit.c
167
168 if DATAFILES
169 policydir = @POLKIT_DATADIR@
170
171 policy_DATA = plugins/net.connman.policy
172 endif
173 endif
174
175 if IWMX
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)
182 endif
183
184 if IOSPM
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)
189 endif
190
191 if OPENCONNECT
192 script_PROGRAMS += scripts/openconnect-script
193
194 scripts_openconnect_script_LDADD = @DBUS_LIBS@
195 else
196 if VPNC
197 script_PROGRAMS += scripts/openconnect-script
198
199 scripts_openconnect_script_LDADD = @DBUS_LIBS@
200 endif
201 endif
202
203 if OPENVPN
204 script_PROGRAMS += scripts/openvpn-script
205
206 scripts_openvpn_script_LDADD = @DBUS_LIBS@
207 endif
208
209 if NMCOMPAT
210 builtin_modules += nmcompat
211 builtin_sources += plugins/nmcompat.c
212 endif
213
214 if TIST
215 if TIST_BUILTIN
216 builtin_modules += tist
217 builtin_sources += plugins/tist.c
218 else
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)
223 endif
224 endif
225
226 builtin_modules += @SESSION_CONFIG_PLUGIN@
227 builtin_sources += plugins/@SESSION_CONFIG_PLUGIN@.c
228
229 EXTRA_DIST += plugins/polkit.policy
230
231 plugins/net.connman.policy: plugins/polkit.policy
232 if POLKIT
233         $(AM_V_GEN)cp $< $@
234 endif