Adding upstream version 0.9.0.
[debian/lxpanel.git] / plugins / Makefile.am
CommitLineData
6cc5e1a6
DB
1## Process this file with automake to produce Makefile.in
2
19ab5cea
AG
3## common flags for all plugins
4AM_CPPFLAGS = \
5 -I$(top_srcdir) \
6 -I$(top_srcdir)/src \
7 $(PACKAGE_CFLAGS) \
8 $(G_CAST_CHECKS)
6cc5e1a6 9
19ab5cea 10AM_LDFLAGS = \
f7ecd6ce
AG
11 -module -avoid-version -shared -export-dynamic \
12 -no-undefined -rpath $(libdir)/lxpanel/plugins \
13 $(top_builddir)/src/liblxpanel.la \
19ab5cea 14 $(PACKAGE_LIBS)
6cc5e1a6 15
8713e384
AG
16BUILT_SOURCES = $(top_builddir)/src/liblxpanel.la
17
f7ecd6ce
AG
18$(top_builddir)/src/liblxpanel.la:
19 cd $(top_builddir)/src && $(MAKE) liblxpanel.la
6cc5e1a6 20
19ab5cea 21## built-in plugins
6cc5e1a6
DB
22noinst_LIBRARIES = libbuiltin_plugins.a
23
cb7f7ba8 24libbuiltin_plugins_a_CFLAGS = \
6b775dbb 25 -DPACKAGE_DATA_DIR=\""$(datadir)/lxpanel"\" \
2ba86315 26 -DPACKAGE_UI_DIR=\""$(datadir)/lxpanel/ui"\" \
19ab5cea 27 -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\"
6cc5e1a6 28
7486d297
DB
29if ENABLE_MENU_CACHE
30MENU_SOURCES = \
31 menu.c
32endif
33
34PLUGINS_SOURCES = \
6cc5e1a6 35 dclock.c \
514580cf 36 dirmenu.c \
6b775dbb 37 launchtaskbar.c \
7a1c5048
AG
38 task-button.c \
39 launch-button.c \
6cc5e1a6 40 pager.c \
514580cf 41 separator.c \
514580cf 42 tray.c \
6cc5e1a6 43 wincmd.c \
514580cf 44 $(MENU_SOURCES)
6cc5e1a6
DB
45
46libbuiltin_plugins_a_SOURCES = \
47 $(PLUGINS_SOURCES)
48
49libbuiltin_plugins_a_LIBADD =
50
19ab5cea
AG
51
52## loadable plugins
53if BUILD_PLUGIN_LOADER
54DYNAMIC_PLUGINS = \
55 $(PLUGINS_LIST)
56endif
57
58pkglib_LTLIBRARIES = $(DYNAMIC_PLUGINS)
59
60EXTRA_LTLIBRARIES = \
61 batt.la \
62 cpu.la \
63 cpufreq.la \
64 deskno.la \
65 indicator.la \
66 kbled.la \
67 monitors.la \
68 netstat.la \
69 netstatus.la \
70 thermal.la \
71 volume.la \
19ab5cea
AG
72 weather.la \
73 xkb.la
74
75pkglibdir = $(libdir)/lxpanel/plugins
76
77# batt
78batt_la_SOURCES = \
79 batt/batt.c \
80 batt/batt_sys.c
81batt_la_CFLAGS = -I$(srcdir)/batt
19ab5cea
AG
82
83# cpu
84cpu_la_SOURCES = cpu/cpu.c
19ab5cea
AG
85
86# cpufreq
87cpufreq_la_SOURCES = cpufreq/cpufreq.c
19ab5cea
AG
88
89# deskno
90deskno_la_SOURCES = deskno/deskno.c
19ab5cea
AG
91
92# indicator
93indicator_la_SOURCES = indicator/indicator.c
94indicator_la_CFLAGS = \
95 -DINDICATOR_DIR=\""$(INDICATORDIR)"\" \
96 -DINDICATOR_ICONS_DIR=\""$(INDICATORICONSDIR)"\" \
97 $(APPLET_CFLAGS)
f7ecd6ce 98indicator_la_LIBADD = $(APPLET_LIBS)
19ab5cea
AG
99
100# kbled
101kbled_la_SOURCES = kbled/kbled.c
f7ecd6ce 102kbled_la_LIBADD = $(X11_LIBS)
19ab5cea
AG
103
104# monitors
105monitors_la_SOURCES = monitors/monitors.c
19ab5cea
AG
106
107# netstat
108netstat_la_SOURCES = \
109 netstat/netstat.c \
110 netstat/devproc.c \
111 netstat/statusicon.c \
112 netstat/wireless.c \
113 netstat/lxnm_client.c \
114 netstat/passwd_gui.c
f7ecd6ce
AG
115netstat_la_CFLAGS = -I$(srcdir)/netstat
116netstat_la_LIBADD = -liw
19ab5cea
AG
117
118# netstatus
119netstatus_la_SOURCES = \
120 netstatus/netstatus.c \
121 netstatus/netstatus-dialog.c \
122 netstatus/netstatus-enums.c \
123 netstatus/netstatus-icon.c \
124 netstatus/netstatus-iface.c \
125 netstatus/netstatus-sysdeps.c \
126 netstatus/netstatus-util.c
127netstatus_la_CFLAGS = \
128 -I$(srcdir)/netstatus \
19ab5cea 129 -DPACKAGE_UI_DIR=\""$(datadir)/lxpanel/ui"\"
19ab5cea
AG
130
131# thermal
132thermal_la_SOURCES = thermal/thermal.c
19ab5cea 133
7a1c5048
AG
134# volume
135volume_la_SOURCES = volumealsa/volumealsa.c
136if BUILD_ALSA_PLUGINS
137volume_la_LIBADD = -lasound
138endif
19ab5cea
AG
139
140# weather
141weather_la_SOURCES = \
142 weather/logutil.c \
143 weather/httputil.c \
144 weather/yahooutil.c \
145 weather/location.c \
146 weather/forecast.c \
147 weather/weatherwidget.c \
148 weather/weather.c
149weather_la_CFLAGS = \
150 -I$(srcdir)/weather \
151 $(LIBXML2_CFLAGS)
f7ecd6ce 152weather_la_LIBADD = $(LIBXML2_LIBS)
19ab5cea
AG
153
154# xkb
155xkb_la_CFLAGS = \
156 -I$(srcdir)/xkb \
157 -DFLAGSDIR=\"$(datadir)/lxpanel/images/xkb-flags\" \
158 -DFLAGSCUSTDIR=\"$(datadir)/lxpanel/images/xkb-flags-cust\" \
159 -DXKBCONFDIR=\"$(datadir)/lxpanel/xkeyboardconfig\"
160xkb_la_SOURCES = \
161 xkb/xkb-plugin.c \
162 xkb/xkb.c
f7ecd6ce 163xkb_la_LIBADD = $(X11_LIBS)
19ab5cea
AG
164
165xkeyboardconfigdir=$(datadir)/lxpanel/xkeyboardconfig
166xkeyboardconfig_DATA = \
167 xkb/xkeyboardconfig/models.cfg \
168 xkb/xkeyboardconfig/layouts.cfg \
169 xkb/xkeyboardconfig/toggle.cfg
170
171flagsdir=$(datadir)/lxpanel/images/xkb-flags
172flags_DATA= \
173 xkb/flags/ad.png \
174 xkb/flags/ae.png \
175 xkb/flags/af.png \
176 xkb/flags/al.png \
177 xkb/flags/am.png \
178 xkb/flags/ar.png \
179 xkb/flags/ara.png \
180 xkb/flags/at.png \
181 xkb/flags/az.png \
182 xkb/flags/ba.png \
183 xkb/flags/bd.png \
184 xkb/flags/be.png \
185 xkb/flags/ben.png \
186 xkb/flags/bg.png \
187 xkb/flags/bh.png \
188 xkb/flags/br.png \
189 xkb/flags/brai.png \
190 xkb/flags/bt.png \
191 xkb/flags/bw.png \
192 xkb/flags/by.png \
193 xkb/flags/ca.png \
194 xkb/flags/cd.png \
195 xkb/flags/ch.png \
196 xkb/flags/cm.png \
197 xkb/flags/cn.png \
198 xkb/flags/cu.png \
199 xkb/flags/cz.png \
200 xkb/flags/de.png \
201 xkb/flags/dev.png \
202 xkb/flags/dj.png \
203 xkb/flags/dk.png \
204 xkb/flags/dvorak.png \
205 xkb/flags/dz.png \
206 xkb/flags/ee.png \
207 xkb/flags/eg.png \
208 xkb/flags/epo.png \
209 xkb/flags/es.png \
210 xkb/flags/et.png \
211 xkb/flags/eu.png \
212 xkb/flags/fi.png \
213 xkb/flags/fo.png \
214 xkb/flags/fr.png \
215 xkb/flags/gb.png \
216 xkb/flags/ge.png \
217 xkb/flags/gh.png \
218 xkb/flags/gn.png \
219 xkb/flags/gr.png \
220 xkb/flags/hr.png \
221 xkb/flags/hu.png \
222 xkb/flags/ie.png \
223 xkb/flags/il.png \
224 xkb/flags/in.png \
225 xkb/flags/iq.png \
226 xkb/flags/ir.png \
227 xkb/flags/is.png \
228 xkb/flags/it.png \
229 xkb/flags/jo.png \
230 xkb/flags/jp.png \
231 xkb/flags/ke.png \
232 xkb/flags/kg.png \
233 xkb/flags/kh.png \
234 xkb/flags/km.png \
235 xkb/flags/kp.png \
236 xkb/flags/kr.png \
237 xkb/flags/kw.png \
238 xkb/flags/kz.png \
239 xkb/flags/la.png \
240 xkb/flags/latam.png \
241 xkb/flags/lb.png \
242 xkb/flags/lk.png \
243 xkb/flags/lt.png \
244 xkb/flags/lv.png \
245 xkb/flags/ly.png \
246 xkb/flags/ma.png \
247 xkb/flags/mao.png \
248 xkb/flags/me.png \
249 xkb/flags/mk.png \
250 xkb/flags/ml.png \
251 xkb/flags/mm.png \
252 xkb/flags/mn.png \
253 xkb/flags/mt.png \
254 xkb/flags/mv.png \
255 xkb/flags/mx.png \
256 xkb/flags/nec_vndr-jp.png \
257 xkb/flags/ng.png \
258 xkb/flags/nl.png \
259 xkb/flags/no.png \
260 xkb/flags/np.png \
261 xkb/flags/om.png \
262 xkb/flags/ph.png \
263 xkb/flags/pk.png \
264 xkb/flags/pl.png \
265 xkb/flags/ps.png \
266 xkb/flags/pt.png \
267 xkb/flags/qa.png \
268 xkb/flags/qc.png \
269 xkb/flags/ro.png \
270 xkb/flags/rs.png \
271 xkb/flags/ru.png \
272 xkb/flags/sa.png \
273 xkb/flags/sd.png \
274 xkb/flags/se.png \
275 xkb/flags/si.png \
276 xkb/flags/sk.png \
277 xkb/flags/sn.png \
278 xkb/flags/so.png \
279 xkb/flags/sr.png \
280 xkb/flags/sy.png \
281 xkb/flags/th.png \
282 xkb/flags/tj.png \
283 xkb/flags/tm.png \
284 xkb/flags/tn.png \
285 xkb/flags/tr.png \
286 xkb/flags/tw.png \
287 xkb/flags/tz.png \
288 xkb/flags/ua.png \
289 xkb/flags/uk.png \
290 xkb/flags/us.png \
291 xkb/flags/un.png \
292 xkb/flags/uy.png \
293 xkb/flags/uz.png \
294 xkb/flags/vn.png \
295 xkb/flags/ye.png \
296 xkb/flags/yu.png \
297 xkb/flags/za.png
298
6cc5e1a6 299EXTRA_DIST = \
19ab5cea
AG
300 batt/batt_sys.h \
301 netstat/netstat.h \
302 netstat/nsconfig.h \
303 netstat/devproc.h \
304 netstat/statusicon.h \
305 netstat/wireless.h \
306 netstat/lxnm_client.h \
307 netstat/passwd_gui.h \
308 netstatus/COPYING \
309 netstatus/netstatus-dialog.h \
310 netstatus/netstatus-enums.h \
311 netstatus/netstatus-fallback-pixbuf.h \
312 netstatus/netstatus-icon.h \
313 netstatus/netstatus-iface.h \
314 netstatus/netstatus-sysdeps.h \
315 netstatus/netstatus-util.h \
19ab5cea
AG
316 weather/logutil.h \
317 weather/httputil.h \
318 weather/yahooutil.h \
319 weather/location.h \
320 weather/forecast.h \
321 weather/weatherwidget.h \
322 xkb/xkb.h \
323 $(flags_DATA) \
324 $(xkeyboardconfig_DATA) \
7a1c5048
AG
325 task-button.h \
326 launch-button.h \
6cc5e1a6
DB
327 icon.xpm
328
329install-exec-hook:
330 rm -f $(DESTDIR)$(libdir)/lxpanel/plugins/*.la
19ab5cea
AG
331
332if BUILD_PLUGIN_LOADER
333DYNAMIC_PLUGINS_INSTALLED = $(DYNAMIC_PLUGINS:.la=.so)
334uninstall-hook:
335 cd $(DESTDIR)$(libdir)/lxpanel/plugins && rm -f $(DYNAMIC_PLUGINS_INSTALLED) || true
336endif