Adding upstream version 0.9.0.
[debian/lxpanel.git] / plugins / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 ## common flags for all plugins
4 AM_CPPFLAGS = \
5         -I$(top_srcdir) \
6         -I$(top_srcdir)/src \
7         $(PACKAGE_CFLAGS) \
8         $(G_CAST_CHECKS)
9
10 AM_LDFLAGS = \
11         -module -avoid-version -shared -export-dynamic \
12         -no-undefined -rpath $(libdir)/lxpanel/plugins \
13         $(top_builddir)/src/liblxpanel.la \
14         $(PACKAGE_LIBS)
15
16 BUILT_SOURCES = $(top_builddir)/src/liblxpanel.la
17
18 $(top_builddir)/src/liblxpanel.la:
19         cd $(top_builddir)/src && $(MAKE) liblxpanel.la
20
21 ## built-in plugins
22 noinst_LIBRARIES = libbuiltin_plugins.a
23
24 libbuiltin_plugins_a_CFLAGS = \
25         -DPACKAGE_DATA_DIR=\""$(datadir)/lxpanel"\" \
26         -DPACKAGE_UI_DIR=\""$(datadir)/lxpanel/ui"\" \
27         -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\"
28
29 if ENABLE_MENU_CACHE
30 MENU_SOURCES = \
31         menu.c
32 endif
33
34 PLUGINS_SOURCES = \
35         dclock.c \
36         dirmenu.c \
37         launchtaskbar.c \
38         task-button.c \
39         launch-button.c \
40         pager.c \
41         separator.c \
42         tray.c \
43         wincmd.c \
44         $(MENU_SOURCES)
45
46 libbuiltin_plugins_a_SOURCES = \
47         $(PLUGINS_SOURCES)
48
49 libbuiltin_plugins_a_LIBADD =
50
51
52 ## loadable plugins
53 if BUILD_PLUGIN_LOADER
54 DYNAMIC_PLUGINS = \
55         $(PLUGINS_LIST)
56 endif
57
58 pkglib_LTLIBRARIES = $(DYNAMIC_PLUGINS)
59
60 EXTRA_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 \
72         weather.la \
73         xkb.la
74
75 pkglibdir = $(libdir)/lxpanel/plugins
76
77 # batt
78 batt_la_SOURCES = \
79         batt/batt.c \
80         batt/batt_sys.c
81 batt_la_CFLAGS = -I$(srcdir)/batt
82
83 # cpu
84 cpu_la_SOURCES = cpu/cpu.c
85
86 # cpufreq
87 cpufreq_la_SOURCES = cpufreq/cpufreq.c
88
89 # deskno
90 deskno_la_SOURCES = deskno/deskno.c
91
92 # indicator
93 indicator_la_SOURCES = indicator/indicator.c
94 indicator_la_CFLAGS = \
95         -DINDICATOR_DIR=\""$(INDICATORDIR)"\" \
96         -DINDICATOR_ICONS_DIR=\""$(INDICATORICONSDIR)"\" \
97         $(APPLET_CFLAGS)
98 indicator_la_LIBADD = $(APPLET_LIBS)
99
100 # kbled
101 kbled_la_SOURCES = kbled/kbled.c
102 kbled_la_LIBADD = $(X11_LIBS)
103
104 # monitors
105 monitors_la_SOURCES = monitors/monitors.c
106
107 # netstat
108 netstat_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
115 netstat_la_CFLAGS = -I$(srcdir)/netstat
116 netstat_la_LIBADD = -liw
117
118 # netstatus
119 netstatus_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
127 netstatus_la_CFLAGS = \
128         -I$(srcdir)/netstatus \
129         -DPACKAGE_UI_DIR=\""$(datadir)/lxpanel/ui"\"
130
131 # thermal
132 thermal_la_SOURCES = thermal/thermal.c
133
134 # volume
135 volume_la_SOURCES = volumealsa/volumealsa.c
136 if BUILD_ALSA_PLUGINS
137 volume_la_LIBADD = -lasound
138 endif
139
140 # weather
141 weather_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
149 weather_la_CFLAGS = \
150         -I$(srcdir)/weather \
151         $(LIBXML2_CFLAGS)
152 weather_la_LIBADD = $(LIBXML2_LIBS)
153
154 # xkb
155 xkb_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\"
160 xkb_la_SOURCES = \
161         xkb/xkb-plugin.c \
162         xkb/xkb.c
163 xkb_la_LIBADD = $(X11_LIBS)
164
165 xkeyboardconfigdir=$(datadir)/lxpanel/xkeyboardconfig
166 xkeyboardconfig_DATA = \
167         xkb/xkeyboardconfig/models.cfg \
168         xkb/xkeyboardconfig/layouts.cfg \
169         xkb/xkeyboardconfig/toggle.cfg
170
171 flagsdir=$(datadir)/lxpanel/images/xkb-flags
172 flags_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
299 EXTRA_DIST = \
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 \
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) \
325         task-button.h \
326         launch-button.h \
327         icon.xpm
328
329 install-exec-hook:
330         rm -f $(DESTDIR)$(libdir)/lxpanel/plugins/*.la
331
332 if BUILD_PLUGIN_LOADER
333 DYNAMIC_PLUGINS_INSTALLED = $(DYNAMIC_PLUGINS:.la=.so)
334 uninstall-hook:
335         cd $(DESTDIR)$(libdir)/lxpanel/plugins && rm -f $(DYNAMIC_PLUGINS_INSTALLED) || true
336 endif