Bump to libxml++ 2.34.2
[platform/upstream/libxml++.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I macros ${ACLOCAL_FLAGS}
2 DISTCHECK_CONFIGURE_FLAGS = --enable-warnings=fatal
3
4 library_configdir = $(libdir)/libxml++-@LIBXMLXX_API_VERSION@/include
5 library_config_DATA = libxml++config.h
6
7 pkgconfigdir = $(libdir)/pkgconfig
8 nodist_pkgconfig_DATA = libxml++-@LIBXMLXX_API_VERSION@.pc
9
10 lib_LTLIBRARIES = libxml++/libxml++-@LIBXMLXX_API_VERSION@.la
11 libxml___libxml___@LIBXMLXX_API_VERSION@_la_LDFLAGS = \
12         -version-info $(LIBXMLXX_SO_VERSION) -no-undefined
13 libxml___libxml___@LIBXMLXX_API_VERSION@_la_LIBADD = $(LIBXMLXX_LIBS)
14 libxml___libxml___@LIBXMLXX_API_VERSION@_la_SOURCES = $(cc_sources) $(h_sources_public)
15
16 if ENABLE_EXAMPLES
17 noinst_PROGRAMS = examples/dom_build/dom_build \
18         examples/dom_parse_entities/dom_parse_entities \
19         examples/dom_parser/dom_parser \
20         examples/dom_parser_raw/dom_parser_raw \
21         examples/dom_read_write/dom_read_write \
22         examples/dom_xpath/dom_xpath \
23         examples/dtdvalidation/dtdvalidation \
24         examples/import_node/import_node \
25         examples/sax_exception/sax_exception \
26         examples/sax_parser/sax_parser \
27         examples/sax_parser_build_dom/sax_parser_build_dom \
28         examples/sax_parser_entities/sax_parser_entities \
29         examples/schemavalidation/schemavalidation \
30         examples/textreader/textreader
31 endif
32
33 AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) -I. $(LIBXMLXX_CFLAGS)
34 AM_CXXFLAGS = $(LIBXMLXX_WXXFLAGS)
35 DEFS = @DEFS@ -DLIBXMLPP_BUILD
36
37 h_root_sources_public = libxml++/libxml++.h \
38         libxml++/attribute.h \
39         libxml++/document.h \
40         libxml++/dtd.h \
41         libxml++/keepblanks.h \
42         libxml++/noncopyable.h \
43         libxml++/schema.h
44 h_exceptions_sources_public = libxml++/exceptions/exception.h \
45         libxml++/exceptions/parse_error.h \
46         libxml++/exceptions/validity_error.h \
47         libxml++/exceptions/internal_error.h
48 h_io_sources_public = libxml++/io/istreamparserinputbuffer.h \
49         libxml++/io/outputbuffer.h \
50         libxml++/io/ostreamoutputbuffer.h \
51         libxml++/io/parserinputbuffer.h
52 h_nodes_sources_public = libxml++/nodes/cdatanode.h \
53         libxml++/nodes/commentnode.h \
54         libxml++/nodes/contentnode.h \
55         libxml++/nodes/element.h \
56         libxml++/nodes/entityreference.h \
57         libxml++/nodes/node.h \
58         libxml++/nodes/processinginstructionnode.h \
59         libxml++/nodes/textnode.h
60 h_parsers_sources_public = libxml++/parsers/parser.h \
61         libxml++/parsers/saxparser.h \
62         libxml++/parsers/domparser.h \
63         libxml++/parsers/textreader.h
64 h_validators_sources_public = libxml++/validators/dtdvalidator.h \
65         libxml++/validators/schemavalidator.h \
66         libxml++/validators/validator.h
67 h_sources_public = $(h_root_sources_public) \
68         $(h_exceptions_sources_public) \
69         $(h_io_sources_public) \
70         $(h_nodes_sources_public) \
71         $(h_parsers_sources_public) \
72         $(h_validators_sources_public)
73
74 cc_sources = libxml++/attribute.cc \
75         libxml++/document.cc \
76         libxml++/dtd.cc \
77         libxml++/keepblanks.cc \
78         libxml++/noncopyable.cc \
79         libxml++/schema.cc \
80         libxml++/exceptions/exception.cc \
81         libxml++/exceptions/parse_error.cc \
82         libxml++/exceptions/validity_error.cc \
83         libxml++/exceptions/internal_error.cc \
84         libxml++/io/istreamparserinputbuffer.cc \
85         libxml++/io/outputbuffer.cc \
86         libxml++/io/ostreamoutputbuffer.cc \
87         libxml++/io/parserinputbuffer.cc \
88         libxml++/nodes/cdatanode.cc \
89         libxml++/nodes/commentnode.cc \
90         libxml++/nodes/contentnode.cc \
91         libxml++/nodes/entityreference.cc \
92         libxml++/nodes/element.cc \
93         libxml++/nodes/node.cc \
94         libxml++/nodes/processinginstructionnode.cc \
95         libxml++/nodes/textnode.cc \
96         libxml++/parsers/parser.cc \
97         libxml++/parsers/saxparser.cc \
98         libxml++/parsers/domparser.cc \
99         libxml++/parsers/textreader.cc \
100         libxml++/validators/dtdvalidator.cc \
101         libxml++/validators/schemavalidator.cc \
102         libxml++/validators/validator.cc
103
104 library_includedir = $(includedir)/libxml++-$(LIBXMLXX_API_VERSION)/libxml++
105 library_exceptions_includedir = $(library_includedir)/exceptions
106 library_io_includedir = $(library_includedir)/io
107 library_nodes_includedir = $(library_includedir)/nodes
108 library_parsers_includedir = $(library_includedir)/parsers
109 library_validators_includedir = $(library_includedir)/validators
110
111 library_include_HEADERS = $(h_root_sources_public)
112 library_exceptions_include_HEADERS = $(h_exceptions_sources_public)
113 library_io_include_HEADERS = $(h_io_sources_public)
114 library_nodes_include_HEADERS = $(h_nodes_sources_public)
115 library_parsers_include_HEADERS = $(h_parsers_sources_public)
116 library_validators_include_HEADERS = $(h_validators_sources_public)
117
118 if ENABLE_EXAMPLES
119
120 examples_dom_build_dom_build_SOURCES = examples/dom_build/main.cc
121 examples_dom_parse_entities_dom_parse_entities_SOURCES = \
122         examples/dom_parse_entities/main.cc
123 examples_dom_parser_dom_parser_SOURCES = examples/dom_parser/main.cc
124 examples_dom_parser_raw_dom_parser_raw_SOURCES = examples/dom_parser_raw/main.cc
125 examples_dom_read_write_dom_read_write_SOURCES = examples/dom_read_write/main.cc
126 examples_dom_xpath_dom_xpath_SOURCES = examples/dom_xpath/main.cc
127 examples_dtdvalidation_dtdvalidation_SOURCES = examples/dtdvalidation/main.cc
128 examples_import_node_import_node_SOURCES = examples/import_node/main.cc
129 examples_sax_exception_sax_exception_SOURCES = examples/sax_exception/main.cc \
130         examples/sax_exception/myparser.cc \
131         examples/sax_exception/myparser.h
132 examples_sax_parser_sax_parser_SOURCES = examples/sax_parser/main.cc \
133         examples/sax_parser/myparser.cc \
134         examples/sax_parser/myparser.h
135 examples_sax_parser_build_dom_sax_parser_build_dom_SOURCES = \
136         examples/sax_parser_build_dom/main.cc \
137         examples/sax_parser_build_dom/svgparser.cc \
138         examples/sax_parser_build_dom/svgparser.h \
139         examples/sax_parser_build_dom/svgdocument.cc \
140         examples/sax_parser_build_dom/svgdocument.h \
141         examples/sax_parser_build_dom/svgelement.cc \
142         examples/sax_parser_build_dom/svgelement.h \
143         examples/sax_parser_build_dom/svgpath.h \
144         examples/sax_parser_build_dom/svggroup.h
145 examples_sax_parser_entities_sax_parser_entities_SOURCES = \
146         examples/sax_parser_entities/main.cc \
147         examples/sax_parser_entities/myparser.cc \
148         examples/sax_parser_entities/myparser.h
149 examples_schemavalidation_schemavalidation_SOURCES = \
150         examples/schemavalidation/main.cc
151 examples_textreader_textreader_SOURCES = examples/textreader/main.cc
152
153 examples_ldadd = libxml++/libxml++-$(LIBXMLXX_API_VERSION).la $(LIBXMLXX_LIBS)
154
155 examples_dom_build_dom_build_LDADD = \
156         $(examples_ldadd)
157 examples_dom_parse_entities_dom_parse_entities_LDADD = \
158         $(examples_ldadd)
159 examples_dom_parser_dom_parser_LDADD = \
160         $(examples_ldadd)
161 examples_dom_parser_raw_dom_parser_raw_LDADD = \
162         $(examples_ldadd)
163 examples_dom_read_write_dom_read_write_LDADD = \
164         $(examples_ldadd)
165 examples_dom_xpath_dom_xpath_LDADD = \
166         $(examples_ldadd)
167 examples_dtdvalidation_dtdvalidation_LDADD = \
168         $(examples_ldadd)
169 examples_import_node_import_node_LDADD = \
170         $(examples_ldadd)
171 examples_sax_exception_sax_exception_LDADD = \
172         $(examples_ldadd)
173 examples_sax_parser_sax_parser_LDADD = \
174         $(examples_ldadd)
175 examples_sax_parser_build_dom_sax_parser_build_dom_LDADD = \
176         $(examples_ldadd)
177 examples_sax_parser_entities_sax_parser_entities_LDADD = \
178         $(examples_ldadd)
179 examples_schemavalidation_schemavalidation_LDADD = \
180         $(examples_ldadd)
181 examples_textreader_textreader_LDADD = \
182         $(examples_ldadd)
183 endif # ENABLE_EXAMPLES
184
185 docs/manual/libxml++.xml: docs/manual/libxml++_without_code.xml docs/manual/insert_example_code.pl
186         $(AM_V_GEN)$(PERL) -- docs/manual/insert_example_code.pl examples $< >$@
187
188 if ENABLE_DOCUMENTATION
189 book_name = $(LIBXMLXX_MODULE_NAME)
190 doc_input = $(h_sources_public)
191 doc_outdir = docs/reference
192 # Sets dist_noinst_DATA, DISTCLEANFILES and MAINTAINERCLEANFILES
193 include $(top_srcdir)/macros/doc-reference.am
194
195 manualdir = $(docdir)/manual
196 manual_htmldir = $(manualdir)/html
197 manual_html_files = $(wildcard docs/manual/html/*.html)
198
199 docs/manual/html/index.html: docs/manual/libxml++.xml docs/manual/docbook-customisation.xsl
200         $(AM_V_at)rm -fr doc/manual/html
201         $(AM_V_at)$(MKDIR_P) docs/manual/html
202         $(AM_V_GEN)$(XSLTPROC) -o docs/manual/html/ --xinclude --catalogs \
203                 $(top_srcdir)/docs/manual/docbook-customisation.xsl $<
204
205 docs/manual/libxml++.pdf: docs/manual/libxml++.xml
206         $(AM_V_GEN)$(DB2LATEX) -o $@ -O docs/manual -tpdf $<
207
208 validate_original_manual: docs/manual/libxml++_without_code.xml
209         $(XMLLINT) --xinclude --postvalid --noout $<
210
211 validate_manual: docs/manual/libxml++.xml
212         $(XMLLINT) --xinclude --postvalid --noout $<
213
214 all-local: docs/manual/html/index.html
215 else # !ENABLE_DOCUMENTATION
216 dist_noinst_DATA =
217 DISTCLEANFILES =
218 MAINTAINERCLEANFILES =
219 endif # ENABLE_DOCUMENTATION
220
221 dist_noinst_DATA += libxml++config.h.in \
222         libxml++-$(LIBXMLXX_API_VERSION).pc.in \
223         MAINTAINERS \
224         docs/manual/docbook-customisation.xsl \
225         $(manual_html_files) \
226         docs/manual/libxml++.xml \
227         docs/manual/libxml++_without_code.xml \
228         examples/README \
229         examples/dom_parser/example.xml \
230         examples/dom_parser/example_with_namespace.xml \
231         examples/dom_parser/example_invalid.xml \
232         examples/dom_parser/example.dtd \
233         examples/dom_parser_raw/example.xml \
234         examples/dom_parser_raw/example.dtd \
235         examples/dom_parse_entities/example.xml \
236         examples/dom_parse_entities/example.dtd \
237         examples/dom_read_write/README \
238         examples/dom_read_write/example.xml \
239         examples/dom_read_write/example.dtd \
240         examples/dom_xpath/example.xml \
241         examples/dtdvalidation/example.dtd \
242         examples/import_node/example1.xml \
243         examples/import_node/example2.xml \
244         examples/sax_parser/example.xml \
245         examples/sax_parser_entities/example.xml \
246         examples/sax_exception/example.xml \
247         examples/sax_parser_build_dom/README \
248         examples/sax_parser_build_dom/example.xml \
249         examples/schemavalidation/example.xml \
250         examples/schemavalidation/example.xsd \
251         examples/textreader/example.xml \
252         MSVC_Net2005/blank.cpp \
253         MSVC_Net2005/libxml++.sln \
254         MSVC_Net2005/README \
255         MSVC_Net2005/gendef/gendef.cc \
256         MSVC_Net2005/gendef/gendef.vcproj \
257         MSVC_Net2005/libxml++/libxml++.rc \
258         MSVC_Net2005/libxml++/libxml++.vcproj \
259         MSVC_Net2005/libxml++/libxml++config.h \
260         MSVC_Net2005/examples/dom_build/dom_build.vcproj \
261         MSVC_Net2005/examples/dom_parse_entities/dom_parse_entities.vcproj \
262         MSVC_Net2005/examples/dom_parser/dom_parser.vcproj \
263         MSVC_Net2005/examples/dom_parser_raw/dom_parser_raw.vcproj \
264         MSVC_Net2005/examples/dom_read_write/dom_read_write.vcproj \
265         MSVC_Net2005/examples/dom_xpath/dom_xpath.vcproj \
266         MSVC_Net2005/examples/dtdvalidation/dtdvalidation.vcproj \
267         MSVC_Net2005/examples/import_node/import_node.vcproj \
268         MSVC_Net2005/examples/sax_exception/sax_exception.vcproj \
269         MSVC_Net2005/examples/sax_parser/sax_parser.vcproj \
270         MSVC_Net2005/examples/sax_parser_build_dom/sax_parser_build_dom.vcproj \
271         MSVC_Net2005/examples/sax_parser_entities/sax_parser_entities.vcproj \
272         MSVC_Net2005/examples/schemavalidation/schemavalidation.vcproj \
273         MSVC_Net2005/examples/textreader/textreader.vcproj \
274         MSVC_Net2008/blank.cpp \
275         MSVC_Net2008/libxml++.sln \
276         MSVC_Net2008/README \
277         MSVC_Net2008/gendef/gendef.cc \
278         MSVC_Net2008/gendef/gendef.vcproj \
279         MSVC_Net2008/libxml++/libxml++.rc \
280         MSVC_Net2008/libxml++/libxml++.vcproj \
281         MSVC_Net2008/libxml++/libxml++config.h \
282         MSVC_Net2008/examples/dom_build/dom_build.vcproj \
283         MSVC_Net2008/examples/dom_parse_entities/dom_parse_entities.vcproj \
284         MSVC_Net2008/examples/dom_parser/dom_parser.vcproj \
285         MSVC_Net2008/examples/dom_parser_raw/dom_parser_raw.vcproj \
286         MSVC_Net2008/examples/dom_read_write/dom_read_write.vcproj \
287         MSVC_Net2008/examples/dom_xpath/dom_xpath.vcproj \
288         MSVC_Net2008/examples/dtdvalidation/dtdvalidation.vcproj \
289         MSVC_Net2008/examples/import_node/import_node.vcproj \
290         MSVC_Net2008/examples/sax_exception/sax_exception.vcproj \
291         MSVC_Net2008/examples/sax_parser/sax_parser.vcproj \
292         MSVC_Net2008/examples/sax_parser_build_dom/sax_parser_build_dom.vcproj \
293         MSVC_Net2008/examples/sax_parser_entities/sax_parser_entities.vcproj \
294         MSVC_Net2008/examples/schemavalidation/schemavalidation.vcproj \
295         MSVC_Net2008/examples/textreader/textreader.vcproj \
296         MSVC_Net2010/libxml++.sln \
297         MSVC_Net2010/README \
298         MSVC_Net2010/gendef/gendef.cc \
299         MSVC_Net2010/gendef/gendef.vcxproj \
300         MSVC_Net2010/gendef/gendef.vcxproj.filters \
301         MSVC_Net2010/libxml++/libxml++.rc \
302         MSVC_Net2010/libxml++/libxml++.vcxproj \
303         MSVC_Net2010/libxml++/libxml++.vcxproj.filters \
304         MSVC_Net2010/libxml++/libxml++config.h \
305         MSVC_Net2010/examples/dom_build/dom_build.vcxproj \
306         MSVC_Net2010/examples/dom_build/dom_build.vcxproj.filters \
307         MSVC_Net2010/examples/dom_parse_entities/dom_parse_entities.vcxproj \
308         MSVC_Net2010/examples/dom_parse_entities/dom_parse_entities.vcxproj.filters \
309         MSVC_Net2010/examples/dom_parser/dom_parser.vcxproj \
310         MSVC_Net2010/examples/dom_parser/dom_parser.vcxproj.filters \
311         MSVC_Net2010/examples/dom_parser_raw/dom_parser_raw.vcxproj \
312         MSVC_Net2010/examples/dom_parser_raw/dom_parser_raw.vcxproj.filters \
313         MSVC_Net2010/examples/dom_read_write/dom_read_write.vcxproj \
314         MSVC_Net2010/examples/dom_read_write/dom_read_write.vcxproj.filters \
315         MSVC_Net2010/examples/dom_xpath/dom_xpath.vcxproj \
316         MSVC_Net2010/examples/dom_xpath/dom_xpath.vcxproj.filters \
317         MSVC_Net2010/examples/dtdvalidation/dtdvalidation.vcxproj \
318         MSVC_Net2010/examples/dtdvalidation/dtdvalidation.vcxproj.filters \
319         MSVC_Net2010/examples/import_node/import_node.vcxproj \
320         MSVC_Net2010/examples/import_node/import_node.vcxproj.filters \
321         MSVC_Net2010/examples/sax_exception/sax_exception.vcxproj \
322         MSVC_Net2010/examples/sax_exception/sax_exception.vcxproj.filters \
323         MSVC_Net2010/examples/sax_parser/sax_parser.vcxproj \
324         MSVC_Net2010/examples/sax_parser/sax_parser.vcxproj.filters \
325         MSVC_Net2010/examples/sax_parser_build_dom/sax_parser_build_dom.vcxproj \
326         MSVC_Net2010/examples/sax_parser_build_dom/sax_parser_build_dom.vcxproj.filters \
327         MSVC_Net2010/examples/sax_parser_entities/sax_parser_entities.vcxproj \
328         MSVC_Net2010/examples/sax_parser_entities/sax_parser_entities.vcxproj.filters \
329         MSVC_Net2010/examples/schemavalidation/schemavalidation.vcxproj \
330         MSVC_Net2010/examples/schemavalidation/schemavalidation.vcxproj.filters \
331         MSVC_Net2010/examples/textreader/textreader.vcxproj \
332         MSVC_Net2010/examples/textreader/textreader.vcxproj.filters
333
334 dist_noinst_SCRIPTS = autogen.sh \
335         docs/manual/insert_example_code.pl
336
337 DISTCLEANFILES += MSVC_Net2005/libxml++/libxml++config.h \
338         MSVC_Net2008/libxml++/libxml++config.h \
339         MSVC_Net2010/libxml++/libxml++config.h
340
341 MAINTAINERCLEANFILES += docs/manual/html/*.html
342
343 # Make it easy to upload to the sourceforge web site.
344 # The manual and API reference are hosted on library.gnome.org via tarball releases.
345 web_path_project = /home/groups/l/li/libxmlplusplus/htdocs/
346 rsync_args = -vz --rsh ssh --recursive --cvs-exclude --exclude="**1.0**" --exclude=".cvsignore" --exclude="Makefile" --exclude="Makefile.in" --exclude=".deps" --exclude=".libs"
347
348 post-html: docs/index.html
349         rsync $(rsync_args) -r docs/index.html $$USER,libxmlplusplus@web.sourceforge.net:$(web_path_project)
350         rsync $(rsync_args) -r examples $$USER,libxmlplusplus@web.sourceforge.net:$(web_path_project)
351