Adding upstream version 0.5.9.
[debian/lxpanel.git] / src / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 SUBDIRS = plugins
4
5 bin_PROGRAMS = lxpanel lxpanelctl
6
7 lxpanel_CFLAGS = \
8         -I$(top_srcdir) \
9         -I$(top_srcdir)/include \
10         -I$(top_srcdir)/src/plugins \
11         -DPACKAGE_LIB_DIR=\""$(libdir)"\" \
12         -DPACKAGE_DATA_DIR=\""$(datadir)"\" \
13         -DPACKAGE_UI_DIR=\""$(datadir)/lxpanel/ui"\" \
14         -DPACKAGE_BIN_DIR=\""$(bindir)"\" \
15         -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
16         $(PACKAGE_CFLAGS) \
17         $(G_CAST_CHECKS)
18
19 BUILTIN_PLUGINS = $(top_builddir)/src/plugins/libbuiltin_plugins.a
20
21 if ENABLE_MENU_CACHE
22 MENU_SOURCES = gtk-run.c
23 endif
24
25 lxpanel_SOURCES = \
26         misc.c misc.h \
27         bg.c bg.h  \
28         configurator.c \
29         dbg.c dbg.h \
30         ev.c ev.h \
31         gtkbar.h gtkbar.c \
32         icon-grid.h icon-grid.c \
33         menu-policy.h menu-policy.c \
34         panel.c panel.h \
35         plugin.c plugin.h \
36         $(MENU_SOURCES)
37
38 if BUILD_PLUGIN_LOADER
39 DYNAMIC_FLAGS = -export-dynamic
40 lxpanel_includedir = $(includedir)/lxpanel
41 lxpanel_include_HEADERS = $(top_srcdir)/include/lxpanel/plugin.h
42 endif
43 lxpanel_LDFLAGS = $(DYNAMIC_FLAGS)
44
45 lxpanel_LDADD = \
46                 $(BUILTIN_PLUGINS) \
47                 $(PACKAGE_LIBS) \
48                 $(X11_LIBS) \
49                 $(INTLLIBS)
50
51 lxpanelctl_SOURCES = lxpanelctl.c lxpanelctl.h
52 lxpanelctl_LDADD = $(X11_LIBS) $(INTLLIBS)
53
54 noinst_PROGRAMS=xml-purge
55 xml_purge_SOURCES=xml-purge.c
56 xml_purge_CFLAGS=@PACKAGE_CFLAGS@
57 xml_purge_LDADD=@PACKAGE_LIBS@
58
59
60 EXTRA_DIST = \
61         plugins/icon.xpm