export headers and pkg-config for plugin development.
[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         -DPACKAGE_LIB_DIR=\""$(libdir)"\" \
11         -DPACKAGE_DATA_DIR=\""$(datadir)"\" \
12         -DPACKAGE_BIN_DIR=\""$(bindir)"\" \
13         -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
14         $(PACKAGE_CFLAGS) \
15         $(G_CAST_CHECKS)
16
17 BUILTIN_PLUGINS = $(top_builddir)/src/plugins/libbuiltin_plugins.a
18
19 TRAY_SOURCES= \
20         systray/eggmarshalers.c systray/eggmarshalers.h \
21         systray/eggtraymanager.c systray/eggtraymanager.h \
22         systray/fixedtip.c systray/fixedtip.h \
23         systray/tray.c
24
25 lxpanel_SOURCES = \
26         glib-mem.h \
27         misc.c misc.h \
28         $(TRAY_SOURCES) \
29         bg.c bg.h  \
30         configurator.c \
31         dbg.c dbg.h \
32         ev.c ev.h \
33         gtkbar.h gtkbar.c \
34         panel.c panel.h \
35         plugin.c plugin.h \
36         gtk-run.c
37
38 if BUILD_PLUGIN_LOADER
39 DYNAMIC_FLAGS = -export-dynamic
40 lxpanel_includedir = $(includedir)/lxpanel
41 lxpanel_include_HEADERS = \
42         bg.h \
43         dbg.h \
44         ev.h \
45         misc.h \
46         panel.h \
47         plugin.h
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 noinst_PROGRAMS=xml-purge
60 xml_purge_SOURCES=xml-purge.c
61 xml_purge_CFLAGS=@PACKAGE_CFLAGS@
62 xml_purge_LDADD=@PACKAGE_LIBS@
63
64
65 EXTRA_DIST = \
66         plugins/icon.xpm