Allow build without libmenu-cache.
[lxde/lxpanel.git] / src / Makefile.am
CommitLineData
a52c2257
HJYP
1## Process this file with automake to produce Makefile.in
2
7fe27201 3SUBDIRS = plugins
1141e22a 4
77886b88 5bin_PROGRAMS = lxpanel lxpanelctl
a52c2257
HJYP
6
7INCLUDES = \
8 -I$(top_srcdir) \
4b93d81e 9 -I$(top_srcdir)/src/plugins \
5e491017 10 -DPACKAGE_LIB_DIR=\""$(libdir)"\" \
a52c2257 11 -DPACKAGE_DATA_DIR=\""$(datadir)"\" \
e1a386fe 12 -DPACKAGE_BIN_DIR=\""$(bindir)"\" \
a52c2257 13 -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
ace2a572 14 $(PACKAGE_CFLAGS)
535ac098 15 $(G_CAST_CHECKS)
a52c2257 16
7fe27201 17BUILTIN_PLUGINS = $(top_builddir)/src/plugins/libbuiltin_plugins.a
a52c2257
HJYP
18
19TRAY_SOURCES= \
20 systray/eggmarshalers.c systray/eggmarshalers.h \
21 systray/eggtraymanager.c systray/eggtraymanager.h \
c6780e74 22 systray/fixedtip.c systray/fixedtip.h \
a52c2257
HJYP
23 systray/tray.c
24
ace2a572
JH
25if ENABLE_MENU_CACHE
26MENU_SOURCES = gtk-run.c
27endif
28
a52c2257 29lxpanel_SOURCES = \
1dac04fb 30 glib-mem.h \
a52c2257 31 misc.c misc.h \
a52c2257
HJYP
32 $(TRAY_SOURCES) \
33 bg.c bg.h \
34 configurator.c \
35 dbg.c dbg.h \
36 ev.c ev.h \
37 gtkbar.h gtkbar.c \
a52c2257 38 panel.c panel.h \
08ea5341 39 plugin.c plugin.h \
ace2a572 40 $(MENU_SOURCES)
a52c2257 41
31b80004 42if BUILD_PLUGIN_LOADER
c6780e74 43DYNAMIC_FLAGS = -export-dynamic
f5c43b11
FC
44lxpanel_includedir = $(includedir)/lxpanel
45lxpanel_include_HEADERS = \
46 bg.h \
47 dbg.h \
48 ev.h \
49 misc.h \
50 panel.h \
a0e01718 51 glib-mem.h \
f5c43b11 52 plugin.h
31b80004
JH
53endif
54lxpanel_LDFLAGS = $(DYNAMIC_FLAGS)
55
7fe27201
JH
56lxpanel_LDADD = \
57 $(BUILTIN_PLUGINS) \
58 $(PACKAGE_LIBS) \
59 $(INTLLIBS)
a52c2257 60
8c44345a 61lxpanelctl_SOURCES = lxpanelctl.c lxpanelctl.h
77886b88
HJYP
62lxpanelctl_LDADD = -lX11 $(INTLLIBS)
63
f1286efa
HJYP
64noinst_PROGRAMS=xml-purge
65xml_purge_SOURCES=xml-purge.c
66xml_purge_CFLAGS=@PACKAGE_CFLAGS@
67xml_purge_LDADD=@PACKAGE_LIBS@
68
69
a52c2257
HJYP
70EXTRA_DIST = \
71 plugins/icon.xpm