e01d60df62ddcf91831d045e2c8509898a41ede3
[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)
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         $(X11_LIBS)
43
44 lxpanel_includedir = $(includedir)/lxpanel
45 lxpanel_include_HEADERS = \
46         plugin.h \
47         panel.h \
48         misc.h \
49         icon-grid.h \
50         conf.h
51
52 lxpanel_SOURCES = \
53         icon-grid-old.c \
54         gtk-run.c \
55         main.c \
56         $(MENU_SOURCES)
57
58 if BUILD_PLUGIN_LOADER
59 DYNAMIC_FLAGS = -export-dynamic
60 endif
61 lxpanel_LDFLAGS = $(DYNAMIC_FLAGS)
62 lxpanel_DEPENDENCIES_EXTRA = $(BUILTIN_PLUGINS)
63
64 lxpanel_LDADD = \
65                 liblxpanel.la \
66                 $(BUILTIN_PLUGINS) \
67                 $(PACKAGE_LIBS) \
68                 $(X11_LIBS)
69
70 lxpanelctl_SOURCES = lxpanelctl.c lxpanelctl.h
71 lxpanelctl_LDADD = $(X11_LIBS)
72
73 EXTRA_DIST = \
74         bg.h \
75         dbg.h \
76         ev.h \
77         menu-policy.h \
78         icon-grid-old.h \
79         gtk-compat.h \
80         private.h
81
82 $(top_builddir)/plugins/libbuiltin_plugins.a: $(lxpanel_include_HEADERS)
83         cd $(top_builddir)/plugins && $(MAKE) libbuiltin_plugins.a