Fix icon grid compilation with GTK+ < 2.20.
[lxde/lxpanel.git] / src / Makefile.am
CommitLineData
a52c2257
HJYP
1## Process this file with automake to produce Makefile.in
2
77886b88 3bin_PROGRAMS = lxpanel lxpanelctl
a52c2257 4
788bd0c6 5lxpanel_CFLAGS = \
a52c2257 6 -I$(top_srcdir) \
5e491017 7 -DPACKAGE_LIB_DIR=\""$(libdir)"\" \
0b806437 8 -DPACKAGE_DATA_DIR=\""$(datadir)/lxpanel"\" \
43fedc4f 9 -DPACKAGE_UI_DIR=\""$(datadir)/lxpanel/ui"\" \
e1a386fe 10 -DPACKAGE_BIN_DIR=\""$(bindir)"\" \
a52c2257 11 -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
2ae466ab 12 $(PACKAGE_CFLAGS) \
535ac098 13 $(G_CAST_CHECKS)
a52c2257 14
d609cab0 15BUILTIN_PLUGINS = $(top_builddir)/plugins/libbuiltin_plugins.a
a52c2257 16
ace2a572 17if ENABLE_MENU_CACHE
4a43a4ad 18MENU_SOURCES = menu-policy.h menu-policy.c
ace2a572
JH
19endif
20
a52c2257 21lxpanel_SOURCES = \
b31cb1d2 22 misc.c \
4a43a4ad 23 gtk-run.c \
9fac586f 24 bg.c \
a52c2257 25 configurator.c \
9fac586f
AG
26 dbg.c \
27 ev.c \
28 icon-grid-old.c \
d8c2d721 29 icon-grid.c \
b31cb1d2
AG
30 panel.c \
31 plugin.c \
b31cb1d2 32 conf.c \
ace2a572 33 $(MENU_SOURCES)
a52c2257 34
b31cb1d2
AG
35lxpanel_includedir = $(includedir)/lxpanel
36lxpanel_include_HEADERS = \
37 plugin.h \
38 panel.h \
39 misc.h \
d8c2d721 40 icon-grid.h \
b31cb1d2
AG
41 conf.h
42
31b80004 43if BUILD_PLUGIN_LOADER
c6780e74 44DYNAMIC_FLAGS = -export-dynamic
31b80004
JH
45endif
46lxpanel_LDFLAGS = $(DYNAMIC_FLAGS)
d609cab0 47lxpanel_DEPENDENCIES_EXTRA = $(BUILTIN_PLUGINS)
31b80004 48
7fe27201
JH
49lxpanel_LDADD = \
50 $(BUILTIN_PLUGINS) \
51 $(PACKAGE_LIBS) \
1ba232d2 52 $(X11_LIBS) \
7fe27201 53 $(INTLLIBS)
a52c2257 54
8c44345a 55lxpanelctl_SOURCES = lxpanelctl.c lxpanelctl.h
9bf13ef5 56lxpanelctl_LDADD = $(X11_LIBS) $(INTLLIBS)
77886b88 57
a52c2257 58EXTRA_DIST = \
9fac586f
AG
59 bg.h \
60 dbg.h \
61 ev.h \
62 icon-grid-old.h \
63 private.h
d609cab0
AG
64
65$(top_builddir)/plugins/libbuiltin_plugins.a: $(lxpanel_include_HEADERS)
66 cd $(top_builddir)/plugins && $(MAKE) libbuiltin_plugins.a