Merging upstream version 0.5.9.
[debian/lxpanel.git] / src / plugins / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 DIST_SUBDIRS=$(ALL_PLUGINS_LIST)
4
5 if BUILD_PLUGIN_LOADER
6 DYNAMIC_PLUGINS = \
7         $(PLUGINS_LIST)
8 endif
9
10 SUBDIRS = $(DYNAMIC_PLUGINS)
11
12 noinst_LIBRARIES = libbuiltin_plugins.a
13
14 libbuiltin_plugins_a_CFLAGS = \
15         -I$(top_srcdir) \
16         -I$(top_srcdir)/include \
17         -I$(top_srcdir)/src \
18         -I$(top_srcdir)/src/plugins \
19         -DPACKAGE_DATA_DIR=\""$(datadir)"\" \
20         -DPACKAGE_UI_DIR=\""$(datadir)/lxpanel/ui"\" \
21         -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
22         $(PACKAGE_CFLAGS) \
23         $(G_CAST_CHECKS)
24
25 if ENABLE_MENU_CACHE
26 MENU_SOURCES = \
27         menu.c
28 endif
29
30 PLUGINS_SOURCES = \
31         dclock.c \
32         dirmenu.c \
33         image.c \
34         launchbar.c \
35         pager.c \
36         separator.c \
37         space.c \
38         taskbar.c \
39         tray.c \
40         wincmd.c \
41         $(MENU_SOURCES)
42
43 libbuiltin_plugins_a_SOURCES = \
44         $(PLUGINS_SOURCES)
45
46 libbuiltin_plugins_a_LIBADD =
47
48 EXTRA_DIST = \
49         icon.xpm
50
51 install-exec-hook:
52         rm -f $(DESTDIR)$(libdir)/lxpanel/plugins/*.la
53         rm -f $(DESTDIR)$(libdir)/lxpanel/plugins/*.a
54         rm -f $(DESTDIR)$(libdir)/lxpanel/plugins/*.