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