14
14
libgoocanvas_la_LIBADD = @PACKAGE_LIBS@ $(INTLLIBS)
16
libgoocanvas_la_LDFLAGS = -version-info @VERSION_INFO@
17
no_undefined = -no-undefined
21
-version-info $(LT_VERSION_INFO) \
22
-export-dynamic $(no_undefined) \
25
libgoocanvas_la_LDFLAGS = $(libtool_opts)
18
27
libgoocanvasincludedir = $(includedir)/goocanvas-1.0
56
65
goocanvaswidget.c \
68
libgoocanvas_extra_sources = \
59
71
libgoocanvas_built_headers = \
60
72
goocanvasenumtypes.h \
63
75
libgoocanvas_built_sources = \
76
goocanvasenumtypes.c \
80
stamp-goocanvasmarshal.h \
81
stamp-goocanvasenumtypes.h
66
84
libgoocanvasinclude_HEADERS = \
67
85
$(libgoocanvas_public_headers) \
68
86
$(libgoocanvas_built_headers)
71
goocanvasenumtypes.h: $(goo_canvas_public_headers) Makefile
90
# Most of the stuff below has been pinched from the GTK+ Makefile.am, as
91
# it is tricky to get right and we know it works for GTK+.
94
# all autogenerated files need to be generated in the srcdir,
95
# so old versions get remade and are not confused with newer
96
# versions in the build dir. thus a development setup requires
97
# srcdir to be writable, passing --disable-rebuilds to
98
# ../configure will supress all autogeneration rules.
99
goocanvasmarshal.h: stamp-goocanvasmarshal.h
101
stamp-goocanvasmarshal.h: @REBUILD@ goocanvasmarshal.list
102
$(GLIB_GENMARSHAL) --prefix=goo_canvas_marshal $(srcdir)/goocanvasmarshal.list --header >> xgen-gmlh \
103
&& (cmp -s xgen-gmlh goocanvasmarshal.h || cp xgen-gmlh goocanvasmarshal.h) \
105
&& echo timestamp > $(@F)
106
goocanvasmarshal.c: @REBUILD@ goocanvasmarshal.list
107
(echo "#include \"goocanvasmarshal.h\""; \
108
$(GLIB_GENMARSHAL) --prefix=goo_canvas_marshal $(srcdir)/goocanvasmarshal.list --body) >> xgen-gmlc \
109
&& cp xgen-gmlc goocanvasmarshal.c \
113
goocanvasenumtypes.h: stamp-goocanvasenumtypes.h
115
stamp-goocanvasenumtypes.h: @REBUILD@ $(goo_canvas_public_headers) Makefile
72
116
(cd $(srcdir) && $(GLIB_MKENUMS) \
73
117
--fhead "#ifndef __GOO_CANVAS_ENUM_TYPES_H__\n#define __GOO_CANVAS_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
74
118
--fprod "/* Enumerations from \"@filename@\" */\n" \
75
119
--vhead "GType @enum_name@_get_type (void);\n#define GOO_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n\n\n" \
76
120
--ftail "G_END_DECLS\n\n#endif /* __GOO_CANVAS_ENUM_TYPES_H__ */" \
77
$(libgoocanvas_public_headers)) > $@
121
$(libgoocanvas_public_headers)) >> xgen-gtbh \
122
&& (cmp -s xgen-gtbh goocanvasenumtypes.h || cp xgen-gtbh goocanvasenumtypes.h ) \
124
&& echo timestamp > $(@F)
79
goocanvasenumtypes.c: $(goo_canvas_public_headers) Makefile
126
goocanvasenumtypes.c: @REBUILD@ $(goo_canvas_public_headers) Makefile
80
127
(cd $(srcdir) && $(GLIB_MKENUMS) \
81
128
--fhead "#include <goocanvas.h>\n" \
82
129
--fhead "#include <glib-object.h>\n" \
84
131
--vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if( etype == 0 ) \n {\n static const G@Type@Value values[] = {" \
85
132
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
86
133
--vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values );\n }\n return etype;\n}\n" \
87
$(libgoocanvas_public_headers)) > $@
90
GENMARSHAL_COMMAND = $(GLIB_GENMARSHAL) --prefix=goo_canvas_marshal
94
$(GENMARSHAL_COMMAND) --header $< >$@
97
(echo '/* This file has been automatically generated. Do not edit. */' && \
98
echo '#include "$*.h"' && \
99
$(GENMARSHAL_COMMAND) --body $< ) >$@
101
# A hint is needed to build the header first:
134
$(libgoocanvas_public_headers)) > xgen-gtbc \
135
&& cp xgen-gtbc goocanvasenumtypes.c \
140
gen_sources = xgen-gdef xgen-gtbh xgen-gtic xgen-gmh xgen-gmc xgen-gmlh xgen-gmlc
141
CLEANFILES = $(gen_sources)
102
142
BUILT_SOURCES = $(libgoocanvas_built_headers) $(libgoocanvas_built_sources)
104
# Another hint, see bugs #172211 and #172212:
105
non-intermediate: goocanvasmarshal.c
107
CLEANFILES = $(libgoocanvas_built_headers) $(libgoocanvas_built_sources)
109
# Add this to the dist for use on Windows where glib-genmarshal may not work.
110
EXTRA_DIST = goocanvasmarshal.c
143
MAINTAINERCLEANFILES = $(BUILT_SOURCES) $(stamp_files)
144
EXTRA_DIST = $(BUILT_SOURCES) $(libgoocanvas_extra_sources)