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