Allow build without libmenu-cache.
[lxde/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 INCLUDES = \
15         -I$(top_srcdir) \
16         -I$(top_srcdir)/src \
17         -I$(top_srcdir)/src/plugins \
18         -DPACKAGE_DATA_DIR=\""$(datadir)"\" \
19         -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
20         $(PACKAGE_CFLAGS) \
21         $(G_CAST_CHECKS)
22
23 if ENABLE_MENU_CACHE
24 MENU_SOURCES = \
25         menu.c
26 endif
27
28 PLUGINS_SOURCES = \
29         launchbar.c \
30         taskbar.c \
31         dclock.c \
32         $(MENU_SOURCES) \
33         separator.c \
34         pager.c \
35         space.c \
36         wincmd.c \
37         dirmenu.c
38
39 libbuiltin_plugins_a_SOURCES = \
40         $(PLUGINS_SOURCES)
41
42 libbuiltin_plugins_a_LIBADD =
43
44 EXTRA_DIST = \
45         icon.xpm
46
47 install-exec-hook:
48         rm -f $(DESTDIR)$(libdir)/lxpanel/plugins/*.la
49         rm -f $(DESTDIR)$(libdir)/lxpanel/plugins/*.a
50         rm -f $(DESTDIR)$(libdir)/lxpanel/plugins/*.