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