Adding upstream version 0.9.0.
[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
f7ecd6ce 5lxpanel_CPPFLAGS = \
6cc5e1a6 6 -I$(top_srcdir) \
6cc5e1a6 7 -DPACKAGE_LIB_DIR=\""$(libdir)"\" \
6b775dbb 8 -DPACKAGE_DATA_DIR=\""$(datadir)/lxpanel"\" \
2ba86315 9 -DPACKAGE_UI_DIR=\""$(datadir)/lxpanel/ui"\" \
6cc5e1a6
DB
10 -DPACKAGE_BIN_DIR=\""$(bindir)"\" \
11 -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
514580cf 12 $(PACKAGE_CFLAGS) \
7a1c5048 13 $(KEYBINDER_CFLAGS) \
6cc5e1a6
DB
14 $(G_CAST_CHECKS)
15
6b775dbb 16BUILTIN_PLUGINS = $(top_builddir)/plugins/libbuiltin_plugins.a
6cc5e1a6 17
7486d297 18if ENABLE_MENU_CACHE
19ab5cea 19MENU_SOURCES = menu-policy.c
7486d297
DB
20endif
21
f7ecd6ce
AG
22pkglib_LTLIBRARIES = liblxpanel.la
23
7a1c5048 24liblxpanel_la_CPPFLAGS = $(lxpanel_CPPFLAGS)
f7ecd6ce 25liblxpanel_la_SOURCES = \
6b775dbb 26 misc.c \
6cc5e1a6 27 configurator.c \
6b775dbb
AG
28 dbg.c \
29 ev.c \
6b775dbb
AG
30 icon-grid.c \
31 panel.c \
7a1c5048 32 panel-plugin-move.c \
6b775dbb
AG
33 plugin.c \
34 conf.c \
7a1c5048 35 space.c \
f7ecd6ce
AG
36 input-button.c
37
38liblxpanel_la_LDFLAGS = \
39 -no-undefined \
40 -version-info 0:0:0
41
42liblxpanel_la_LIBADD = \
43 $(PACKAGE_LIBS) \
44 $(KEYBINDER_LIBS) \
45 $(X11_LIBS)
6cc5e1a6 46
6b775dbb
AG
47lxpanel_includedir = $(includedir)/lxpanel
48lxpanel_include_HEADERS = \
49 plugin.h \
50 panel.h \
51 misc.h \
52 icon-grid.h \
53 conf.h
54
f7ecd6ce
AG
55lxpanel_SOURCES = \
56 icon-grid-old.c \
57 bg.c \
58 gtk-run.c \
59 main.c \
60 $(MENU_SOURCES)
61
6cc5e1a6
DB
62if BUILD_PLUGIN_LOADER
63DYNAMIC_FLAGS = -export-dynamic
64endif
65lxpanel_LDFLAGS = $(DYNAMIC_FLAGS)
66
67lxpanel_LDADD = \
f7ecd6ce 68 liblxpanel.la \
6cc5e1a6
DB
69 $(BUILTIN_PLUGINS) \
70 $(PACKAGE_LIBS) \
7a1c5048 71 $(KEYBINDER_LIBS) \
f7ecd6ce 72 $(X11_LIBS)
6cc5e1a6
DB
73
74lxpanelctl_SOURCES = lxpanelctl.c lxpanelctl.h
f7ecd6ce 75lxpanelctl_LDADD = $(X11_LIBS)
6cc5e1a6
DB
76
77EXTRA_DIST = \
6b775dbb
AG
78 bg.h \
79 dbg.h \
80 ev.h \
19ab5cea 81 menu-policy.h \
6b775dbb 82 icon-grid-old.h \
f7ecd6ce 83 gtk-compat.h \
7a1c5048 84 space.h \
6b775dbb
AG
85 private.h
86
0688b017
AG
87$(top_builddir)/plugins/libbuiltin_plugins.a: $(lxpanel_include_HEADERS) builtin-plugins-hook
88
89# re-check local modules so it is refreshed for lxpanel binary
90builtin-plugins-hook:
91 @cd $(top_builddir)/plugins && $(MAKE) libbuiltin_plugins.a
92
93.PHONY: builtin-plugins-hook