eb7ef06be2ace53c0cf60dbb5f7407afe010e53a
[lxde/lxpanel.git] / src / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 SUBDIRS = plugins
4
5 bin_PROGRAMS = lxpanel lxpanelctl
6
7 INCLUDES = \
8         -I$(top_srcdir) \
9         -I$(top_srcdir)/src/plugins \
10         -I$(top_srcdir)/src/ptk-ui-xml \
11         -DPACKAGE_LIB_DIR=\""$(libdir)"\" \
12         -DPACKAGE_DATA_DIR=\""$(datadir)"\" \
13         -DPACKAGE_BIN_DIR=\""$(bindir)"\" \
14         -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
15         $(PACKAGE_CFLAGS) \
16         $(G_CAST_CHECKS)
17
18 BUILTIN_PLUGINS = $(top_builddir)/src/plugins/libbuiltin_plugins.a
19
20 PTK_UI_XML_SOURCES=\
21         ptk-ui-xml/ptk-ui-xml.c \
22         ptk-ui-xml/ptk-ui-xml.h \
23         ptk-ui-xml/ptk-xml-tree.c \
24         ptk-ui-xml/ptk-xml-tree.h
25
26 TRAY_SOURCES= \
27         systray/eggmarshalers.c systray/eggmarshalers.h \
28         systray/eggtraymanager.c systray/eggtraymanager.h \
29         systray/fixedtip.c systray/fixedtip.h \
30         systray/tray.c
31
32 lxpanel_SOURCES = \
33         $(PTK_UI_XML_SOURCES) \
34         glib-mem.h \
35         misc.c misc.h \
36         $(TRAY_SOURCES) \
37         bg.c bg.h  \
38         configurator.c \
39         dbg.c dbg.h \
40         ev.c ev.h \
41         gtkbar.h gtkbar.c \
42         panel.c panel.h \
43         plugin.c plugin.h \
44         gtk-run.c
45
46 if BUILD_PLUGIN_LOADER
47 DYNAMIC_FLAGS = -export-dynamic
48 endif
49 lxpanel_LDFLAGS = $(DYNAMIC_FLAGS)
50
51 lxpanel_LDADD = \
52                 $(BUILTIN_PLUGINS) \
53                 $(PACKAGE_LIBS) \
54                 $(INTLLIBS)
55
56 lxpanelctl_SOURCES = lxpanelctl.c lxpanelctl.h
57 lxpanelctl_LDADD = -lX11 $(INTLLIBS)
58
59 EXTRA_DIST = \
60         plugins/icon.xpm