8aad91790fe01e64fa095277bad85654b40777c4
[lxde/lxpanel.git] / src / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 bin_PROGRAMS = lxpanel lxpanelctl
4
5 lxpanel_CFLAGS = \
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 lxpanel_SOURCES = \
22         misc.c \
23         gtk-run.c \
24         bg.c \
25         configurator.c \
26         dbg.c \
27         ev.c \
28         icon-grid-old.c \
29         icon-grid.c \
30         panel.c \
31         plugin.c \
32         conf.c \
33         $(MENU_SOURCES)
34
35 lxpanel_includedir = $(includedir)/lxpanel
36 lxpanel_include_HEADERS = \
37         plugin.h \
38         panel.h \
39         misc.h \
40         icon-grid.h \
41         conf.h
42
43 if BUILD_PLUGIN_LOADER
44 DYNAMIC_FLAGS = -export-dynamic
45 endif
46 lxpanel_LDFLAGS = $(DYNAMIC_FLAGS)
47 lxpanel_DEPENDENCIES_EXTRA = $(BUILTIN_PLUGINS)
48
49 lxpanel_LDADD = \
50                 $(BUILTIN_PLUGINS) \
51                 $(PACKAGE_LIBS) \
52                 $(X11_LIBS) \
53                 $(INTLLIBS)
54
55 lxpanelctl_SOURCES = lxpanelctl.c lxpanelctl.h
56 lxpanelctl_LDADD = $(X11_LIBS) $(INTLLIBS)
57
58 EXTRA_DIST = \
59         bg.h \
60         dbg.h \
61         ev.h \
62         menu-policy.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