summaryrefslogtreecommitdiff
path: root/libxfce4panel/Makefile.am
blob: cba5083f65480b820e2e4c174775254d711f0012 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140

AM_CPPFLAGS = \
	-I$(top_srcdir) \
	-DG_LOG_DOMAIN=\"libxfce4panel\" \
	-DLIBXFCE4PANEL_COMPILATION \
	-DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
	$(PLATFORM_CPPFLAGS)

lib_LTLIBRARIES = \
	libxfce4panel-1.0.la

libxfce4panel_public_built_sources = \
	libxfce4panel-enum-types.h

libxfce4panel_built_sources = \
	$(libxfce4panel_public_built_sources) \
	libxfce4panel-alias.h \
	libxfce4panel-aliasdef.c \
	libxfce4panel-enum-types.c \
	libxfce4panel-marshal.c \
	libxfce4panel-marshal.h

libxfce4panel_headers = \
	libxfce4panel.h \
	libxfce4panel-config.h \
	libxfce4panel-enums.h \
	xfce-arrow-button.h \
	xfce-hvbox.h \
	xfce-panel-convenience.h \
	xfce-panel-macros.h \
	xfce-panel-macros-46.h \
	xfce-panel-plugin.h \
	xfce-panel-plugin-provider.h \
	xfce-panel-image.h

libxfce4panel_includedir = \
	$(includedir)/xfce4/libxfce4panel-$(LIBXFCE4PANEL_VERSION_API)/libxfce4panel

libxfce4panel_include_HEADERS = \
	$(libxfce4panel_public_built_sources) \
	$(libxfce4panel_headers)

libxfce4panel_1_0_la_SOURCES = \
	$(libxfce4panel_built_sources) \
	$(libxfce4panel_headers) \
	libxfce4panel-config.c \
	xfce-arrow-button.c \
	xfce-hvbox.c \
	xfce-panel-convenience.c \
	xfce-panel-plugin.c \
	xfce-panel-plugin-provider.c \
	xfce-panel-image.c

libxfce4panel_1_0_la_CFLAGS =	 \
	$(GTK_CFLAGS) \
	$(LIBXFCE4UTIL_CFLAGS) \
	$(PLATFORM_CFLAGS)

libxfce4panel_1_0_la_LDFLAGS = \
	-no-undefined \
	-export-dynamic \
	-version-info $(LIBXFCE4PANEL_VERINFO) \
	-export-symbols-regex '^[^_].*' \
	$(PLATFORM_LDFLAGS)

libxfce4panel_1_0_la_LIBADD = \
	$(GTK_LIBS) \
	$(LIBXFCE4UTIL_LIBS) \
	-lm

#
# Pkg-config file
#
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libxfce4panel-$(LIBXFCE4PANEL_VERSION_API).pc

#
# Build sources
#
if MAINTAINER_MODE

libxfce4panel-marshal.h: libxfce4panel-marshal.list Makefile
	$(AM_V_GEN) glib-genmarshal --prefix=_libxfce4panel_marshal --internal --header $< > $@

libxfce4panel-marshal.c: libxfce4panel-marshal.list Makefile
	$(AM_V_GEN) echo "#include <libxfce4panel/libxfce4panel-marshal.h>" > $@ \
	&& glib-genmarshal --prefix=_libxfce4panel_marshal --body $< >> $@

libxfce4panel-alias.h: make-libxfce4panel-alias.pl libxfce4panel.symbols
	$(AM_V_GEN) $(PERL) $(srcdir)/make-libxfce4panel-alias.pl $(srcdir)/libxfce4panel.symbols > $@

libxfce4panel-aliasdef.c: make-libxfce4panel-alias.pl libxfce4panel.symbols
	$(AM_V_GEN) $(PERL) $(srcdir)/make-libxfce4panel-alias.pl -def < $(srcdir)/libxfce4panel.symbols > $@

libxfce4panel-enum-types.h: $(libxfce4panel_headers) Makefile
	$(AM_V_GEN) ( cd $(srcdir) && glib-mkenums \
		--fhead "#ifndef __LIBXFCE4PANEL_ENUM_TYPES_H__\n#define __LIBXFCE4PANEL_ENUM_TYPES_H__\n#include <glib-object.h>\nG_BEGIN_DECLS\n" \
		--fprod "/* enumerations from \"@filename@\" */\n" \
		--vhead "GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define XFCE_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
		--ftail "G_END_DECLS\n\n#endif /* !__LIBXFCE4PANEL_ENUM_TYPES_H__ */" \
		$(libxfce4panel_headers) ) > $@

libxfce4panel-enum-types.c:  $(libxfce4panel_headers) Makefile
	$(AM_V_GEN) ( cd $(srcdir) && glib-mkenums \
		--fhead "#include <libxfce4panel/libxfce4panel-enums.h>\n#include <libxfce4panel/libxfce4panel-enum-types.h>\n#include <libxfce4panel/libxfce4panel-alias.h>" \
		--fprod "\n/* enumerations from \"@filename@\" */" \
		--vhead "GType\n@enum_name@_get_type (void)\n{\n\tstatic GType type = 0;\n\tif (type == 0) {\n\tstatic const G@Type@Value values[] = {"\
		--vprod "\t{ @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
		--vtail "\t{ 0, NULL, NULL }\n\t};\n\ttype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n\treturn type;\n}\n" \
		--ftail "\n#define __LIBXFCE4PANEL_ENUM_TYPES_C__\n#include <libxfce4panel/libxfce4panel-aliasdef.c>\n" \
		$(libxfce4panel_headers) ) > $@

DISTCLEANFILES = \
	$(libxfce4panel_built_sources)

BUILT_SOURCES = \
	$(libxfce4panel_built_sources)

CLEANFILES = \
	actual-abi \
	expected-abi

endif

EXTRA_DIST = \
	abicheck.sh \
	libxfce4panel.symbols \
	libxfce4panel-alias.h \
	libxfce4panel-aliasdef.c \
	libxfce4panel-marshal.list \
	make-libxfce4panel-alias.pl

if HAVE_GNUC_VISIBILITY
TESTS =	abicheck.sh
endif

# required for gtk-doc
dist-hook: all

# vi:set ts=8 sw=8 noet ai nocindent syntax=automake: