Use XDG standard paths for fallback (default) settings.
[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 lxpanel_CFLAGS = \
8         -I$(top_srcdir) \
9         -I$(top_srcdir)/include \
10         -I$(top_srcdir)/src/plugins \
11         -DPACKAGE_LIB_DIR=\""$(libdir)"\" \
12         -DPACKAGE_DATA_DIR=\""$(datadir)/lxpanel"\" \
13         -DPACKAGE_SYSCONF_DIR=\""$(sysconfdir)/xdg/lxpanel"\" \
14         -DPACKAGE_UI_DIR=\""$(datadir)/lxpanel/ui"\" \
15         -DPACKAGE_BIN_DIR=\""$(bindir)"\" \
16         -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
17         $(PACKAGE_CFLAGS) \
18         $(G_CAST_CHECKS)
19
20 BUILTIN_PLUGINS = $(top_builddir)/src/plugins/libbuiltin_plugins.a
21
22 if ENABLE_MENU_CACHE
23 MENU_SOURCES = gtk-run.c
24 endif
25
26 lxpanel_SOURCES = \
27         misc.c \
28         bg.c bg.h  \
29         configurator.c \
30         dbg.c dbg.h \
31         ev.c ev.h \
32         gtkbar.h gtkbar.c \
33         icon-grid.c \
34         menu-policy.h menu-policy.c \
35         panel.c \
36         plugin.c \
37         private.h \
38         conf.c \
39         $(MENU_SOURCES)
40
41 lxpanel_includedir = $(includedir)/lxpanel
42 lxpanel_include_HEADERS = \
43         plugin.h \
44         panel.h \
45         misc.h \
46         icon-grid.h \
47         conf.h
48
49 if BUILD_PLUGIN_LOADER
50 DYNAMIC_FLAGS = -export-dynamic
51 endif
52 lxpanel_LDFLAGS = $(DYNAMIC_FLAGS)
53
54 lxpanel_LDADD = \
55                 $(BUILTIN_PLUGINS) \
56                 $(PACKAGE_LIBS) \
57                 $(X11_LIBS) \
58                 $(INTLLIBS)
59
60 lxpanelctl_SOURCES = lxpanelctl.c lxpanelctl.h
61 lxpanelctl_LDADD = $(X11_LIBS) $(INTLLIBS)
62
63 EXTRA_DIST = \
64         plugins/icon.xpm