New API lxpanel_apply_hotkey() as a convenient interface to libkeybinder.
[lxde/lxpanel.git] / src / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 bin_PROGRAMS = lxpanel lxpanelctl
4
5 lxpanel_CFLAGS = \
6         -I$(top_srcdir) \
7         -DPACKAGE_LIB_DIR=\""$(libdir)"\" \
8         -DPACKAGE_DATA_DIR=\""$(datadir)/lxpanel"\" \
9         -DPACKAGE_UI_DIR=\""$(datadir)/lxpanel/ui"\" \
10         -DPACKAGE_BIN_DIR=\""$(bindir)"\" \
11         -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
12         $(PACKAGE_CFLAGS) \
13         $(G_CAST_CHECKS)
14
15 BUILTIN_PLUGINS = $(top_builddir)/plugins/libbuiltin_plugins.a
16
17 if ENABLE_MENU_CACHE
18 MENU_SOURCES = menu-policy.c
19 endif
20
21 pkglib_LTLIBRARIES = liblxpanel.la
22
23 liblxpanel_la_CFLAGS = $(lxpanel_CFLAGS) $(KEYBINDER_CFLAGS)
24 liblxpanel_la_SOURCES = \
25         misc.c \
26         bg.c \
27         configurator.c \
28         dbg.c \
29         ev.c \
30         icon-grid.c \
31         panel.c \
32         plugin.c \
33         conf.c \
34         input-button.c
35
36 liblxpanel_la_LDFLAGS = \
37         -no-undefined \
38         -version-info 0:0:0
39
40 liblxpanel_la_LIBADD = \
41         $(PACKAGE_LIBS) \
42         $(KEYBINDER_LIBS) \
43         $(X11_LIBS)
44
45 lxpanel_includedir = $(includedir)/lxpanel
46 lxpanel_include_HEADERS = \
47         plugin.h \
48         panel.h \
49         misc.h \
50         icon-grid.h \
51         conf.h
52
53 lxpanel_SOURCES = \
54         icon-grid-old.c \
55         gtk-run.c \
56         main.c \
57         $(MENU_SOURCES)
58
59 if BUILD_PLUGIN_LOADER
60 DYNAMIC_FLAGS = -export-dynamic
61 endif
62 lxpanel_LDFLAGS = $(DYNAMIC_FLAGS)
63 lxpanel_DEPENDENCIES_EXTRA = $(BUILTIN_PLUGINS)
64
65 lxpanel_LDADD = \
66                 liblxpanel.la \
67                 $(BUILTIN_PLUGINS) \
68                 $(PACKAGE_LIBS) \
69                 $(X11_LIBS)
70
71 lxpanelctl_SOURCES = lxpanelctl.c lxpanelctl.h
72 lxpanelctl_LDADD = $(X11_LIBS)
73
74 EXTRA_DIST = \
75         bg.h \
76         dbg.h \
77         ev.h \
78         menu-policy.h \
79         icon-grid-old.h \
80         gtk-compat.h \
81         private.h
82
83 $(top_builddir)/plugins/libbuiltin_plugins.a: $(lxpanel_include_HEADERS)
84         cd $(top_builddir)/plugins && $(MAKE) libbuiltin_plugins.a