Replace lxpanel_CFLAGS with lxpanel_CPPFLAGS to not include them in linking.
[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
1fd5e897 5lxpanel_CPPFLAGS = \
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
2e836237 18MENU_SOURCES = menu-policy.c
ace2a572
JH
19endif
20
46c7d227
AG
21pkglib_LTLIBRARIES = liblxpanel.la
22
1fd5e897 23liblxpanel_la_CPPFLAGS = $(lxpanel_CPPFLAGS) $(KEYBINDER_CFLAGS)
46c7d227 24liblxpanel_la_SOURCES = \
b31cb1d2 25 misc.c \
a52c2257 26 configurator.c \
9fac586f
AG
27 dbg.c \
28 ev.c \
d8c2d721 29 icon-grid.c \
b31cb1d2
AG
30 panel.c \
31 plugin.c \
8a4622e5
AG
32 conf.c \
33 input-button.c
46c7d227 34
29657982
AG
35liblxpanel_la_LDFLAGS = \
36 -no-undefined \
37 -version-info 0:0:0
38
46c7d227
AG
39liblxpanel_la_LIBADD = \
40 $(PACKAGE_LIBS) \
f7a4447c 41 $(KEYBINDER_LIBS) \
46c7d227 42 $(X11_LIBS)
a52c2257 43
b31cb1d2
AG
44lxpanel_includedir = $(includedir)/lxpanel
45lxpanel_include_HEADERS = \
46 plugin.h \
47 panel.h \
48 misc.h \
d8c2d721 49 icon-grid.h \
b31cb1d2
AG
50 conf.h
51
46c7d227
AG
52lxpanel_SOURCES = \
53 icon-grid-old.c \
0234f3a2 54 bg.c \
46c7d227
AG
55 gtk-run.c \
56 main.c \
57 $(MENU_SOURCES)
58
31b80004 59if BUILD_PLUGIN_LOADER
c6780e74 60DYNAMIC_FLAGS = -export-dynamic
31b80004
JH
61endif
62lxpanel_LDFLAGS = $(DYNAMIC_FLAGS)
d609cab0 63lxpanel_DEPENDENCIES_EXTRA = $(BUILTIN_PLUGINS)
31b80004 64
7fe27201 65lxpanel_LDADD = \
46c7d227 66 liblxpanel.la \
7fe27201
JH
67 $(BUILTIN_PLUGINS) \
68 $(PACKAGE_LIBS) \
46c7d227 69 $(X11_LIBS)
a52c2257 70
8c44345a 71lxpanelctl_SOURCES = lxpanelctl.c lxpanelctl.h
46c7d227 72lxpanelctl_LDADD = $(X11_LIBS)
77886b88 73
a52c2257 74EXTRA_DIST = \
0234f3a2 75 bg.h \
9fac586f
AG
76 dbg.h \
77 ev.h \
2e836237 78 menu-policy.h \
9fac586f 79 icon-grid-old.h \
8a4622e5 80 gtk-compat.h \
9fac586f 81 private.h
d609cab0
AG
82
83$(top_builddir)/plugins/libbuiltin_plugins.a: $(lxpanel_include_HEADERS)
84 cd $(top_builddir)/plugins && $(MAKE) libbuiltin_plugins.a