Merging upstream version 0.7.0 (Closes: #493243, #510888, #567617, #699414, #709777...
[debian/lxpanel.git] / src / Makefile.am
CommitLineData
6cc5e1a6
DB
1## Process this file with automake to produce Makefile.in
2
6cc5e1a6
DB
3bin_PROGRAMS = lxpanel lxpanelctl
4
ca14ea2b 5lxpanel_CFLAGS = \
6cc5e1a6 6 -I$(top_srcdir) \
6cc5e1a6 7 -DPACKAGE_LIB_DIR=\""$(libdir)"\" \
00916e98
AG
8 -DPACKAGE_DATA_DIR=\""$(datadir)/lxpanel"\" \
9 -DPACKAGE_SYSCONF_DIR=\""$(sysconfdir)/xdg/lxpanel"\" \
1ea75322 10 -DPACKAGE_UI_DIR=\""$(datadir)/lxpanel/ui"\" \
6cc5e1a6
DB
11 -DPACKAGE_BIN_DIR=\""$(bindir)"\" \
12 -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
f8c25730 13 $(PACKAGE_CFLAGS) \
6cc5e1a6
DB
14 $(G_CAST_CHECKS)
15
00916e98 16BUILTIN_PLUGINS = $(top_builddir)/plugins/libbuiltin_plugins.a
6cc5e1a6 17
10862fa6 18if ENABLE_MENU_CACHE
00916e98 19MENU_SOURCES = menu-policy.h menu-policy.c
10862fa6
DB
20endif
21
6cc5e1a6 22lxpanel_SOURCES = \
00916e98
AG
23 misc.c \
24 gtk-run.c \
25 bg.c \
6cc5e1a6 26 configurator.c \
00916e98
AG
27 dbg.c \
28 ev.c \
29 icon-grid-old.c \
30 icon-grid.c \
31 panel.c \
32 plugin.c \
33 conf.c \
10862fa6 34 $(MENU_SOURCES)
6cc5e1a6 35
00916e98
AG
36lxpanel_includedir = $(includedir)/lxpanel
37lxpanel_include_HEADERS = \
38 plugin.h \
39 panel.h \
40 misc.h \
41 icon-grid.h \
42 conf.h
43
6cc5e1a6
DB
44if BUILD_PLUGIN_LOADER
45DYNAMIC_FLAGS = -export-dynamic
46endif
47lxpanel_LDFLAGS = $(DYNAMIC_FLAGS)
00916e98 48lxpanel_DEPENDENCIES_EXTRA = $(BUILTIN_PLUGINS)
6cc5e1a6
DB
49
50lxpanel_LDADD = \
51 $(BUILTIN_PLUGINS) \
52 $(PACKAGE_LIBS) \
ca14ea2b 53 $(X11_LIBS) \
6cc5e1a6
DB
54 $(INTLLIBS)
55
56lxpanelctl_SOURCES = lxpanelctl.c lxpanelctl.h
934ecce5 57lxpanelctl_LDADD = $(X11_LIBS) $(INTLLIBS)
6cc5e1a6
DB
58
59EXTRA_DIST = \
00916e98
AG
60 bg.h \
61 dbg.h \
62 ev.h \
63 icon-grid-old.h \
64 private.h
65
66$(top_builddir)/plugins/libbuiltin_plugins.a: $(lxpanel_include_HEADERS)
67 cd $(top_builddir)/plugins && $(MAKE) libbuiltin_plugins.a