3 # ___\ \/ /_ __ __ _| |_
4 # / _ \\ /| '_ \ / _` | __|
5 # | __// \| |_) | (_| | |_
6 # \___/_/\_\ .__/ \__,_|\__|
9 # Copyright (c) 2017 Expat development team
10 # Licensed under the MIT license:
12 # Permission is hereby granted, free of charge, to any person obtaining
13 # a copy of this software and associated documentation files (the
14 # "Software"), to deal in the Software without restriction, including
15 # without limitation the rights to use, copy, modify, merge, publish,
16 # distribute, sublicense, and/or sell copies of the Software, and to permit
17 # persons to whom the Software is furnished to do so, subject to the
18 # following conditions:
20 # The above copyright notice and this permission notice shall be included
21 # in all copies or substantial portions of the Software.
23 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
26 # NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
27 # DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
28 # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
29 # USE OR OTHER DEALINGS IN THE SOFTWARE.
37 ACLOCAL_AMFLAGS = -I m4
38 LIBTOOLFLAGS = --verbose
40 SUBDIRS = lib examples tests # lib goes first to build first
45 pkgconfig_DATA = expat.pc
46 pkgconfigdir = $(libdir)/pkgconfig
52 ConfigureChecks.cmake \
55 _EXTRA_DIST_WINDOWS = \
56 examples/elements.vcxproj \
57 examples/elements.vcxproj.filters \
58 examples/outline.vcxproj \
59 examples/outline.vcxproj.filters \
61 lib/expat_static.vcxproj \
62 lib/expat_static.vcxproj.filters \
64 lib/expat.vcxproj.filters \
65 lib/expatw_static.vcxproj \
66 lib/expatw_static.vcxproj.filters \
68 lib/expatw.vcxproj.filters \
70 tests/benchmark/benchmark.sln \
71 tests/benchmark/benchmark.vcxproj \
74 tests/runtests.vcxproj \
75 tests/runtests.vcxproj.filters \
82 xmlwf/xmlwf.vcxproj.filters \
87 $(_EXTRA_DIST_CMAKE) \
88 $(_EXTRA_DIST_WINDOWS) \
91 conftools/get-version.sh \
96 test-driver-wrapper.sh
101 @echo 'ERROR: Running "make buildlib LIBRARY=libexpatw.la"' >&2
102 @echo 'ERROR: is no longer supported. INSTEAD please:' >&2
104 @echo 'ERROR: * Mass-patch Makefile.am, e.g.' >&2
105 @echo 'ERROR: # find -name Makefile.am -exec sed \' >&2
106 @echo 'ERROR: -e "s,libexpat\.la,libexpatw.la," \' >&2
107 @echo 'ERROR: -e "s,libexpat_la,libexpatw_la," \' >&2
108 @echo 'ERROR: -i {} +' >&2
110 @echo 'ERROR: * Run automake to re-generate Makefile.in files' >&2
112 @echo 'ERROR: * Use "./configure --without-xmlwf" and/or' >&2
113 @echo 'ERROR: "make -C lib all install" to bypass compilation' >&2
114 @echo 'ERROR: of xmlwf (e.g. with -DXML_UNICODE)' >&2
119 .PHONY: run-benchmark
121 $(MAKE) -C tests/benchmark
122 ./run.sh tests/benchmark/benchmark@EXEEXT@ -n $(top_srcdir)/../testdata/largefiles/recset.xml 65535 3
125 if test "$(XMLTS_ZIP)" = ""; then \
126 wget --output-document=tests/xmlts.zip \
127 https://www.w3.org/XML/Test/xmlts20080827.zip; \
129 cp $(XMLTS_ZIP) tests/xmlts.zip; \
132 tests/xmlconf: tests/xmlts.zip
133 cd tests && unzip -q xmlts.zip
136 run-xmltest: tests/xmlconf
139 tests/xmltest.sh "$(PWD)/run.sh $(PWD)/xmlwf/xmlwf@EXEEXT@" 2>&1 | tee tests/xmltest.log
140 dos2unix tests/xmltest.log
141 diff -u tests/xmltest.log.expected tests/xmltest.log
143 @echo 'ERROR: xmlwf is needed for "make run-xmltest".' >&2
144 @echo 'ERROR: Please re-configure without --without-xmlwf.' >&2