Adding upstream version 0.8.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) \
6cc5e1a6
DB
13 $(G_CAST_CHECKS)
14
6b775dbb 15BUILTIN_PLUGINS = $(top_builddir)/plugins/libbuiltin_plugins.a
6cc5e1a6 16
7486d297 17if ENABLE_MENU_CACHE
19ab5cea 18MENU_SOURCES = menu-policy.c
7486d297
DB
19endif
20
f7ecd6ce
AG
21pkglib_LTLIBRARIES = liblxpanel.la
22
23liblxpanel_la_CPPFLAGS = $(lxpanel_CPPFLAGS) $(KEYBINDER_CFLAGS)
24liblxpanel_la_SOURCES = \
6b775dbb 25 misc.c \
6cc5e1a6 26 configurator.c \
6b775dbb
AG
27 dbg.c \
28 ev.c \
6b775dbb
AG
29 icon-grid.c \
30 panel.c \
31 plugin.c \
32 conf.c \
f7ecd6ce
AG
33 input-button.c
34
35liblxpanel_la_LDFLAGS = \
36 -no-undefined \
37 -version-info 0:0:0
38
39liblxpanel_la_LIBADD = \
40 $(PACKAGE_LIBS) \
41 $(KEYBINDER_LIBS) \
42 $(X11_LIBS)
6cc5e1a6 43
6b775dbb
AG
44lxpanel_includedir = $(includedir)/lxpanel
45lxpanel_include_HEADERS = \
46 plugin.h \
47 panel.h \
48 misc.h \
49 icon-grid.h \
50 conf.h
51
f7ecd6ce
AG
52lxpanel_SOURCES = \
53 icon-grid-old.c \
54 bg.c \
55 gtk-run.c \
56 main.c \
57 $(MENU_SOURCES)
58
6cc5e1a6
DB
59if BUILD_PLUGIN_LOADER
60DYNAMIC_FLAGS = -export-dynamic
61endif
62lxpanel_LDFLAGS = $(DYNAMIC_FLAGS)
6b775dbb 63lxpanel_DEPENDENCIES_EXTRA = $(BUILTIN_PLUGINS)
6cc5e1a6
DB
64
65lxpanel_LDADD = \
f7ecd6ce 66 liblxpanel.la \
6cc5e1a6
DB
67 $(BUILTIN_PLUGINS) \
68 $(PACKAGE_LIBS) \
f7ecd6ce 69 $(X11_LIBS)
6cc5e1a6
DB
70
71lxpanelctl_SOURCES = lxpanelctl.c lxpanelctl.h
f7ecd6ce 72lxpanelctl_LDADD = $(X11_LIBS)
6cc5e1a6
DB
73
74EXTRA_DIST = \
6b775dbb
AG
75 bg.h \
76 dbg.h \
77 ev.h \
19ab5cea 78 menu-policy.h \
6b775dbb 79 icon-grid-old.h \
f7ecd6ce 80 gtk-compat.h \
6b775dbb
AG
81 private.h
82
83$(top_builddir)/plugins/libbuiltin_plugins.a: $(lxpanel_include_HEADERS)
84 cd $(top_builddir)/plugins && $(MAKE) libbuiltin_plugins.a