1# Makefile.in generated by automake 1.10.1 from Makefile.am. 2# Makefile. Generated from Makefile.in by configure. 3 4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 5# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 6# This Makefile.in is free software; the Free Software Foundation 7# gives unlimited permission to copy and/or distribute it, 8# with or without modifications, as long as this notice is preserved. 9 10# This program is distributed in the hope that it will be useful, 11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 13# PARTICULAR PURPOSE. 14 15 16 17 18 19 20 21pkgdatadir = $(datadir)/libxml2 22pkglibdir = $(libdir)/libxml2 23pkgincludedir = $(includedir)/libxml2 24am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 25install_sh_DATA = $(install_sh) -c -m 644 26install_sh_PROGRAM = $(install_sh) -c 27install_sh_SCRIPT = $(install_sh) -c 28INSTALL_HEADER = $(INSTALL_DATA) 29transform = $(program_transform_name) 30NORMAL_INSTALL = : 31PRE_INSTALL = : 32POST_INSTALL = : 33NORMAL_UNINSTALL = : 34PRE_UNINSTALL = : 35POST_UNINSTALL = : 36#build_triplet = mipsel-uclibc-linux-gnu26 37#host_triplet = mipsel-uclibc-linux-gnu 38noinst_PROGRAMS = testSchemas$(EXEEXT) testRelax$(EXEEXT) \ 39 testSAX$(EXEEXT) testHTML$(EXEEXT) testXPath$(EXEEXT) \ 40 testURI$(EXEEXT) testThreads$(EXEEXT) testC14N$(EXEEXT) \ 41 testAutomata$(EXEEXT) testRegexp$(EXEEXT) testReader$(EXEEXT) \ 42 testapi$(EXEEXT) testModule$(EXEEXT) runtest$(EXEEXT) \ 43 runsuite$(EXEEXT) testchar$(EXEEXT) testdict$(EXEEXT) \ 44 runxmlconf$(EXEEXT) testrecurse$(EXEEXT) 45bin_PROGRAMS = xmllint$(EXEEXT) xmlcatalog$(EXEEXT) 46subdir = . 47DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ 48 $(srcdir)/Makefile.in $(srcdir)/config.h.in \ 49 $(srcdir)/libxml-2.0-uninstalled.pc.in \ 50 $(srcdir)/libxml-2.0.pc.in $(srcdir)/libxml.spec.in \ 51 $(srcdir)/xml2-config.in $(top_srcdir)/configure AUTHORS \ 52 COPYING ChangeLog INSTALL NEWS TODO acconfig.h config.guess \ 53 config.sub depcomp install-sh ltmain.sh missing mkinstalldirs 54ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 55am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 56 $(top_srcdir)/configure.in 57am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 58 $(ACLOCAL_M4) 59am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ 60 configure.lineno config.status.lineno 61mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 62CONFIG_HEADER = config.h 63CONFIG_CLEAN_FILES = libxml2.spec xml2-config libxml-2.0.pc \ 64 libxml-2.0-uninstalled.pc 65am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; 66am__vpath_adj = case $$p in \ 67 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ 68 *) f=$$p;; \ 69 esac; 70am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; 71am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \ 72 "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" \ 73 "$(DESTDIR)$(man3dir)" "$(DESTDIR)$(confexecdir)" \ 74 "$(DESTDIR)$(m4datadir)" "$(DESTDIR)$(pkgconfigdir)" 75libLTLIBRARIES_INSTALL = $(INSTALL) 76LTLIBRARIES = $(lib_LTLIBRARIES) $(noinst_LTLIBRARIES) 77am__DEPENDENCIES_1 = 78libxml2_la_DEPENDENCIES = $(am__DEPENDENCIES_1) 79am__libxml2_la_SOURCES_DIST = SAX.c entities.c encoding.c error.c \ 80 parserInternals.c parser.c tree.c hash.c list.c xmlIO.c \ 81 xmlmemory.c uri.c valid.c xlink.c HTMLparser.c HTMLtree.c \ 82 debugXML.c xpath.c xpointer.c xinclude.c nanohttp.c nanoftp.c \ 83 DOCBparser.c catalog.c globals.c threads.c c14n.c xmlstring.c \ 84 xmlregexp.c xmlschemas.c xmlschemastypes.c xmlunicode.c \ 85 xmlreader.c relaxng.c dict.c SAX2.c xmlwriter.c legacy.c \ 86 chvalid.c pattern.c xmlsave.c xmlmodule.c schematron.c \ 87 triostr.c trio.c 88am_libxml2_la_OBJECTS = SAX.lo entities.lo \ 89 encoding.lo error.lo \ 90 parserInternals.lo parser.lo tree.lo \ 91 hash.lo list.lo xmlIO.lo xmlmemory.lo \ 92 uri.lo valid.lo xlink.lo \ 93 HTMLparser.lo HTMLtree.lo debugXML.lo \ 94 xpath.lo xpointer.lo xinclude.lo \ 95 nanohttp.lo nanoftp.lo DOCBparser.lo \ 96 catalog.lo globals.lo threads.lo \ 97 c14n.lo xmlstring.lo xmlregexp.lo \ 98 xmlschemas.lo xmlschemastypes.lo \ 99 xmlunicode.lo xmlreader.lo relaxng.lo \ 100 dict.lo SAX2.lo xmlwriter.lo \ 101 legacy.lo chvalid.lo pattern.lo \ 102 xmlsave.lo xmlmodule.lo schematron.lo 103#am_libxml2_la_OBJECTS = SAX.lo entities.lo \ 104# encoding.lo error.lo \ 105# parserInternals.lo parser.lo tree.lo \ 106# hash.lo list.lo xmlIO.lo xmlmemory.lo \ 107# uri.lo valid.lo xlink.lo HTMLparser.lo \ 108# HTMLtree.lo debugXML.lo xpath.lo \ 109# xpointer.lo xinclude.lo nanohttp.lo \ 110# nanoftp.lo DOCBparser.lo catalog.lo \ 111# globals.lo threads.lo c14n.lo \ 112# xmlstring.lo xmlregexp.lo \ 113# xmlschemas.lo xmlschemastypes.lo \ 114# xmlunicode.lo triostr.lo trio.lo \ 115# xmlreader.lo relaxng.lo dict.lo \ 116# SAX2.lo xmlwriter.lo legacy.lo \ 117# chvalid.lo pattern.lo xmlsave.lo \ 118# xmlmodule.lo schematron.lo 119libxml2_la_OBJECTS = $(am_libxml2_la_OBJECTS) 120libxml2_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ 121 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 122 $(libxml2_la_LDFLAGS) $(LDFLAGS) -o $@ 123testdso_la_LIBADD = 124am_testdso_la_OBJECTS = testdso.lo 125testdso_la_OBJECTS = $(am_testdso_la_OBJECTS) 126testdso_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ 127 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 128 $(testdso_la_LDFLAGS) $(LDFLAGS) -o $@ 129binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) 130PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS) 131am_runsuite_OBJECTS = runsuite.$(OBJEXT) 132runsuite_OBJECTS = $(am_runsuite_OBJECTS) 133am__DEPENDENCIES_2 = $(top_builddir)/libxml2.la $(am__DEPENDENCIES_1) 134runsuite_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ 135 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(runsuite_LDFLAGS) \ 136 $(LDFLAGS) -o $@ 137am_runtest_OBJECTS = runtest.$(OBJEXT) 138runtest_OBJECTS = $(am_runtest_OBJECTS) 139runtest_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ 140 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(runtest_LDFLAGS) \ 141 $(LDFLAGS) -o $@ 142am_runxmlconf_OBJECTS = runxmlconf.$(OBJEXT) 143runxmlconf_OBJECTS = $(am_runxmlconf_OBJECTS) 144runxmlconf_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ 145 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 146 $(runxmlconf_LDFLAGS) $(LDFLAGS) -o $@ 147am_testAutomata_OBJECTS = testAutomata.$(OBJEXT) 148testAutomata_OBJECTS = $(am_testAutomata_OBJECTS) 149testAutomata_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ 150 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 151 $(testAutomata_LDFLAGS) $(LDFLAGS) -o $@ 152am_testC14N_OBJECTS = testC14N.$(OBJEXT) 153testC14N_OBJECTS = $(am_testC14N_OBJECTS) 154testC14N_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ 155 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(testC14N_LDFLAGS) \ 156 $(LDFLAGS) -o $@ 157am_testHTML_OBJECTS = testHTML.$(OBJEXT) 158testHTML_OBJECTS = $(am_testHTML_OBJECTS) 159testHTML_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ 160 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(testHTML_LDFLAGS) \ 161 $(LDFLAGS) -o $@ 162am_testModule_OBJECTS = testModule.$(OBJEXT) 163testModule_OBJECTS = $(am_testModule_OBJECTS) 164testModule_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ 165 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 166 $(testModule_LDFLAGS) $(LDFLAGS) -o $@ 167am_testReader_OBJECTS = testReader.$(OBJEXT) 168testReader_OBJECTS = $(am_testReader_OBJECTS) 169testReader_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ 170 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 171 $(testReader_LDFLAGS) $(LDFLAGS) -o $@ 172am_testRegexp_OBJECTS = testRegexp.$(OBJEXT) 173testRegexp_OBJECTS = $(am_testRegexp_OBJECTS) 174testRegexp_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ 175 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 176 $(testRegexp_LDFLAGS) $(LDFLAGS) -o $@ 177am_testRelax_OBJECTS = testRelax.$(OBJEXT) 178testRelax_OBJECTS = $(am_testRelax_OBJECTS) 179testRelax_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ 180 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 181 $(testRelax_LDFLAGS) $(LDFLAGS) -o $@ 182am_testSAX_OBJECTS = testSAX.$(OBJEXT) 183testSAX_OBJECTS = $(am_testSAX_OBJECTS) 184testSAX_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ 185 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(testSAX_LDFLAGS) \ 186 $(LDFLAGS) -o $@ 187am_testSchemas_OBJECTS = testSchemas.$(OBJEXT) 188testSchemas_OBJECTS = $(am_testSchemas_OBJECTS) 189testSchemas_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ 190 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 191 $(testSchemas_LDFLAGS) $(LDFLAGS) -o $@ 192am_testThreads_OBJECTS = testThreads.$(OBJEXT) 193testThreads_OBJECTS = $(am_testThreads_OBJECTS) 194testThreads_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ 195 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 196 $(testThreads_LDFLAGS) $(LDFLAGS) -o $@ 197am_testURI_OBJECTS = testURI.$(OBJEXT) 198testURI_OBJECTS = $(am_testURI_OBJECTS) 199testURI_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ 200 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(testURI_LDFLAGS) \ 201 $(LDFLAGS) -o $@ 202am_testXPath_OBJECTS = testXPath.$(OBJEXT) 203testXPath_OBJECTS = $(am_testXPath_OBJECTS) 204testXPath_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ 205 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 206 $(testXPath_LDFLAGS) $(LDFLAGS) -o $@ 207am_testapi_OBJECTS = testapi.$(OBJEXT) 208testapi_OBJECTS = $(am_testapi_OBJECTS) 209testapi_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ 210 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(testapi_LDFLAGS) \ 211 $(LDFLAGS) -o $@ 212am_testchar_OBJECTS = testchar.$(OBJEXT) 213testchar_OBJECTS = $(am_testchar_OBJECTS) 214testchar_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ 215 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(testchar_LDFLAGS) \ 216 $(LDFLAGS) -o $@ 217am_testdict_OBJECTS = testdict.$(OBJEXT) 218testdict_OBJECTS = $(am_testdict_OBJECTS) 219testdict_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ 220 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(testdict_LDFLAGS) \ 221 $(LDFLAGS) -o $@ 222am_testrecurse_OBJECTS = testrecurse.$(OBJEXT) 223testrecurse_OBJECTS = $(am_testrecurse_OBJECTS) 224testrecurse_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ 225 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 226 $(testrecurse_LDFLAGS) $(LDFLAGS) -o $@ 227am_xmlcatalog_OBJECTS = xmlcatalog.$(OBJEXT) 228xmlcatalog_OBJECTS = $(am_xmlcatalog_OBJECTS) 229xmlcatalog_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ 230 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 231 $(xmlcatalog_LDFLAGS) $(LDFLAGS) -o $@ 232am_xmllint_OBJECTS = xmllint.$(OBJEXT) 233xmllint_OBJECTS = $(am_xmllint_OBJECTS) 234xmllint_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ 235 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(xmllint_LDFLAGS) \ 236 $(LDFLAGS) -o $@ 237binSCRIPT_INSTALL = $(INSTALL_SCRIPT) 238SCRIPTS = $(bin_SCRIPTS) 239DEFAULT_INCLUDES = -I. 240depcomp = $(SHELL) $(top_srcdir)/depcomp 241am__depfiles_maybe = depfiles 242COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 243 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 244LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ 245 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ 246 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 247CCLD = $(CC) 248LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ 249 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ 250 $(LDFLAGS) -o $@ 251SOURCES = $(libxml2_la_SOURCES) $(testdso_la_SOURCES) \ 252 $(runsuite_SOURCES) $(runtest_SOURCES) $(runxmlconf_SOURCES) \ 253 $(testAutomata_SOURCES) $(testC14N_SOURCES) \ 254 $(testHTML_SOURCES) $(testModule_SOURCES) \ 255 $(testReader_SOURCES) $(testRegexp_SOURCES) \ 256 $(testRelax_SOURCES) $(testSAX_SOURCES) $(testSchemas_SOURCES) \ 257 $(testThreads_SOURCES) $(testURI_SOURCES) $(testXPath_SOURCES) \ 258 $(testapi_SOURCES) $(testchar_SOURCES) $(testdict_SOURCES) \ 259 $(testrecurse_SOURCES) $(xmlcatalog_SOURCES) \ 260 $(xmllint_SOURCES) 261DIST_SOURCES = $(am__libxml2_la_SOURCES_DIST) $(testdso_la_SOURCES) \ 262 $(runsuite_SOURCES) $(runtest_SOURCES) $(runxmlconf_SOURCES) \ 263 $(testAutomata_SOURCES) $(testC14N_SOURCES) \ 264 $(testHTML_SOURCES) $(testModule_SOURCES) \ 265 $(testReader_SOURCES) $(testRegexp_SOURCES) \ 266 $(testRelax_SOURCES) $(testSAX_SOURCES) $(testSchemas_SOURCES) \ 267 $(testThreads_SOURCES) $(testURI_SOURCES) $(testXPath_SOURCES) \ 268 $(testapi_SOURCES) $(testchar_SOURCES) $(testdict_SOURCES) \ 269 $(testrecurse_SOURCES) $(xmlcatalog_SOURCES) \ 270 $(xmllint_SOURCES) 271RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ 272 html-recursive info-recursive install-data-recursive \ 273 install-dvi-recursive install-exec-recursive \ 274 install-html-recursive install-info-recursive \ 275 install-pdf-recursive install-ps-recursive install-recursive \ 276 installcheck-recursive installdirs-recursive pdf-recursive \ 277 ps-recursive uninstall-recursive 278man1dir = $(mandir)/man1 279man3dir = $(mandir)/man3 280NROFF = nroff 281MANS = $(man_MANS) 282confexecDATA_INSTALL = $(INSTALL_DATA) 283m4dataDATA_INSTALL = $(INSTALL_DATA) 284pkgconfigDATA_INSTALL = $(INSTALL_DATA) 285DATA = $(confexec_DATA) $(m4data_DATA) $(pkgconfig_DATA) 286RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ 287 distclean-recursive maintainer-clean-recursive 288ETAGS = etags 289CTAGS = ctags 290DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 291distdir = $(PACKAGE)-$(VERSION) 292top_distdir = $(distdir) 293am__remove_distdir = \ 294 { test ! -d $(distdir) \ 295 || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ 296 && rm -fr $(distdir); }; } 297DIST_ARCHIVES = $(distdir).tar.gz 298GZIP_ENV = --best 299distuninstallcheck_listfiles = find . -type f -print 300distcleancheck_listfiles = find . -type f -print 301ACLOCAL = ${SHELL} ${TIMEMACHINE_PATH}/libxml2-2.7.2/missing --run aclocal-1.10 302AMTAR = ${SHELL} ${TIMEMACHINE_PATH}/libxml2-2.7.2/missing --run tar 303#AR = mipsel-linux-linux26-ar 304AS = as 305AUTOCONF = ${SHELL} ${TIMEMACHINE_PATH}/libxml2-2.7.2/missing --run autoconf 306AUTOHEADER = ${SHELL} ${TIMEMACHINE_PATH}/libxml2-2.7.2/missing --run autoheader 307AUTOMAKE = ${SHELL} ${TIMEMACHINE_PATH}/libxml2-2.7.2/missing --run automake-1.10 308AWK = gawk 309BASE_THREAD_LIBS = -lpthread 310C14N_OBJ = 311CATALOG_OBJ = 312#CC = mipsel-linux-uclibc-gcc 313CCDEPMODE = depmode=gcc3 314CFLAGS = -Os -I${PKG_INSTALL_DIR}/usr/include -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls 315#CPP = mipsel-linux-uclibc-gcc -E 316CPPFLAGS = -I${PKG_INSTALL_DIR}/usr/include 317#CXX = mipsel-linux-uclibc-g++ 318#CXXCPP = mipsel-linux-uclibc-g++ -E 319CXXDEPMODE = depmode=gcc3 320CXXFLAGS = -Os -I${PKG_INSTALL_DIR}/usr/include 321CYGPATH_W = echo 322CYGWIN_EXTRA_LDFLAGS = 323CYGWIN_EXTRA_PYTHON_LIBADD = 324DEBUG_OBJ = 325DEFS = -DHAVE_CONFIG_H 326DEPDIR = .deps 327DLLTOOL = dlltool 328DOCB_OBJ = 329ECHO = echo 330ECHO_C = 331ECHO_N = -n 332ECHO_T = 333EGREP = /bin/grep -E 334EXEEXT = 335F77 = gfortran 336FFLAGS = -g -O2 337FTP_OBJ = 338GREP = /bin/grep 339HAVE_ISINF = 340HAVE_ISNAN = 341HTML_DIR = $(datadir)/doc/$(PACKAGE)-$(VERSION)/html 342HTML_OBJ = HTMLparser.o HTMLtree.o 343HTTP_OBJ = 344ICONV_LIBS = 345INSTALL = /usr/bin/install -c 346INSTALL_DATA = ${INSTALL} -m 644 347INSTALL_PROGRAM = ${INSTALL} 348INSTALL_SCRIPT = ${INSTALL} 349INSTALL_STRIP_PROGRAM = $(install_sh) -c -s 350LDFLAGS = -L${PKG_INSTALL_DIR}/usr/lib 351LIBOBJS = 352LIBS = 353LIBTOOL = $(SHELL) $(top_builddir)/libtool 354LIBXML_MAJOR_VERSION = 2 355LIBXML_MICRO_VERSION = 2 356LIBXML_MINOR_VERSION = 7 357LIBXML_VERSION = 2.7.2 358LIBXML_VERSION_EXTRA = 359LIBXML_VERSION_INFO = 9:2:7 360LIBXML_VERSION_NUMBER = 20702 361LN_S = ln -s 362LTLIBOBJS = 363MAKEINFO = ${SHELL} ${TIMEMACHINE_PATH}/libxml2-2.7.2/missing --run makeinfo 364MKDIR_P = /bin/mkdir -p 365MODULE_EXTENSION = .so 366MODULE_PLATFORM_LIBS = -ldl 367MV = /bin/mv 368M_LIBS = -lm 369#OBJDUMP = mipsel-linux-linux26-objdump 370OBJEXT = o 371PACKAGE = libxml2 372PACKAGE_BUGREPORT = 373PACKAGE_NAME = 374PACKAGE_STRING = 375PACKAGE_TARNAME = 376PACKAGE_VERSION = 377PATH_SEPARATOR = : 378PERL = /usr/bin/perl 379PYTHON = 380PYTHON_INCLUDES = 381PYTHON_SITE_PACKAGES = 382PYTHON_SUBDIR = 383PYTHON_TESTS = 384PYTHON_VERSION = 385#RANLIB = mipsel-linux-linux26-ranlib 386RDL_LIBS = 387READER_TEST = Readertests 388RELDATE = Fri Dec 9 2011 389RM = /bin/rm 390SED = /bin/sed 391SET_MAKE = 392SHELL = /bin/sh 393STATIC_BINARIES = 394#STRIP = mipsel-linux-linux26-strip 395TAR = /bin/tar 396TEST_C14N = 397TEST_CATALOG = 398TEST_DEBUG = 399TEST_HTML = HTMLtests 400TEST_MODULES = ModuleTests 401TEST_PATTERN = Patterntests 402TEST_PHTML = HTMLPushtests 403TEST_PUSH = XMLPushtests 404TEST_REGEXPS = Regexptests Automatatests 405TEST_SAX = SAXtests 406TEST_SCHEMAS = Schemastests Relaxtests 407TEST_SCHEMATRON = Schematrontests 408TEST_THREADS = Threadtests 409TEST_VALID = Validtests 410TEST_VTIME = VTimingtests 411TEST_XINCLUDE = XIncludetests 412TEST_XPATH = XPathtests 413TEST_XPTR = XPtrtests 414THREADS_W32 = 415THREAD_CFLAGS = -D_REENTRANT 416THREAD_LIBS = 417U = 418VERSION = 2.7.2 419WGET = /usr/bin/wget 420WIN32_EXTRA_LDFLAGS = 421WIN32_EXTRA_LIBADD = 422WITH_C14N = 0 423WITH_CATALOG = 0 424WITH_DEBUG = 0 425WITH_DOCB = 0 426WITH_FTP = 0 427WITH_HTML = 1 428WITH_HTTP = 0 429WITH_ICONV = 0 430WITH_ISO8859X = 0 431WITH_LEGACY = 0 432WITH_MEM_DEBUG = 0 433WITH_MODULES = 1 434WITH_OUTPUT = 1 435WITH_PATTERN = 1 436WITH_PUSH = 1 437WITH_READER = 1 438WITH_REGEXPS = 1 439WITH_RUN_DEBUG = 0 440WITH_SAX1 = 1 441WITH_SCHEMAS = 1 442WITH_SCHEMATRON = 1 443WITH_THREADS = 1 444WITH_TREE = 1 445WITH_TRIO = 0 446WITH_VALID = 1 447WITH_WRITER = 1 448WITH_XINCLUDE = 1 449WITH_XPATH = 1 450WITH_XPTR = 1 451WITH_ZLIB = 1 452XINCLUDE_OBJ = xinclude.o 453XMLLINT = /usr/bin/xmllint 454XML_CFLAGS = 455XML_INCLUDEDIR = -I${includedir}/libxml2 456XML_LIBDIR = -L${libdir} 457XML_LIBS = -lxml2 -lz -lm 458XML_LIBTOOLLIBS = libxml2.la 459XPATH_OBJ = xpath.o 460XPTR_OBJ = xpointer.o 461XSLTPROC = /usr/bin/xsltproc 462Z_CFLAGS = 463Z_LIBS = -lz 464abs_builddir = ${TIMEMACHINE_PATH}/libxml2-2.7.2 465abs_srcdir = ${TIMEMACHINE_PATH}/libxml2-2.7.2 466abs_top_builddir = ${TIMEMACHINE_PATH}/libxml2-2.7.2 467abs_top_srcdir = ${TIMEMACHINE_PATH}/libxml2-2.7.2 468ac_ct_CC = 469ac_ct_CXX = 470ac_ct_F77 = gfortran 471am__include = include 472am__leading_dot = . 473am__quote = 474am__tar = ${AMTAR} chof - "$$tardir" 475am__untar = ${AMTAR} xf - 476bindir = /usr/bin 477#build = mipsel-uclibc-linux-gnu26 478#build_alias = mipsel-uclibc-linux-gnu26 479#build_cpu = mipsel 480build_os = linux-gnu26 481build_vendor = uclibc 482builddir = . 483datadir = /usr/share 484datarootdir = ${prefix}/share 485docdir = ${datarootdir}/doc/${PACKAGE} 486dvidir = ${docdir} 487exec_prefix = /usr 488#host = mipsel-uclibc-linux-gnu 489#host_alias = mipsel-uclibc-linux 490#host_cpu = mipsel 491host_os = linux-gnu 492host_vendor = uclibc 493htmldir = ${docdir} 494includedir = ${prefix}/include 495infodir = /usr/info 496install_sh = $(SHELL) ${TIMEMACHINE_PATH}/libxml2-2.7.2/install-sh 497libdir = ${exec_prefix}/lib 498libexecdir = /usr/lib 499localedir = ${datarootdir}/locale 500localstatedir = /var 501mandir = /usr/man 502mkdir_p = /bin/mkdir -p 503oldincludedir = /usr/include 504pdfdir = ${docdir} 505prefix = /usr 506program_transform_name = s&$$&&;s&^&& 507psdir = ${docdir} 508pythondir = 509sbindir = /usr/sbin 510sharedstatedir = ${prefix}/com 511srcdir = . 512sysconfdir = /etc 513#target_alias = mipsel-uclibc-linux-gnu26 514top_builddir = . 515top_srcdir = . 516#SUBDIRS = include . doc example xstc 517SUBDIRS = include . xstc 518#DIST_SUBDIRS = include . doc example python xstc 519DIST_SUBDIRS = include . python xstc 520INCLUDES = -I$(top_builddir)/include -I./include -D_REENTRANT 521bin_SCRIPTS = xml2-config 522lib_LTLIBRARIES = libxml2.la 523libxml2_la_LIBADD = -lz $(ICONV_LIBS) -lm 524libxml2_la_LDFLAGS = -version-info 9:2:7 -ldl 525libxml2_la_SOURCES = SAX.c entities.c encoding.c error.c parserInternals.c \ 526 parser.c tree.c hash.c list.c xmlIO.c xmlmemory.c uri.c \ 527 valid.c xlink.c HTMLparser.c HTMLtree.c debugXML.c xpath.c \ 528 xpointer.c xinclude.c nanohttp.c nanoftp.c DOCBparser.c \ 529 catalog.c globals.c threads.c c14n.c xmlstring.c \ 530 xmlregexp.c xmlschemas.c xmlschemastypes.c xmlunicode.c \ 531 xmlreader.c relaxng.c dict.c SAX2.c \ 532 xmlwriter.c legacy.c chvalid.c pattern.c xmlsave.c \ 533 xmlmodule.c schematron.c 534 535#libxml2_la_SOURCES = SAX.c entities.c encoding.c error.c parserInternals.c \ 536# parser.c tree.c hash.c list.c xmlIO.c xmlmemory.c uri.c \ 537# valid.c xlink.c HTMLparser.c HTMLtree.c debugXML.c xpath.c \ 538# xpointer.c xinclude.c nanohttp.c nanoftp.c DOCBparser.c \ 539# catalog.c globals.c threads.c c14n.c xmlstring.c \ 540# xmlregexp.c xmlschemas.c xmlschemastypes.c xmlunicode.c \ 541# triostr.c trio.c xmlreader.c relaxng.c dict.c SAX2.c \ 542# xmlwriter.c legacy.c chvalid.c pattern.c xmlsave.c \ 543# xmlmodule.c schematron.c 544 545DEPS = $(top_builddir)/libxml2.la 546LDADDS = $(top_builddir)/libxml2.la -lz $(ICONV_LIBS) -lm 547man_MANS = xml2-config.1 libxml.3 548m4datadir = $(datadir)/aclocal 549m4data_DATA = libxml.m4 550runtest_SOURCES = runtest.c 551runtest_LDFLAGS = 552runtest_DEPENDENCIES = $(DEPS) 553runtest_LDADD = -lpthread $(LDADDS) 554testrecurse_SOURCES = testrecurse.c 555testrecurse_LDFLAGS = 556testrecurse_DEPENDENCIES = $(DEPS) 557testrecurse_LDADD = -lpthread $(LDADDS) 558testchar_SOURCES = testchar.c 559testchar_LDFLAGS = 560testchar_DEPENDENCIES = $(DEPS) 561testchar_LDADD = $(LDADDS) 562testdict_SOURCES = testdict.c 563testdict_LDFLAGS = 564testdict_DEPENDENCIES = $(DEPS) 565testdict_LDADD = $(LDADDS) 566runsuite_SOURCES = runsuite.c 567runsuite_LDFLAGS = 568runsuite_DEPENDENCIES = $(DEPS) 569runsuite_LDADD = $(LDADDS) 570xmllint_SOURCES = xmllint.c 571xmllint_LDFLAGS = 572xmllint_DEPENDENCIES = $(DEPS) 573xmllint_LDADD = $(LDADDS) 574testSAX_SOURCES = testSAX.c 575testSAX_LDFLAGS = 576testSAX_DEPENDENCIES = $(DEPS) 577testSAX_LDADD = $(LDADDS) 578testHTML_SOURCES = testHTML.c 579testHTML_LDFLAGS = 580testHTML_DEPENDENCIES = $(DEPS) 581testHTML_LDADD = $(LDADDS) 582xmlcatalog_SOURCES = xmlcatalog.c 583xmlcatalog_LDFLAGS = 584xmlcatalog_DEPENDENCIES = $(DEPS) 585xmlcatalog_LDADD = $(LDADDS) 586testXPath_SOURCES = testXPath.c 587testXPath_LDFLAGS = 588testXPath_DEPENDENCIES = $(DEPS) 589testXPath_LDADD = $(LDADDS) 590testC14N_SOURCES = testC14N.c 591testC14N_LDFLAGS = 592testC14N_DEPENDENCIES = $(DEPS) 593testC14N_LDADD = $(LDADDS) 594testThreads_SOURCES = testThreads.c 595testThreads_LDFLAGS = 596testThreads_DEPENDENCIES = $(DEPS) 597testThreads_LDADD = -lpthread $(LDADDS) 598testURI_SOURCES = testURI.c 599testURI_LDFLAGS = 600testURI_DEPENDENCIES = $(DEPS) 601testURI_LDADD = $(LDADDS) 602testRegexp_SOURCES = testRegexp.c 603testRegexp_LDFLAGS = 604testRegexp_DEPENDENCIES = $(DEPS) 605testRegexp_LDADD = $(LDADDS) 606testAutomata_SOURCES = testAutomata.c 607testAutomata_LDFLAGS = 608testAutomata_DEPENDENCIES = $(DEPS) 609testAutomata_LDADD = $(LDADDS) 610testSchemas_SOURCES = testSchemas.c 611testSchemas_LDFLAGS = 612testSchemas_DEPENDENCIES = $(DEPS) 613testSchemas_LDADD = $(LDADDS) 614testRelax_SOURCES = testRelax.c 615testRelax_LDFLAGS = 616testRelax_DEPENDENCIES = $(DEPS) 617testRelax_LDADD = $(LDADDS) 618testReader_SOURCES = testReader.c 619testReader_LDFLAGS = 620testReader_DEPENDENCIES = $(DEPS) 621testReader_LDADD = $(LDADDS) 622testModule_SOURCES = testModule.c 623testModule_LDFLAGS = 624testModule_DEPENDENCIES = $(DEPS) 625testModule_LDADD = $(LDADDS) 626noinst_LTLIBRARIES = testdso.la 627testdso_la_SOURCES = testdso.c 628testdso_la_LDFLAGS = -module -rpath $(libdir) 629testapi_SOURCES = testapi.c 630testapi_LDFLAGS = 631testapi_DEPENDENCIES = $(DEPS) 632testapi_LDADD = $(LDADDS) 633runxmlconf_SOURCES = runxmlconf.c 634runxmlconf_LDFLAGS = 635runxmlconf_DEPENDENCIES = $(DEPS) 636runxmlconf_LDADD = $(LDADDS) 637CLEANFILES = xml2Conf.sh *.gcda *.gcno 638confexecdir = $(libdir) 639confexec_DATA = xml2Conf.sh 640CVS_EXTRA_DIST = 641EXTRA_DIST = xml2-config.in xml2Conf.sh.in libxml.spec.in libxml2.spec \ 642 libxml.m4 Copyright check-xml-test-suite.py gentest.py \ 643 check-relaxng-test-suite.py check-relaxng-test-suite2.py \ 644 check-xsddata-test-suite.py check-xinclude-test-suite.py \ 645 example/Makefile.am example/gjobread.c example/gjobs.xml \ 646 $(man_MANS) libxml-2.0.pc.in libxml-2.0-uninstalled.pc.in \ 647 trionan.c trionan.h triostr.c triostr.h trio.c trio.h \ 648 triop.h triodef.h libxml.h elfgcchack.h \ 649 testThreadsWin32.c genUnicode.py TODO_SCHEMAS \ 650 dbgen.pl dbgenattr.pl regressions.py regressions.xml \ 651 README.tests Makefile.tests \ 652 $(CVS_EXTRA_DIST) 653 654pkgconfigdir = $(libdir)/pkgconfig 655pkgconfig_DATA = libxml-2.0.pc 656 657# 658# Install the tests program sources as examples 659# 660BASE_DIR = $(datadir)/doc 661DOC_MODULE = libxml2-$(VERSION) 662EXAMPLES_DIR = $(BASE_DIR)/$(DOC_MODULE)/examples 663 664# 665# Coverage support, largely borrowed from libvirt 666# Both binaries comes from the lcov package in Fedora 667# 668LCOV = /usr/bin/lcov 669GENHTML = /usr/bin/genhtml 670all: config.h 671 $(MAKE) $(AM_MAKEFLAGS) all-recursive 672 673.SUFFIXES: 674.SUFFIXES: .c .lo .o .obj 675am--refresh: 676 @: 677$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) 678 @for dep in $?; do \ 679 case '$(am__configure_deps)' in \ 680 *$$dep*) \ 681 exit 0;; \ 682 esac; \ 683 done; \ 684 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; 685.PRECIOUS: Makefile 686Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 687 @case '$?' in \ 688 *config.status*) \ 689 echo ' $(SHELL) ./config.status'; \ 690 $(SHELL) ./config.status;; \ 691 *) \ 692 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ 693 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ 694 esac; 695 696$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) 697# $(SHELL) ./config.status --recheck 698 699$(top_srcdir)/configure: $(am__configure_deps) 700# cd $(srcdir) && $(AUTOCONF) 701# 702$(ACLOCAL_M4): $(am__aclocal_m4_deps) 703# cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) 704 705config.h: stamp-h1 706 @if test ! -f $@; then \ 707 rm -f stamp-h1; \ 708 $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ 709 else :; fi 710 711stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status 712 @rm -f stamp-h1 713 cd $(top_builddir) && $(SHELL) ./config.status config.h 714$(srcdir)/config.h.in: $(am__configure_deps) $(top_srcdir)/acconfig.h 715# cd $(top_srcdir) && $(AUTOHEADER) 716 rm -f stamp-h1 717 touch $@ 718 719distclean-hdr: 720 -rm -f config.h stamp-h1 721libxml2.spec: $(top_builddir)/config.status $(srcdir)/libxml.spec.in 722 cd $(top_builddir) && $(SHELL) ./config.status $@ 723xml2-config: $(top_builddir)/config.status $(srcdir)/xml2-config.in 724 cd $(top_builddir) && $(SHELL) ./config.status $@ 725libxml-2.0.pc: $(top_builddir)/config.status $(srcdir)/libxml-2.0.pc.in 726 cd $(top_builddir) && $(SHELL) ./config.status $@ 727libxml-2.0-uninstalled.pc: $(top_builddir)/config.status $(srcdir)/libxml-2.0-uninstalled.pc.in 728 cd $(top_builddir) && $(SHELL) ./config.status $@ 729install-libLTLIBRARIES: $(lib_LTLIBRARIES) 730 @$(NORMAL_INSTALL) 731 test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" 732 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ 733 if test -f $$p; then \ 734 f=$(am__strip_dir) \ 735 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \ 736 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \ 737 else :; fi; \ 738 done 739 740uninstall-libLTLIBRARIES: 741 @$(NORMAL_UNINSTALL) 742 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ 743 p=$(am__strip_dir) \ 744 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \ 745 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \ 746 done 747 748clean-libLTLIBRARIES: 749 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) 750 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ 751 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ 752 test "$$dir" != "$$p" || dir=.; \ 753 echo "rm -f \"$${dir}/so_locations\""; \ 754 rm -f "$${dir}/so_locations"; \ 755 done 756 757clean-noinstLTLIBRARIES: 758 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) 759 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ 760 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ 761 test "$$dir" != "$$p" || dir=.; \ 762 echo "rm -f \"$${dir}/so_locations\""; \ 763 rm -f "$${dir}/so_locations"; \ 764 done 765libxml2.la: $(libxml2_la_OBJECTS) $(libxml2_la_DEPENDENCIES) 766 $(libxml2_la_LINK) -rpath $(libdir) $(libxml2_la_OBJECTS) $(libxml2_la_LIBADD) $(LIBS) 767testdso.la: $(testdso_la_OBJECTS) $(testdso_la_DEPENDENCIES) 768 $(testdso_la_LINK) $(testdso_la_OBJECTS) $(testdso_la_LIBADD) $(LIBS) 769install-binPROGRAMS: $(bin_PROGRAMS) 770 @$(NORMAL_INSTALL) 771 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" 772 @list='$(bin_PROGRAMS)'; for p in $$list; do \ 773 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ 774 if test -f $$p \ 775 || test -f $$p1 \ 776 ; then \ 777 f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ 778 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ 779 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ 780 else :; fi; \ 781 done 782 783uninstall-binPROGRAMS: 784 @$(NORMAL_UNINSTALL) 785 @list='$(bin_PROGRAMS)'; for p in $$list; do \ 786 f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ 787 echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ 788 rm -f "$(DESTDIR)$(bindir)/$$f"; \ 789 done 790 791clean-binPROGRAMS: 792 @list='$(bin_PROGRAMS)'; for p in $$list; do \ 793 f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ 794 echo " rm -f $$p $$f"; \ 795 rm -f $$p $$f ; \ 796 done 797 798clean-noinstPROGRAMS: 799 @list='$(noinst_PROGRAMS)'; for p in $$list; do \ 800 f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ 801 echo " rm -f $$p $$f"; \ 802 rm -f $$p $$f ; \ 803 done 804runsuite$(EXEEXT): $(runsuite_OBJECTS) $(runsuite_DEPENDENCIES) 805 @rm -f runsuite$(EXEEXT) 806 $(runsuite_LINK) $(runsuite_OBJECTS) $(runsuite_LDADD) $(LIBS) 807runtest$(EXEEXT): $(runtest_OBJECTS) $(runtest_DEPENDENCIES) 808 @rm -f runtest$(EXEEXT) 809 $(runtest_LINK) $(runtest_OBJECTS) $(runtest_LDADD) $(LIBS) 810runxmlconf$(EXEEXT): $(runxmlconf_OBJECTS) $(runxmlconf_DEPENDENCIES) 811 @rm -f runxmlconf$(EXEEXT) 812 $(runxmlconf_LINK) $(runxmlconf_OBJECTS) $(runxmlconf_LDADD) $(LIBS) 813testAutomata$(EXEEXT): $(testAutomata_OBJECTS) $(testAutomata_DEPENDENCIES) 814 @rm -f testAutomata$(EXEEXT) 815 $(testAutomata_LINK) $(testAutomata_OBJECTS) $(testAutomata_LDADD) $(LIBS) 816testC14N$(EXEEXT): $(testC14N_OBJECTS) $(testC14N_DEPENDENCIES) 817 @rm -f testC14N$(EXEEXT) 818 $(testC14N_LINK) $(testC14N_OBJECTS) $(testC14N_LDADD) $(LIBS) 819testHTML$(EXEEXT): $(testHTML_OBJECTS) $(testHTML_DEPENDENCIES) 820 @rm -f testHTML$(EXEEXT) 821 $(testHTML_LINK) $(testHTML_OBJECTS) $(testHTML_LDADD) $(LIBS) 822testModule$(EXEEXT): $(testModule_OBJECTS) $(testModule_DEPENDENCIES) 823 @rm -f testModule$(EXEEXT) 824 $(testModule_LINK) $(testModule_OBJECTS) $(testModule_LDADD) $(LIBS) 825testReader$(EXEEXT): $(testReader_OBJECTS) $(testReader_DEPENDENCIES) 826 @rm -f testReader$(EXEEXT) 827 $(testReader_LINK) $(testReader_OBJECTS) $(testReader_LDADD) $(LIBS) 828testRegexp$(EXEEXT): $(testRegexp_OBJECTS) $(testRegexp_DEPENDENCIES) 829 @rm -f testRegexp$(EXEEXT) 830 $(testRegexp_LINK) $(testRegexp_OBJECTS) $(testRegexp_LDADD) $(LIBS) 831testRelax$(EXEEXT): $(testRelax_OBJECTS) $(testRelax_DEPENDENCIES) 832 @rm -f testRelax$(EXEEXT) 833 $(testRelax_LINK) $(testRelax_OBJECTS) $(testRelax_LDADD) $(LIBS) 834testSAX$(EXEEXT): $(testSAX_OBJECTS) $(testSAX_DEPENDENCIES) 835 @rm -f testSAX$(EXEEXT) 836 $(testSAX_LINK) $(testSAX_OBJECTS) $(testSAX_LDADD) $(LIBS) 837testSchemas$(EXEEXT): $(testSchemas_OBJECTS) $(testSchemas_DEPENDENCIES) 838 @rm -f testSchemas$(EXEEXT) 839 $(testSchemas_LINK) $(testSchemas_OBJECTS) $(testSchemas_LDADD) $(LIBS) 840testThreads$(EXEEXT): $(testThreads_OBJECTS) $(testThreads_DEPENDENCIES) 841 @rm -f testThreads$(EXEEXT) 842 $(testThreads_LINK) $(testThreads_OBJECTS) $(testThreads_LDADD) $(LIBS) 843testURI$(EXEEXT): $(testURI_OBJECTS) $(testURI_DEPENDENCIES) 844 @rm -f testURI$(EXEEXT) 845 $(testURI_LINK) $(testURI_OBJECTS) $(testURI_LDADD) $(LIBS) 846testXPath$(EXEEXT): $(testXPath_OBJECTS) $(testXPath_DEPENDENCIES) 847 @rm -f testXPath$(EXEEXT) 848 $(testXPath_LINK) $(testXPath_OBJECTS) $(testXPath_LDADD) $(LIBS) 849testapi$(EXEEXT): $(testapi_OBJECTS) $(testapi_DEPENDENCIES) 850 @rm -f testapi$(EXEEXT) 851 $(testapi_LINK) $(testapi_OBJECTS) $(testapi_LDADD) $(LIBS) 852testchar$(EXEEXT): $(testchar_OBJECTS) $(testchar_DEPENDENCIES) 853 @rm -f testchar$(EXEEXT) 854 $(testchar_LINK) $(testchar_OBJECTS) $(testchar_LDADD) $(LIBS) 855testdict$(EXEEXT): $(testdict_OBJECTS) $(testdict_DEPENDENCIES) 856 @rm -f testdict$(EXEEXT) 857 $(testdict_LINK) $(testdict_OBJECTS) $(testdict_LDADD) $(LIBS) 858testrecurse$(EXEEXT): $(testrecurse_OBJECTS) $(testrecurse_DEPENDENCIES) 859 @rm -f testrecurse$(EXEEXT) 860 $(testrecurse_LINK) $(testrecurse_OBJECTS) $(testrecurse_LDADD) $(LIBS) 861xmlcatalog$(EXEEXT): $(xmlcatalog_OBJECTS) $(xmlcatalog_DEPENDENCIES) 862 @rm -f xmlcatalog$(EXEEXT) 863 $(xmlcatalog_LINK) $(xmlcatalog_OBJECTS) $(xmlcatalog_LDADD) $(LIBS) 864xmllint$(EXEEXT): $(xmllint_OBJECTS) $(xmllint_DEPENDENCIES) 865 @rm -f xmllint$(EXEEXT) 866 $(xmllint_LINK) $(xmllint_OBJECTS) $(xmllint_LDADD) $(LIBS) 867install-binSCRIPTS: $(bin_SCRIPTS) 868 @$(NORMAL_INSTALL) 869 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" 870 @list='$(bin_SCRIPTS)'; for p in $$list; do \ 871 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ 872 if test -f $$d$$p; then \ 873 f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ 874 echo " $(binSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(bindir)/$$f'"; \ 875 $(binSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(bindir)/$$f"; \ 876 else :; fi; \ 877 done 878 879uninstall-binSCRIPTS: 880 @$(NORMAL_UNINSTALL) 881 @list='$(bin_SCRIPTS)'; for p in $$list; do \ 882 f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ 883 echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ 884 rm -f "$(DESTDIR)$(bindir)/$$f"; \ 885 done 886 887mostlyclean-compile: 888 -rm -f *.$(OBJEXT) 889 890distclean-compile: 891 -rm -f *.tab.c 892 893include ./$(DEPDIR)/DOCBparser.Plo 894include ./$(DEPDIR)/HTMLparser.Plo 895include ./$(DEPDIR)/HTMLtree.Plo 896include ./$(DEPDIR)/SAX.Plo 897include ./$(DEPDIR)/SAX2.Plo 898include ./$(DEPDIR)/c14n.Plo 899include ./$(DEPDIR)/catalog.Plo 900include ./$(DEPDIR)/chvalid.Plo 901include ./$(DEPDIR)/debugXML.Plo 902include ./$(DEPDIR)/dict.Plo 903include ./$(DEPDIR)/encoding.Plo 904include ./$(DEPDIR)/entities.Plo 905include ./$(DEPDIR)/error.Plo 906include ./$(DEPDIR)/globals.Plo 907include ./$(DEPDIR)/hash.Plo 908include ./$(DEPDIR)/legacy.Plo 909include ./$(DEPDIR)/list.Plo 910include ./$(DEPDIR)/nanoftp.Plo 911include ./$(DEPDIR)/nanohttp.Plo 912include ./$(DEPDIR)/parser.Plo 913include ./$(DEPDIR)/parserInternals.Plo 914include ./$(DEPDIR)/pattern.Plo 915include ./$(DEPDIR)/relaxng.Plo 916include ./$(DEPDIR)/runsuite.Po 917include ./$(DEPDIR)/runtest.Po 918include ./$(DEPDIR)/runxmlconf.Po 919include ./$(DEPDIR)/schematron.Plo 920include ./$(DEPDIR)/testAutomata.Po 921include ./$(DEPDIR)/testC14N.Po 922include ./$(DEPDIR)/testHTML.Po 923include ./$(DEPDIR)/testModule.Po 924include ./$(DEPDIR)/testReader.Po 925include ./$(DEPDIR)/testRegexp.Po 926include ./$(DEPDIR)/testRelax.Po 927include ./$(DEPDIR)/testSAX.Po 928include ./$(DEPDIR)/testSchemas.Po 929include ./$(DEPDIR)/testThreads.Po 930include ./$(DEPDIR)/testURI.Po 931include ./$(DEPDIR)/testXPath.Po 932include ./$(DEPDIR)/testapi.Po 933include ./$(DEPDIR)/testchar.Po 934include ./$(DEPDIR)/testdict.Po 935include ./$(DEPDIR)/testdso.Plo 936include ./$(DEPDIR)/testrecurse.Po 937include ./$(DEPDIR)/threads.Plo 938include ./$(DEPDIR)/tree.Plo 939include ./$(DEPDIR)/trio.Plo 940include ./$(DEPDIR)/triostr.Plo 941include ./$(DEPDIR)/uri.Plo 942include ./$(DEPDIR)/valid.Plo 943include ./$(DEPDIR)/xinclude.Plo 944include ./$(DEPDIR)/xlink.Plo 945include ./$(DEPDIR)/xmlIO.Plo 946include ./$(DEPDIR)/xmlcatalog.Po 947include ./$(DEPDIR)/xmllint.Po 948include ./$(DEPDIR)/xmlmemory.Plo 949include ./$(DEPDIR)/xmlmodule.Plo 950include ./$(DEPDIR)/xmlreader.Plo 951include ./$(DEPDIR)/xmlregexp.Plo 952include ./$(DEPDIR)/xmlsave.Plo 953include ./$(DEPDIR)/xmlschemas.Plo 954include ./$(DEPDIR)/xmlschemastypes.Plo 955include ./$(DEPDIR)/xmlstring.Plo 956include ./$(DEPDIR)/xmlunicode.Plo 957include ./$(DEPDIR)/xmlwriter.Plo 958include ./$(DEPDIR)/xpath.Plo 959include ./$(DEPDIR)/xpointer.Plo 960 961.c.o: 962 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< 963 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po 964# source='$<' object='$@' libtool=no \ 965# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ 966# $(COMPILE) -c $< 967 968.c.obj: 969 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` 970 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po 971# source='$<' object='$@' libtool=no \ 972# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ 973# $(COMPILE) -c `$(CYGPATH_W) '$<'` 974 975.c.lo: 976 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< 977 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo 978# source='$<' object='$@' libtool=yes \ 979# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ 980# $(LTCOMPILE) -c -o $@ $< 981 982mostlyclean-libtool: 983 -rm -f *.lo 984 985clean-libtool: 986 -rm -rf .libs _libs 987 988distclean-libtool: 989 -rm -f libtool 990install-man1: $(man1_MANS) $(man_MANS) 991 @$(NORMAL_INSTALL) 992 test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)" 993 @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ 994 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ 995 for i in $$l2; do \ 996 case "$$i" in \ 997 *.1*) list="$$list $$i" ;; \ 998 esac; \ 999 done; \ 1000 for i in $$list; do \ 1001 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ 1002 else file=$$i; fi; \ 1003 ext=`echo $$i | sed -e 's/^.*\\.//'`; \ 1004 case "$$ext" in \ 1005 1*) ;; \ 1006 *) ext='1' ;; \ 1007 esac; \ 1008 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ 1009 inst=`echo $$inst | sed -e 's/^.*\///'`; \ 1010 inst=`echo $$inst | sed '$(transform)'`.$$ext; \ 1011 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ 1012 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \ 1013 done 1014uninstall-man1: 1015 @$(NORMAL_UNINSTALL) 1016 @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ 1017 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ 1018 for i in $$l2; do \ 1019 case "$$i" in \ 1020 *.1*) list="$$list $$i" ;; \ 1021 esac; \ 1022 done; \ 1023 for i in $$list; do \ 1024 ext=`echo $$i | sed -e 's/^.*\\.//'`; \ 1025 case "$$ext" in \ 1026 1*) ;; \ 1027 *) ext='1' ;; \ 1028 esac; \ 1029 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ 1030 inst=`echo $$inst | sed -e 's/^.*\///'`; \ 1031 inst=`echo $$inst | sed '$(transform)'`.$$ext; \ 1032 echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \ 1033 rm -f "$(DESTDIR)$(man1dir)/$$inst"; \ 1034 done 1035install-man3: $(man3_MANS) $(man_MANS) 1036 @$(NORMAL_INSTALL) 1037 test -z "$(man3dir)" || $(MKDIR_P) "$(DESTDIR)$(man3dir)" 1038 @list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \ 1039 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ 1040 for i in $$l2; do \ 1041 case "$$i" in \ 1042 *.3*) list="$$list $$i" ;; \ 1043 esac; \ 1044 done; \ 1045 for i in $$list; do \ 1046 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ 1047 else file=$$i; fi; \ 1048 ext=`echo $$i | sed -e 's/^.*\\.//'`; \ 1049 case "$$ext" in \ 1050 3*) ;; \ 1051 *) ext='3' ;; \ 1052 esac; \ 1053 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ 1054 inst=`echo $$inst | sed -e 's/^.*\///'`; \ 1055 inst=`echo $$inst | sed '$(transform)'`.$$ext; \ 1056 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \ 1057 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)/$$inst"; \ 1058 done 1059uninstall-man3: 1060 @$(NORMAL_UNINSTALL) 1061 @list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \ 1062 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ 1063 for i in $$l2; do \ 1064 case "$$i" in \ 1065 *.3*) list="$$list $$i" ;; \ 1066 esac; \ 1067 done; \ 1068 for i in $$list; do \ 1069 ext=`echo $$i | sed -e 's/^.*\\.//'`; \ 1070 case "$$ext" in \ 1071 3*) ;; \ 1072 *) ext='3' ;; \ 1073 esac; \ 1074 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ 1075 inst=`echo $$inst | sed -e 's/^.*\///'`; \ 1076 inst=`echo $$inst | sed '$(transform)'`.$$ext; \ 1077 echo " rm -f '$(DESTDIR)$(man3dir)/$$inst'"; \ 1078 rm -f "$(DESTDIR)$(man3dir)/$$inst"; \ 1079 done 1080install-confexecDATA: $(confexec_DATA) 1081 @$(NORMAL_INSTALL) 1082 test -z "$(confexecdir)" || $(MKDIR_P) "$(DESTDIR)$(confexecdir)" 1083 @list='$(confexec_DATA)'; for p in $$list; do \ 1084 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ 1085 f=$(am__strip_dir) \ 1086 echo " $(confexecDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(confexecdir)/$$f'"; \ 1087 $(confexecDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(confexecdir)/$$f"; \ 1088 done 1089 1090uninstall-confexecDATA: 1091 @$(NORMAL_UNINSTALL) 1092 @list='$(confexec_DATA)'; for p in $$list; do \ 1093 f=$(am__strip_dir) \ 1094 echo " rm -f '$(DESTDIR)$(confexecdir)/$$f'"; \ 1095 rm -f "$(DESTDIR)$(confexecdir)/$$f"; \ 1096 done 1097install-m4dataDATA: $(m4data_DATA) 1098 @$(NORMAL_INSTALL) 1099 test -z "$(m4datadir)" || $(MKDIR_P) "$(DESTDIR)$(m4datadir)" 1100 @list='$(m4data_DATA)'; for p in $$list; do \ 1101 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ 1102 f=$(am__strip_dir) \ 1103 echo " $(m4dataDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(m4datadir)/$$f'"; \ 1104 $(m4dataDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(m4datadir)/$$f"; \ 1105 done 1106 1107uninstall-m4dataDATA: 1108 @$(NORMAL_UNINSTALL) 1109 @list='$(m4data_DATA)'; for p in $$list; do \ 1110 f=$(am__strip_dir) \ 1111 echo " rm -f '$(DESTDIR)$(m4datadir)/$$f'"; \ 1112 rm -f "$(DESTDIR)$(m4datadir)/$$f"; \ 1113 done 1114install-pkgconfigDATA: $(pkgconfig_DATA) 1115 @$(NORMAL_INSTALL) 1116 test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" 1117 @list='$(pkgconfig_DATA)'; for p in $$list; do \ 1118 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ 1119 f=$(am__strip_dir) \ 1120 echo " $(pkgconfigDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdir)/$$f'"; \ 1121 $(pkgconfigDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdir)/$$f"; \ 1122 done 1123 1124uninstall-pkgconfigDATA: 1125 @$(NORMAL_UNINSTALL) 1126 @list='$(pkgconfig_DATA)'; for p in $$list; do \ 1127 f=$(am__strip_dir) \ 1128 echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \ 1129 rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \ 1130 done 1131 1132# This directory's subdirectories are mostly independent; you can cd 1133# into them and run `make' without going through this Makefile. 1134# To change the values of `make' variables: instead of editing Makefiles, 1135# (1) if the variable is set in `config.status', edit `config.status' 1136# (which will cause the Makefiles to be regenerated when you run `make'); 1137# (2) otherwise, pass the desired values on the `make' command line. 1138$(RECURSIVE_TARGETS): 1139 @failcom='exit 1'; \ 1140 for f in x $$MAKEFLAGS; do \ 1141 case $$f in \ 1142 *=* | --[!k]*);; \ 1143 *k*) failcom='fail=yes';; \ 1144 esac; \ 1145 done; \ 1146 dot_seen=no; \ 1147 target=`echo $@ | sed s/-recursive//`; \ 1148 list='$(SUBDIRS)'; for subdir in $$list; do \ 1149 echo "Making $$target in $$subdir"; \ 1150 if test "$$subdir" = "."; then \ 1151 dot_seen=yes; \ 1152 local_target="$$target-am"; \ 1153 else \ 1154 local_target="$$target"; \ 1155 fi; \ 1156 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 1157 || eval $$failcom; \ 1158 done; \ 1159 if test "$$dot_seen" = "no"; then \ 1160 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ 1161 fi; test -z "$$fail" 1162 1163$(RECURSIVE_CLEAN_TARGETS): 1164 @failcom='exit 1'; \ 1165 for f in x $$MAKEFLAGS; do \ 1166 case $$f in \ 1167 *=* | --[!k]*);; \ 1168 *k*) failcom='fail=yes';; \ 1169 esac; \ 1170 done; \ 1171 dot_seen=no; \ 1172 case "$@" in \ 1173 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ 1174 *) list='$(SUBDIRS)' ;; \ 1175 esac; \ 1176 rev=''; for subdir in $$list; do \ 1177 if test "$$subdir" = "."; then :; else \ 1178 rev="$$subdir $$rev"; \ 1179 fi; \ 1180 done; \ 1181 rev="$$rev ."; \ 1182 target=`echo $@ | sed s/-recursive//`; \ 1183 for subdir in $$rev; do \ 1184 echo "Making $$target in $$subdir"; \ 1185 if test "$$subdir" = "."; then \ 1186 local_target="$$target-am"; \ 1187 else \ 1188 local_target="$$target"; \ 1189 fi; \ 1190 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 1191 || eval $$failcom; \ 1192 done && test -z "$$fail" 1193tags-recursive: 1194 list='$(SUBDIRS)'; for subdir in $$list; do \ 1195 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ 1196 done 1197ctags-recursive: 1198 list='$(SUBDIRS)'; for subdir in $$list; do \ 1199 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ 1200 done 1201 1202ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) 1203 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 1204 unique=`for i in $$list; do \ 1205 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 1206 done | \ 1207 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ 1208 END { if (nonempty) { for (i in files) print i; }; }'`; \ 1209 mkid -fID $$unique 1210tags: TAGS 1211 1212TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ 1213 $(TAGS_FILES) $(LISP) 1214 tags=; \ 1215 here=`pwd`; \ 1216 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ 1217 include_option=--etags-include; \ 1218 empty_fix=.; \ 1219 else \ 1220 include_option=--include; \ 1221 empty_fix=; \ 1222 fi; \ 1223 list='$(SUBDIRS)'; for subdir in $$list; do \ 1224 if test "$$subdir" = .; then :; else \ 1225 test ! -f $$subdir/TAGS || \ 1226 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ 1227 fi; \ 1228 done; \ 1229 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ 1230 unique=`for i in $$list; do \ 1231 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 1232 done | \ 1233 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ 1234 END { if (nonempty) { for (i in files) print i; }; }'`; \ 1235 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ 1236 test -n "$$unique" || unique=$$empty_fix; \ 1237 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 1238 $$tags $$unique; \ 1239 fi 1240ctags: CTAGS 1241CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ 1242 $(TAGS_FILES) $(LISP) 1243 tags=; \ 1244 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ 1245 unique=`for i in $$list; do \ 1246 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 1247 done | \ 1248 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ 1249 END { if (nonempty) { for (i in files) print i; }; }'`; \ 1250 test -z "$(CTAGS_ARGS)$$tags$$unique" \ 1251 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ 1252 $$tags $$unique 1253 1254GTAGS: 1255 here=`$(am__cd) $(top_builddir) && pwd` \ 1256 && cd $(top_srcdir) \ 1257 && gtags -i $(GTAGS_ARGS) $$here 1258 1259distclean-tags: 1260 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags 1261 1262distdir: $(DISTFILES) 1263 $(am__remove_distdir) 1264 test -d $(distdir) || mkdir $(distdir) 1265 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ 1266 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ 1267 list='$(DISTFILES)'; \ 1268 dist_files=`for file in $$list; do echo $$file; done | \ 1269 sed -e "s|^$$srcdirstrip/||;t" \ 1270 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ 1271 case $$dist_files in \ 1272 */*) $(MKDIR_P) `echo "$$dist_files" | \ 1273 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ 1274 sort -u` ;; \ 1275 esac; \ 1276 for file in $$dist_files; do \ 1277 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 1278 if test -d $$d/$$file; then \ 1279 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ 1280 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ 1281 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ 1282 fi; \ 1283 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ 1284 else \ 1285 test -f $(distdir)/$$file \ 1286 || cp -p $$d/$$file $(distdir)/$$file \ 1287 || exit 1; \ 1288 fi; \ 1289 done 1290 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ 1291 if test "$$subdir" = .; then :; else \ 1292 test -d "$(distdir)/$$subdir" \ 1293 || $(MKDIR_P) "$(distdir)/$$subdir" \ 1294 || exit 1; \ 1295 distdir=`$(am__cd) $(distdir) && pwd`; \ 1296 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ 1297 (cd $$subdir && \ 1298 $(MAKE) $(AM_MAKEFLAGS) \ 1299 top_distdir="$$top_distdir" \ 1300 distdir="$$distdir/$$subdir" \ 1301 am__remove_distdir=: \ 1302 am__skip_length_check=: \ 1303 distdir) \ 1304 || exit 1; \ 1305 fi; \ 1306 done 1307 $(MAKE) $(AM_MAKEFLAGS) \ 1308 top_distdir="$(top_distdir)" distdir="$(distdir)" \ 1309 dist-hook 1310 -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ 1311 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ 1312 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ 1313 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ 1314 || chmod -R a+r $(distdir) 1315dist-gzip: distdir 1316 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz 1317 $(am__remove_distdir) 1318 1319dist-bzip2: distdir 1320 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 1321 $(am__remove_distdir) 1322 1323dist-lzma: distdir 1324 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma 1325 $(am__remove_distdir) 1326 1327dist-tarZ: distdir 1328 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z 1329 $(am__remove_distdir) 1330 1331dist-shar: distdir 1332 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz 1333 $(am__remove_distdir) 1334 1335dist-zip: distdir 1336 -rm -f $(distdir).zip 1337 zip -rq $(distdir).zip $(distdir) 1338 $(am__remove_distdir) 1339 1340dist dist-all: distdir 1341 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz 1342 $(am__remove_distdir) 1343 1344# This target untars the dist file and tries a VPATH configuration. Then 1345# it guarantees that the distribution is self-contained by making another 1346# tarfile. 1347distcheck: dist 1348 case '$(DIST_ARCHIVES)' in \ 1349 *.tar.gz*) \ 1350 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ 1351 *.tar.bz2*) \ 1352 bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ 1353 *.tar.lzma*) \ 1354 unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\ 1355 *.tar.Z*) \ 1356 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ 1357 *.shar.gz*) \ 1358 GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ 1359 *.zip*) \ 1360 unzip $(distdir).zip ;;\ 1361 esac 1362 chmod -R a-w $(distdir); chmod a+w $(distdir) 1363 mkdir $(distdir)/_build 1364 mkdir $(distdir)/_inst 1365 chmod a-w $(distdir) 1366 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ 1367 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ 1368 && cd $(distdir)/_build \ 1369 && ../configure --srcdir=.. --prefix="$$dc_install_base" \ 1370 $(DISTCHECK_CONFIGURE_FLAGS) \ 1371 && $(MAKE) $(AM_MAKEFLAGS) \ 1372 && $(MAKE) $(AM_MAKEFLAGS) dvi \ 1373 && $(MAKE) $(AM_MAKEFLAGS) check \ 1374 && $(MAKE) $(AM_MAKEFLAGS) install \ 1375 && $(MAKE) $(AM_MAKEFLAGS) installcheck \ 1376 && $(MAKE) $(AM_MAKEFLAGS) uninstall \ 1377 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ 1378 distuninstallcheck \ 1379 && chmod -R a-w "$$dc_install_base" \ 1380 && ({ \ 1381 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ 1382 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ 1383 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ 1384 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ 1385 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ 1386 } || { rm -rf "$$dc_destdir"; exit 1; }) \ 1387 && rm -rf "$$dc_destdir" \ 1388 && $(MAKE) $(AM_MAKEFLAGS) dist \ 1389 && rm -rf $(DIST_ARCHIVES) \ 1390 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck 1391 $(am__remove_distdir) 1392 @(echo "$(distdir) archives ready for distribution: "; \ 1393 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ 1394 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' 1395distuninstallcheck: 1396 @cd $(distuninstallcheck_dir) \ 1397 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ 1398 || { echo "ERROR: files left after uninstall:" ; \ 1399 if test -n "$(DESTDIR)"; then \ 1400 echo " (check DESTDIR support)"; \ 1401 fi ; \ 1402 $(distuninstallcheck_listfiles) ; \ 1403 exit 1; } >&2 1404distcleancheck: distclean 1405 @if test '$(srcdir)' = . ; then \ 1406 echo "ERROR: distcleancheck can only run from a VPATH build" ; \ 1407 exit 1 ; \ 1408 fi 1409 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ 1410 || { echo "ERROR: files left in build directory after distclean:" ; \ 1411 $(distcleancheck_listfiles) ; \ 1412 exit 1; } >&2 1413check-am: all-am 1414check: check-recursive 1415all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) \ 1416 config.h 1417install-binPROGRAMS: install-libLTLIBRARIES 1418 1419installdirs: installdirs-recursive 1420installdirs-am: 1421 for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man3dir)" "$(DESTDIR)$(confexecdir)" "$(DESTDIR)$(m4datadir)" "$(DESTDIR)$(pkgconfigdir)"; do \ 1422 test -z "$$dir" || $(MKDIR_P) "$$dir"; \ 1423 done 1424install: install-recursive 1425install-exec: install-exec-recursive 1426install-data: install-data-recursive 1427uninstall: uninstall-recursive 1428 1429install-am: all-am 1430 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 1431 1432installcheck: installcheck-recursive 1433install-strip: 1434 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ 1435 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ 1436 `test -z '$(STRIP)' || \ 1437 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install 1438mostlyclean-generic: 1439 1440clean-generic: 1441 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) 1442 1443distclean-generic: 1444 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 1445 1446maintainer-clean-generic: 1447 @echo "This command is intended for maintainers to use" 1448 @echo "it deletes files that may require special tools to rebuild." 1449clean: clean-recursive 1450 1451clean-am: clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \ 1452 clean-libtool clean-noinstLTLIBRARIES clean-noinstPROGRAMS \ 1453 mostlyclean-am 1454 1455distclean: distclean-recursive 1456 -rm -f $(am__CONFIG_DISTCLEAN_FILES) 1457 -rm -rf ./$(DEPDIR) 1458 -rm -f Makefile 1459distclean-am: clean-am distclean-compile distclean-generic \ 1460 distclean-hdr distclean-libtool distclean-tags 1461 1462dvi: dvi-recursive 1463 1464dvi-am: 1465 1466html: html-recursive 1467 1468info: info-recursive 1469 1470info-am: 1471 1472install-data-am: install-data-local install-m4dataDATA install-man \ 1473 install-pkgconfigDATA 1474 1475install-dvi: install-dvi-recursive 1476 1477install-exec-am: install-binPROGRAMS install-binSCRIPTS \ 1478 install-confexecDATA install-libLTLIBRARIES 1479 1480install-html: install-html-recursive 1481 1482install-info: install-info-recursive 1483 1484install-man: install-man1 install-man3 1485 1486install-pdf: install-pdf-recursive 1487 1488install-ps: install-ps-recursive 1489 1490installcheck-am: 1491 1492maintainer-clean: maintainer-clean-recursive 1493 -rm -f $(am__CONFIG_DISTCLEAN_FILES) 1494 -rm -rf $(top_srcdir)/autom4te.cache 1495 -rm -rf ./$(DEPDIR) 1496 -rm -f Makefile 1497maintainer-clean-am: distclean-am maintainer-clean-generic 1498 1499mostlyclean: mostlyclean-recursive 1500 1501mostlyclean-am: mostlyclean-compile mostlyclean-generic \ 1502 mostlyclean-libtool 1503 1504pdf: pdf-recursive 1505 1506pdf-am: 1507 1508ps: ps-recursive 1509 1510ps-am: 1511 1512uninstall-am: uninstall-binPROGRAMS uninstall-binSCRIPTS \ 1513 uninstall-confexecDATA uninstall-libLTLIBRARIES \ 1514 uninstall-local uninstall-m4dataDATA uninstall-man \ 1515 uninstall-pkgconfigDATA 1516 1517uninstall-man: uninstall-man1 uninstall-man3 1518 1519.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ 1520 install-strip 1521 1522.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ 1523 all all-am am--refresh check check-am clean clean-binPROGRAMS \ 1524 clean-generic clean-libLTLIBRARIES clean-libtool \ 1525 clean-noinstLTLIBRARIES clean-noinstPROGRAMS ctags \ 1526 ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-hook \ 1527 dist-lzma dist-shar dist-tarZ dist-zip distcheck distclean \ 1528 distclean-compile distclean-generic distclean-hdr \ 1529 distclean-libtool distclean-tags distcleancheck distdir \ 1530 distuninstallcheck dvi dvi-am html html-am info info-am \ 1531 install install-am install-binPROGRAMS install-binSCRIPTS \ 1532 install-confexecDATA install-data install-data-am \ 1533 install-data-local install-dvi install-dvi-am install-exec \ 1534 install-exec-am install-html install-html-am install-info \ 1535 install-info-am install-libLTLIBRARIES install-m4dataDATA \ 1536 install-man install-man1 install-man3 install-pdf \ 1537 install-pdf-am install-pkgconfigDATA install-ps install-ps-am \ 1538 install-strip installcheck installcheck-am installdirs \ 1539 installdirs-am maintainer-clean maintainer-clean-generic \ 1540 mostlyclean mostlyclean-compile mostlyclean-generic \ 1541 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ 1542 uninstall uninstall-am uninstall-binPROGRAMS \ 1543 uninstall-binSCRIPTS uninstall-confexecDATA \ 1544 uninstall-libLTLIBRARIES uninstall-local uninstall-m4dataDATA \ 1545 uninstall-man uninstall-man1 uninstall-man3 \ 1546 uninstall-pkgconfigDATA 1547 1548 1549# that one forces the rebuild when "make rebuild" is run on doc/ 1550rebuild_testapi: 1551 -@(if [ "$(PYTHON)" != "" ] ; then \ 1552 $(PYTHON) $(srcdir)/gentest.py $(srcdir) ; fi ) 1553 1554# that one is just to make sure it is rebuilt if missing 1555# but adding the dependances generate mess 1556testapi.c: $(srcdir)/gentest.py 1557 -@(if [ "$(PYTHON)" != "" ] ; then \ 1558 $(PYTHON) $(srcdir)/gentest.py $(srcdir) ; fi ) 1559 1560#testOOM_SOURCES=testOOM.c testOOMlib.h testOOMlib.c 1561#testOOM_LDFLAGS = 1562#testOOM_DEPENDENCIES = $(DEPS) 1563#testOOM_LDADD= $(LDADDS) 1564 1565runtests: 1566 $(CHECKER) ./runtest$(EXEEXT) && $(CHECKER) ./testrecurse$(EXEEXT) &&$(CHECKER) ./testapi$(EXEEXT) && $(CHECKER) ./testchar$(EXEEXT)&& $(CHECKER) ./testdict$(EXEEXT) && $(CHECKER) ./runxmlconf$(EXEEXT) 1567 @(if [ "" != "" ] ; then cd python ; \ 1568 $(MAKE) MAKEFLAGS+=--silent tests ; fi) 1569 1570check: all runtests 1571 1572check-valgrind: all 1573 @echo '## Running the regression tests under Valgrind' 1574 @echo '## Go get a cup of coffee it is gonna take a while ...' 1575 $(MAKE) CHECKER='valgrind -q' check 1576 1577testall : tests SVGtests SAXtests 1578 1579tests: XMLtests XMLenttests NStests IDtests Errtests APItests Readertests SAXtests XMLPushtests HTMLtests HTMLPushtests Validtests URItests Patterntests XPathtests XPtrtests XIncludetests Regexptests Automatatests Schemastests Relaxtests Schematrontests Threadtests Timingtests VTimingtests ModuleTests 1580 @(if [ "" != "" ] ; then cd python ; \ 1581 $(MAKE) MAKEFLAGS+=--silent tests ; fi) 1582 @(cd doc/examples ; $(MAKE) MAKEFLAGS+=--silent tests) 1583 1584valgrind: 1585 @echo '## Running the regression tests under Valgrind' 1586 @echo '## Go get a cup of coffee it is gonna take a while ...' 1587 $(MAKE) CHECKER='valgrind -q' tests 1588 1589APItests: testapi$(EXEEXT) 1590 @echo "## Running the API regression tests this may take a little while" 1591 -@($(CHECKER) $(top_builddir)/testapi -q) 1592 1593HTMLtests : testHTML$(EXEEXT) 1594 @(echo > .memdump) 1595 @echo "## HTML regression tests" 1596 -@(for i in $(srcdir)/test/HTML/* ; do \ 1597 name=`basename $$i`; \ 1598 if [ ! -d $$i ] ; then \ 1599 if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \ 1600 echo New test file $$name ; \ 1601 $(CHECKER) $(top_builddir)/testHTML $$i > $(srcdir)/result/HTML/$$name 2>$(srcdir)/result/HTML/$$name.err ; \ 1602 else \ 1603 log=`$(CHECKER) $(top_builddir)/testHTML $$i > result.$$name 2> error.$$name ; \ 1604 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 1605 diff $(srcdir)/result/HTML/$$name result.$$name ; \ 1606 diff -b $(srcdir)/result/HTML/$$name.err error.$$name ; \ 1607 $(CHECKER) $(top_builddir)/testHTML result.$$name > result2.$$name 2>error.$$name ; \ 1608 diff result.$$name result2.$$name` ; \ 1609 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 1610 rm result.$$name result2.$$name error.$$name ; \ 1611 fi ; fi ; done) 1612 1613HTMLPushtests : testHTML$(EXEEXT) 1614 @echo "## Push HTML regression tests" 1615 -@(for i in $(srcdir)/test/HTML/* ; do \ 1616 name=`basename $$i`; \ 1617 if [ ! -d $$i ] ; then \ 1618 if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \ 1619 echo New test file $$name ; \ 1620 $(CHECKER) $(top_builddir)/testHTML --push $$i > $(srcdir)/result/HTML/$$name 2>$(srcdir)/result/HTML/$$name.err ; \ 1621 else \ 1622 log=`$(CHECKER) $(top_builddir)/testHTML --push $$i > result.$$name 2> error.$$name ; \ 1623 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 1624 diff $(srcdir)/result/HTML/$$name result.$$name ; \ 1625 cut -b 1-15 $(srcdir)/result/HTML/$$name.err > errorcut.$$name; \ 1626 cut -b 1-15 error.$$name > errorcut2.$$name; \ 1627 diff -b errorcut.$$name errorcut2.$$name ; \ 1628 $(CHECKER) $(top_builddir)/testHTML --push result.$$name > result2.$$name 2>error.$$name ; \ 1629 diff result.$$name result2.$$name` ; \ 1630 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 1631 rm result.$$name result2.$$name error.$$name errorcut.$$name errorcut2.$$name ; \ 1632 fi ; fi ; done) 1633 @echo "## HTML SAX regression tests" 1634 -@(for i in $(srcdir)/test/HTML/* ; do \ 1635 name=`basename $$i`; \ 1636 if [ ! -d $$i ] ; then \ 1637 if [ ! -f $(srcdir)/result/HTML/$$name.sax ] ; then \ 1638 echo New test file $$name ; \ 1639 $(CHECKER) $(top_builddir)/testHTML --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \ 1640 else \ 1641 log=`$(CHECKER) $(top_builddir)/testHTML --sax $$i > result.$$name.sax ; \ 1642 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 1643 diff $(srcdir)/result/HTML/$$name.sax result.$$name.sax` ; \ 1644 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 1645 rm result.$$name.sax ; \ 1646 fi ; fi ; done) 1647 @echo "## Push HTML SAX regression tests" 1648 -@(for i in $(srcdir)/test/HTML/* ; do \ 1649 name=`basename $$i`; \ 1650 if [ ! -d $$i ] ; then \ 1651 if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \ 1652 echo New test file $$name ; \ 1653 $(CHECKER) $(top_builddir)/testHTML --push --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \ 1654 else \ 1655 log=`$(CHECKER) $(top_builddir)/testHTML --push --sax $$i 2>&1 > result.$$name.sax ; \ 1656 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 1657 diff $(srcdir)/result/HTML/$$name.sax result.$$name.sax` ; \ 1658 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 1659 rm result.$$name.sax ; \ 1660 fi ; fi ; done) 1661 1662XMLtests : xmllint$(EXEEXT) 1663 @(echo > .memdump) 1664 @echo "## XML regression tests" 1665 -@(for i in $(srcdir)/test/* ; do \ 1666 name=`basename $$i`; \ 1667 if [ ! -d $$i ] ; then \ 1668 if [ ! -f $(srcdir)/result/$$name ] ; then \ 1669 echo New test file $$name ; \ 1670 $(CHECKER) $(top_builddir)/xmllint $$i > $(srcdir)/result/$$name ; \ 1671 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ 1672 else \ 1673 log=`$(CHECKER) $(top_builddir)/xmllint $$i 2>&1 > result.$$name ; \ 1674 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ 1675 diff $(srcdir)/result/$$name result.$$name ; \ 1676 $(CHECKER) $(top_builddir)/xmllint result.$$name 2>&1 > result2.$$name | grep -v 'failed to load external entity' ; \ 1677 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ 1678 diff result.$$name result2.$$name` ;\ 1679 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 1680 rm result.$$name result2.$$name ; \ 1681 fi ; fi ; done) 1682 @echo "## XML regression tests on memory" 1683 -@(for i in $(srcdir)/test/* ; do \ 1684 name=`basename $$i`; \ 1685 if [ ! -d $$i ] ; then \ 1686 if [ ! -f $(srcdir)/result/$$name ] ; then \ 1687 echo New test file $$name ; \ 1688 $(CHECKER) $(top_builddir)/xmllint --memory $$i > $(srcdir)/result/$$name ; \ 1689 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ 1690 else \ 1691 log=`$(CHECKER) $(top_builddir)/xmllint --memory $$i 2>&1 > result.$$name ; \ 1692 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 1693 diff $(srcdir)/result/$$name result.$$name ; \ 1694 $(CHECKER) $(top_builddir)/xmllint --memory result.$$name 2>&1 > result2.$$name | grep -v 'failed to load external entity' ; \ 1695 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"`; \ 1696 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 1697 diff result.$$name result2.$$name ; \ 1698 rm result.$$name result2.$$name ; \ 1699 fi ; fi ; done) 1700 1701XMLPushtests: xmllint$(EXEEXT) 1702 @(echo > .memdump) 1703 @echo "## XML push regression tests" 1704 -@(for i in $(srcdir)/test/* ; do \ 1705 name=`basename $$i`; \ 1706 if [ ! -d $$i ] ; then \ 1707 if [ ! -f $(srcdir)/result/$$name ] ; then \ 1708 echo New test file $$name ; \ 1709 $(CHECKER) $(top_builddir)/xmllint --push $$i > $(srcdir)/result/$$name ; \ 1710 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ 1711 else \ 1712 log=`$(CHECKER) $(top_builddir)/xmllint --push $$i 2>&1 > result.$$name ; \ 1713 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ 1714 diff $(srcdir)/result/$$name result.$$name ; \ 1715 $(CHECKER) $(top_builddir)/xmllint --push result.$$name 2>&1 > result2.$$name | grep -v 'failed to load external entity' ; \ 1716 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ 1717 diff result.$$name result2.$$name` ; \ 1718 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 1719 rm result.$$name result2.$$name ; \ 1720 fi ; fi ; done) 1721 1722NStests : xmllint$(EXEEXT) 1723 @(echo > .memdump) 1724 @echo "## XML Namespaces regression tests" 1725 -@(for i in $(srcdir)/test/namespaces/* ; do \ 1726 name=`basename $$i`; \ 1727 if [ ! -d $$i ] ; then \ 1728 if [ ! -f $(srcdir)/result/namespaces/$$name ] ; then \ 1729 echo New test file $$name ; \ 1730 $(CHECKER) $(top_builddir)/xmllint $$i \ 1731 2> $(srcdir)/result/namespaces/$$name.err \ 1732 > $(srcdir)/result/namespaces/$$name ; \ 1733 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ 1734 else \ 1735 log=`$(CHECKER) $(top_builddir)/xmllint $$i 2> error.$$name > result.$$name ; \ 1736 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ 1737 diff $(srcdir)/result/namespaces/$$name result.$$name ; \ 1738 diff $(srcdir)/result/namespaces/$$name.err error.$$name`; \ 1739 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 1740 rm result.$$name error.$$name ; \ 1741 fi ; fi ; done) 1742 1743IDtests : xmllint$(EXEEXT) testXPath$(EXEEXT) 1744 @(echo > .memdump) 1745 @echo "## xml:id regression tests" 1746 -@(for i in $(srcdir)/test/xmlid/id_*.xml ; do \ 1747 name=`basename $$i`; \ 1748 if [ ! -d $$i ] ; then \ 1749 if [ ! -f $(srcdir)/result/xmlid/$$name ] ; then \ 1750 echo New test file $$name ; \ 1751 $(CHECKER) $(top_builddir)/testXPath -i $$i "id('bar')" \ 1752 2> $(srcdir)/result/xmlid/$$name.err \ 1753 > $(srcdir)/result/xmlid/$$name ; \ 1754 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ 1755 else \ 1756 log=`$(CHECKER) $(top_builddir)/testXPath -i $$i "id('bar')" 2> error.$$name > result.$$name ; \ 1757 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ 1758 diff $(srcdir)/result/xmlid/$$name result.$$name ; \ 1759 diff $(srcdir)/result/xmlid/$$name.err error.$$name` ; \ 1760 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 1761 rm result.$$name error.$$name ; \ 1762 fi ; fi ; done) 1763 1764Errtests : xmllint$(EXEEXT) 1765 @(echo > .memdump) 1766 @echo "## Error cases regression tests" 1767 -@(for i in $(srcdir)/test/errors/*.xml ; do \ 1768 name=`basename $$i`; \ 1769 if [ ! -d $$i ] ; then \ 1770 if [ ! -f $(srcdir)/result/errors/$$name ] ; then \ 1771 echo New test file $$name ; \ 1772 $(CHECKER) $(top_builddir)/xmllint $$i \ 1773 2> $(srcdir)/result/errors/$$name.err \ 1774 > $(srcdir)/result/errors/$$name ; \ 1775 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ 1776 else \ 1777 log=`$(CHECKER) $(top_builddir)/xmllint $$i 2> error.$$name > result.$$name ; \ 1778 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ 1779 diff $(srcdir)/result/errors/$$name result.$$name ; \ 1780 diff $(srcdir)/result/errors/$$name.err error.$$name` ; \ 1781 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 1782 rm result.$$name error.$$name ; \ 1783 fi ; fi ; done) 1784 @echo "## Error cases stream regression tests" 1785 -@(for i in $(srcdir)/test/errors/*.xml ; do \ 1786 name=`basename $$i`; \ 1787 if [ ! -d $$i ] ; then \ 1788 if [ ! -f $(srcdir)/result/errors/$$name.str ] ; then \ 1789 echo New test file $$name ; \ 1790 $(CHECKER) $(top_builddir)/xmllint --stream $$i \ 1791 2> $(srcdir)/result/errors/$$name.str \ 1792 > /dev/null ; \ 1793 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ 1794 else \ 1795 log=`$(CHECKER) $(top_builddir)/xmllint --stream $$i 2> error.$$name > /dev/null ; \ 1796 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ 1797 diff $(srcdir)/result/errors/$$name.str error.$$name` ; \ 1798 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 1799 rm error.$$name ; \ 1800 fi ; fi ; done) 1801 1802Docbtests : xmllint$(EXEEXT) 1803 1804XMLenttests : xmllint$(EXEEXT) 1805 @(echo > .memdump) 1806 @echo "## XML entity subst regression tests" 1807 -@(for i in $(srcdir)/test/* ; do \ 1808 name=`basename $$i`; \ 1809 if [ ! -d $$i ] ; then \ 1810 if [ ! -f $(srcdir)/result/noent/$$name ] ; then \ 1811 echo New test file $$name ; \ 1812 $(CHECKER) $(top_builddir)/xmllint --noent $$i > $(srcdir)/result/noent/$$name ; \ 1813 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ 1814 else \ 1815 log=`$(CHECKER) $(top_builddir)/xmllint --noent $$i 2>&1 > result.$$name ; \ 1816 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ 1817 diff $(srcdir)/result/noent/$$name result.$$name ; \ 1818 $(CHECKER) $(top_builddir)/xmllint --noent result.$$name 2>&1 > result2.$$name ; \ 1819 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ 1820 diff result.$$name result2.$$name` ; \ 1821 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 1822 rm result.$$name result2.$$name ; \ 1823 fi ; fi ; done) 1824 1825URItests : testURI$(EXEEXT) 1826 @(echo > .memdump) 1827 @echo "## URI module regression tests" 1828 -@(for i in $(srcdir)/test/URI/*.data ; do \ 1829 name=`basename $$i`; \ 1830 if [ ! -d $$i ] ; then \ 1831 if [ ! -f $(srcdir)/result/URI/$$name ] ; then \ 1832 echo New test file $$name ; \ 1833 $(CHECKER) $(top_builddir)/testURI -base 'http://foo.com/path/to/index.html?orig#help' < $$i > $(srcdir)/result/URI/$$name ; \ 1834 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ 1835 else \ 1836 log=`$(CHECKER) $(top_builddir)/testURI -base 'http://foo.com/path/to/index.html?orig#help' < $$i 2>&1 > result.$$name ; \ 1837 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 1838 diff $(srcdir)/result/URI/$$name result.$$name` ; \ 1839 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 1840 rm result.$$name ; \ 1841 fi ; fi ; done) 1842 -@(for i in $(srcdir)/test/URI/*.uri ; do \ 1843 name=`basename $$i`; \ 1844 if [ ! -d $$i ] ; then \ 1845 if [ ! -f $(srcdir)/result/URI/$$name ] ; then \ 1846 echo New test file $$name ; \ 1847 $(CHECKER) $(top_builddir)/testURI < $$i > $(srcdir)/result/URI/$$name ; \ 1848 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ 1849 else \ 1850 log=`$(CHECKER) $(top_builddir)/testURI < $$i 2>&1 > result.$$name ; \ 1851 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 1852 diff $(srcdir)/result/URI/$$name result.$$name` ; \ 1853 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 1854 rm result.$$name ; \ 1855 fi ; fi ; done) 1856 1857XPathtests : testXPath$(EXEEXT) 1858 @(echo > .memdump) 1859 @echo "## XPath regression tests" 1860 -@(if [ "`$(top_builddir)/testXPath | grep 'support not compiled in'`" != "" ] ; \ 1861 then echo Skipping debug not compiled in ; exit 0 ; fi ; \ 1862 for i in $(srcdir)/test/XPath/expr/* ; do \ 1863 name=`basename $$i`; \ 1864 if [ ! -d $$i ] ; then \ 1865 if [ ! -f $(srcdir)/result/XPath/expr/$$name ] ; then \ 1866 echo New test file $$name ; \ 1867 $(CHECKER) $(top_builddir)/testXPath -f --expr $$i > $(srcdir)/result/XPath/expr/$$name ; \ 1868 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 1869 else \ 1870 log=`$(CHECKER) $(top_builddir)/testXPath -f --expr $$i 2>&1 > result.$$name ; \ 1871 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 1872 diff $(srcdir)/result/XPath/expr/$$name result.$$name` ; \ 1873 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 1874 rm result.$$name ; \ 1875 fi ; fi ; done ; \ 1876 for i in $(srcdir)/test/XPath/docs/* ; do \ 1877 if [ ! -d $$i ] ; then \ 1878 doc=`basename $$i`; \ 1879 for j in $(srcdir)/test/XPath/tests/$$doc* ; do \ 1880 if [ ! -f $$j ] ; then continue ; fi ; \ 1881 name=`basename $$j`; \ 1882 if [ ! -d $$j ] ; then \ 1883 if [ ! -f $(srcdir)/result/XPath/tests/$$name ] ; then \ 1884 echo New test file $$name ; \ 1885 $(CHECKER) $(top_builddir)/testXPath -f -i $$i $$j > $(srcdir)/result/XPath/tests/$$name ; \ 1886 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 1887 else \ 1888 log=`$(CHECKER) $(top_builddir)/testXPath -f -i $$i $$j 2>&1 > result.$$name ; \ 1889 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 1890 diff $(srcdir)/result/XPath/tests/$$name result.$$name` ; \ 1891 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 1892 rm result.$$name ; \ 1893 fi ; fi ; done ; fi ; done) 1894 1895XPtrtests : testXPath$(EXEEXT) 1896 @(echo > .memdump) 1897 @echo "## XPointer regression tests" 1898 -@(if [ "`$(top_builddir)/testXPath | grep 'support not compiled in'`" != "" ] ; \ 1899 then echo Skipping debug not compiled in ; exit 0 ; fi ; \ 1900 for i in $(srcdir)/test/XPath/docs/* ; do \ 1901 if [ ! -d $$i ] ; then \ 1902 doc=`basename $$i`; \ 1903 for j in $(srcdir)/test/XPath/xptr/$$doc* ; do \ 1904 if [ ! -f $$j ] ; then continue ; fi ; \ 1905 name=`basename $$j`; \ 1906 if [ ! -d $$j ] ; then \ 1907 if [ ! -f $(srcdir)/result/XPath/xptr/$$name ] ; then \ 1908 echo New test file $$name ; \ 1909 $(CHECKER) $(top_builddir)/testXPath -xptr -f -i $$i $$j > $(srcdir)/result/XPath/xptr/$$name ; \ 1910 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ 1911 else \ 1912 log=`$(CHECKER) $(top_builddir)/testXPath -xptr -f -i $$i $$j 2>&1 > result.$$name ; \ 1913 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 1914 diff $(srcdir)/result/XPath/xptr/$$name result.$$name` ; \ 1915 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 1916 rm result.$$name ; \ 1917 fi ; fi ; done ; fi ; done) 1918 1919XIncludetests : xmllint$(EXEEXT) 1920 @(echo > .memdump) 1921 @echo "## XInclude regression tests" 1922 -@(for i in $(srcdir)/test/XInclude/docs/* ; do \ 1923 name=`basename $$i`; \ 1924 if [ ! -d $$i ] ; then \ 1925 if [ ! -f $(srcdir)/result/XInclude/$$name ] ; then \ 1926 echo New test file $$name ; \ 1927 $(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude $$i > $(srcdir)/result/XInclude/$$name 2> $(srcdir)/result/XInclude/$$name.err ; \ 1928 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 1929 else \ 1930 log=`$(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude $$i > result.$$name 2>error.$$name ; \ 1931 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 1932 diff $(srcdir)/result/XInclude/$$name result.$$name ; \ 1933 diff $(srcdir)/result/XInclude/$$name.err error.$$name` ; \ 1934 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 1935 rm result.$$name error.$$name ; \ 1936 fi ; fi ; done) 1937 -@(for i in $(srcdir)/test/XInclude/docs/* ; do \ 1938 name=`basename $$i`; \ 1939 if [ ! -d $$i ] ; then \ 1940 if [ ! -f $(srcdir)/result/XInclude/$$name ] ; then \ 1941 echo New test file $$name ; \ 1942 $(CHECKER) $(top_builddir)/xmllint --nowarning --noxincludenode $$i > $(srcdir)/result/XInclude/$$name 2> $(srcdir)/result/XInclude/$$name.err ; \ 1943 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 1944 else \ 1945 log=`$(CHECKER) $(top_builddir)/xmllint --nowarning --noxincludenode $$i > result.$$name 2>error.$$name ; \ 1946 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 1947 diff $(srcdir)/result/XInclude/$$name result.$$name ; \ 1948 diff $(srcdir)/result/XInclude/$$name.err error.$$name` ; \ 1949 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 1950 rm result.$$name error.$$name ; \ 1951 fi ; fi ; done) 1952 @(echo > .memdump) 1953 @echo "## XInclude xmlReader regression tests" 1954 -@(for i in $(srcdir)/test/XInclude/docs/* ; do \ 1955 name=`basename $$i`; \ 1956 if [ ! -d $$i ] ; then \ 1957 if [ ! -f $(srcdir)/result/XInclude/$$name.rdr ] ; then \ 1958 echo New test file $$name ; \ 1959 $(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude --stream --debug $$i > $(srcdir)/result/XInclude/$$name.rdr ; \ 1960 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 1961 else \ 1962 log=`$(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude --stream --debug $$i > result.$$name 2>error.$$name ; \ 1963 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 1964 diff $(srcdir)/result/XInclude/$$name.err error.$$name ; \ 1965 diff $(srcdir)/result/XInclude/$$name.rdr result.$$name` ; \ 1966 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 1967 rm result.$$name error.$$name ; \ 1968 fi ; fi ; done) 1969 -@(for i in $(srcdir)/test/XInclude/docs/* ; do \ 1970 name=`basename $$i`; \ 1971 if [ ! -d $$i ] ; then \ 1972 if [ ! -f $(srcdir)/result/XInclude/$$name.rdr ] ; then \ 1973 echo New test file $$name ; \ 1974 $(CHECKER) $(top_builddir)/xmllint --nowarning --noxincludenode --stream --debug $$i > $(srcdir)/result/XInclude/$$name.rdr ; \ 1975 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 1976 else \ 1977 log=`$(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude --stream --debug $$i > result.$$name 2>error.$$name ; \ 1978 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 1979 diff $(srcdir)/result/XInclude/$$name.err error.$$name ; \ 1980 diff $(srcdir)/result/XInclude/$$name.rdr result.$$name` ; \ 1981 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 1982 rm result.$$name error.$$name ; \ 1983 fi ; fi ; done) 1984 1985Scripttests : xmllint$(EXEEXT) 1986 @(echo > .memdump) 1987 @echo "## Scripts regression tests" 1988 @echo "## Some of the base computations may be different if srcdir != ." 1989 -@(for i in $(srcdir)/test/scripts/*.script ; do \ 1990 name=`basename $$i .script`; \ 1991 xml=$(srcdir)/test/scripts/`basename $$i .script`.xml; \ 1992 if [ -f $$xml ] ; then \ 1993 if [ ! -f $(srcdir)/result/scripts/$$name ] ; then \ 1994 echo New test file $$name ; \ 1995 $(CHECKER) $(top_builddir)/xmllint --shell $$xml < $$i > $(srcdir)/result/scripts/$$name 2> $(srcdir)/result/scripts/$$name.err ; \ 1996 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 1997 else \ 1998 log=`$(CHECKER) $(top_builddir)/xmllint --shell $$xml < $$i > result.$$name 2> result.$$name.err ; \ 1999 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2000 diff $(srcdir)/result/scripts/$$name result.$$name ; \ 2001 diff $(srcdir)/result/scripts/$$name.err result.$$name.err` ; \ 2002 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 2003 rm result.$$name result.$$name.err ; \ 2004 fi ; fi ; done) 2005 2006Catatests : xmlcatalog$(EXEEXT) 2007 @(echo > .memdump) 2008 @echo "## Catalog regression tests" 2009 -@(for i in $(srcdir)/test/catalogs/*.script ; do \ 2010 name=`basename $$i .script`; \ 2011 xml=$(srcdir)/test/catalogs/`basename $$i .script`.xml; \ 2012 if [ -f $$xml ] ; then \ 2013 if [ ! -f $(srcdir)/result/catalogs/$$name ] ; then \ 2014 echo New test file $$name ; \ 2015 $(CHECKER) $(top_builddir)/xmlcatalog --shell $$xml < $$i 2>&1 > $(srcdir)/result/catalogs/$$name ; \ 2016 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2017 else \ 2018 log=`$(CHECKER) $(top_builddir)/xmlcatalog --shell $$xml < $$i 2>&1 > result.$$name ; \ 2019 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2020 diff $(srcdir)/result/catalogs/$$name result.$$name` ; \ 2021 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 2022 rm result.$$name ; \ 2023 fi ; fi ; done) 2024 -@(for i in $(srcdir)/test/catalogs/*.script ; do \ 2025 name=`basename $$i .script`; \ 2026 sgml=$(srcdir)/test/catalogs/`basename $$i .script`.sgml; \ 2027 if [ -f $$sgml ] ; then \ 2028 if [ ! -f $(srcdir)/result/catalogs/$$name ] ; then \ 2029 echo New test file $$name ; \ 2030 $(CHECKER) $(top_builddir)/xmlcatalog --shell $$sgml < $$i > $(srcdir)/result/catalogs/$$name ; \ 2031 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2032 else \ 2033 log=`$(CHECKER) $(top_builddir)/xmlcatalog --shell $$sgml < $$i > result.$$name ; \ 2034 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2035 diff $(srcdir)/result/catalogs/$$name result.$$name` ; \ 2036 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 2037 rm result.$$name ; \ 2038 fi ; fi ; done) 2039 @echo "## Add and del operations on XML Catalogs" 2040 -@($(CHECKER) $(top_builddir)/xmlcatalog --create --noout $(srcdir)/result/catalogs/mycatalog; \ 2041 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ 2042 $(CHECKER) $(top_builddir)/xmlcatalog --noout --add public Pubid sysid $(srcdir)/result/catalogs/mycatalog; \ 2043 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ 2044 $(CHECKER) $(top_builddir)/xmlcatalog --noout --add public Pubid2 sysid2 $(srcdir)/result/catalogs/mycatalog; \ 2045 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ 2046 $(CHECKER) $(top_builddir)/xmlcatalog --noout --add public Pubid3 sysid3 $(srcdir)/result/catalogs/mycatalog; \ 2047 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ 2048 diff result/catalogs/mycatalog.full $(srcdir)/result/catalogs/mycatalog; \ 2049 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ 2050 $(CHECKER) $(top_builddir)/xmlcatalog --noout --del sysid $(srcdir)/result/catalogs/mycatalog; \ 2051 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ 2052 $(CHECKER) $(top_builddir)/xmlcatalog --noout --del sysid3 $(srcdir)/result/catalogs/mycatalog; \ 2053 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ 2054 $(CHECKER) $(top_builddir)/xmlcatalog --noout --del sysid2 $(srcdir)/result/catalogs/mycatalog; \ 2055 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ 2056 diff result/catalogs/mycatalog.empty $(srcdir)/result/catalogs/mycatalog; \ 2057 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ 2058 rm -f $(srcdir)/result/catalogs/mycatalog) 2059 2060SVGtests : xmllint$(EXEEXT) 2061 @echo "## SVG parsing regression tests" 2062 -@(for i in $(srcdir)/test/SVG/* ; do \ 2063 name=`basename $$i`; \ 2064 if [ ! -d $$i ] ; then \ 2065 if [ ! -f $(srcdir)/result/SVG/$$name ] ; then \ 2066 echo New test file $$name ; \ 2067 $(CHECKER) $(top_builddir)/xmllint $$i > $(srcdir)/result/SVG/$$name ; \ 2068 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2069 else \ 2070 echo Testing $$name ; \ 2071 $(CHECKER) $(top_builddir)/xmllint $$i > result.$$name ; \ 2072 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2073 diff $(srcdir)/result/SVG/$$name result.$$name ; \ 2074 $(CHECKER) $(top_builddir)/xmllint result.$$name > result2.$$name ; \ 2075 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2076 diff result.$$name result2.$$name ; \ 2077 rm result.$$name result2.$$name ; \ 2078 fi ; fi ; done) 2079 2080Threadtests : testThreads$(EXEEXT) 2081 @echo "## Threaded regression tests" 2082 -@($(CHECKER) $(top_builddir)/testThreads ; \ 2083 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \ 2084 exit 0) 2085 2086Readertests : xmllint$(EXEEXT) 2087 @(echo > .memdump) 2088 @echo "## Reader regression tests" 2089 -@(for i in $(srcdir)/test/* ; do \ 2090 name=`basename $$i`; \ 2091 if [ ! -d $$i ] ; then \ 2092 if [ ! -f $(srcdir)/result/$$name.rdr ] ; then \ 2093 echo New test file $$name ; \ 2094 $(CHECKER) $(top_builddir)/xmllint --nonet --debug --stream $$i > $(srcdir)/result/$$name.rdr 2>/dev/null ; \ 2095 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2096 else \ 2097 log=`$(CHECKER) $(top_builddir)/xmllint --nonet --debug --stream $$i > result.$$name 2>/dev/null ; \ 2098 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2099 diff $(srcdir)/result/$$name.rdr result.$$name` ; \ 2100 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 2101 rm result.$$name ; \ 2102 fi ; fi ; done) 2103 @echo "## Reader on memory regression tests" 2104 -@(for i in $(srcdir)/test/* ; do \ 2105 name=`basename $$i`; \ 2106 if [ ! -d $$i ] ; then \ 2107 if [ ! -f $(srcdir)/result/$$name.rdr ] ; then \ 2108 echo New test file $$name ; \ 2109 $(CHECKER) $(top_builddir)/xmllint --memory --nonet --debug --stream $$i > $(srcdir)/result/$$name.rdr 2>/dev/null ; \ 2110 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2111 else \ 2112 log=`$(CHECKER) $(top_builddir)/xmllint --memory --nonet --debug --stream $$i > result.$$name 2>/dev/null ; \ 2113 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2114 diff $(srcdir)/result/$$name.rdr result.$$name` ; \ 2115 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 2116 rm result.$$name ; \ 2117 fi ; fi ; done) 2118 @(echo > .memdump) 2119 @echo "## Walker regression tests" 2120 -@(for i in $(srcdir)/test/* ; do \ 2121 name=`basename $$i`; \ 2122 if [ ! -d $$i ] ; then \ 2123 if [ ! -f $(srcdir)/result/$$name.rdr ] ; then \ 2124 echo New test file $$name ; \ 2125 $(CHECKER) $(top_builddir)/xmllint --nonet --debug --walker $$i > $(srcdir)/result/$$name.rdr 2>/dev/null ; \ 2126 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2127 else \ 2128 log=`$(CHECKER) $(top_builddir)/xmllint --nonet --debug --walker $$i > result.$$name 2>/dev/null ; \ 2129 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2130 diff $(srcdir)/result/$$name.rdr result.$$name` ; \ 2131 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 2132 rm result.$$name ; \ 2133 fi ; fi ; done) 2134 @echo "## Reader entities substitution regression tests" 2135 -@(for i in $(srcdir)/test/* ; do \ 2136 name=`basename $$i`; \ 2137 if [ ! -d $$i ] ; then \ 2138 if [ ! -f $(srcdir)/result/$$name.rde ] ; then \ 2139 echo New test file $$name ; \ 2140 $(CHECKER) $(top_builddir)/xmllint --noent --nonet --debug --stream $$i > $(srcdir)/result/$$name.rde 2>/dev/null ; \ 2141 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2142 else \ 2143 log=`$(CHECKER) $(top_builddir)/xmllint --noent --nonet --debug --stream $$i > result.$$name 2>/dev/null ; \ 2144 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2145 diff $(srcdir)/result/$$name.rde result.$$name` ; \ 2146 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 2147 rm result.$$name ; \ 2148 fi ; fi ; done) 2149 2150SAXtests : testSAX$(EXEEXT) 2151 @(echo > .memdump) 2152 @echo "## SAX1 callbacks regression tests" 2153 -@(for i in $(srcdir)/test/* ; do \ 2154 name=`basename $$i`; \ 2155 if [ ! -d $$i ] ; then \ 2156 if [ ! -f $(srcdir)/result/$$name.sax ] ; then \ 2157 echo New test file $$name ; \ 2158 $(CHECKER) $(top_builddir)/testSAX $$i > $(srcdir)/result/$$name.sax 2> /dev/null ; \ 2159 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2160 else \ 2161 log=`$(CHECKER) $(top_builddir)/testSAX $$i > result.$$name 2> /dev/null ; \ 2162 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2163 diff $(srcdir)/result/$$name.sax result.$$name` ; \ 2164 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 2165 rm result.$$name ; \ 2166 fi ; fi ; done) 2167 @echo "## SAX2 callbacks regression tests" 2168 -@(for i in $(srcdir)/test/* ; do \ 2169 name=`basename $$i`; \ 2170 if [ ! -d $$i ] ; then \ 2171 if [ ! -f $(srcdir)/result/$$name.sax2 ] ; then \ 2172 echo New test file $$name ; \ 2173 $(CHECKER) $(top_builddir)/testSAX --sax2 $$i > $(srcdir)/result/$$name.sax2 2> /dev/null ; \ 2174 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2175 else \ 2176 log=`$(CHECKER) $(top_builddir)/testSAX --sax2 $$i > result.$$name 2> /dev/null ; \ 2177 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2178 diff $(srcdir)/result/$$name.sax2 result.$$name` ; \ 2179 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 2180 rm result.$$name ; \ 2181 fi ; fi ; done) 2182 2183Validtests : xmllint$(EXEEXT) 2184 @(echo > .memdump) 2185 @echo "## Valid documents regression tests" 2186 -@(for i in $(srcdir)/test/VCM/* ; do \ 2187 name=`basename $$i`; \ 2188 if [ ! -d $$i ] ; then \ 2189 log=`$(CHECKER) $(top_builddir)/xmllint --valid --noout --nowarning $$i ; \ 2190 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"`;\ 2191 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 2192 fi ; done ; exit 0) 2193 @echo "## Validity checking regression tests" 2194 -@(for i in $(srcdir)/test/VC/* ; do \ 2195 name=`basename $$i`; \ 2196 if [ ! -d $$i ] ; then \ 2197 if [ ! -f $(srcdir)/result/VC/$$name ] ; then \ 2198 echo New test file $$name ; \ 2199 $(CHECKER) $(top_builddir)/xmllint --noout --valid $$i 2> $(srcdir)/result/VC/$$name ; \ 2200 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2201 else \ 2202 log=`$(CHECKER) $(top_builddir)/xmllint --noout --valid $$i 2> result.$$name ; \ 2203 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2204 diff $(srcdir)/result/VC/$$name result.$$name` ; \ 2205 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 2206 rm result.$$name ; \ 2207 fi ; fi ; done) 2208 @echo "## General documents valid regression tests" 2209 -@(for i in $(srcdir)/test/valid/* ; do \ 2210 name=`basename $$i`; \ 2211 if [ ! -d $$i ] ; then \ 2212 if [ ! -f $(srcdir)/result/valid/$$name ] ; then \ 2213 echo New test file $$name ; \ 2214 $(CHECKER) $(top_builddir)/xmllint --valid $$i > $(srcdir)/result/valid/$$name 2>$(srcdir)/result/valid/$$name.err ; \ 2215 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2216 else \ 2217 log=`$(CHECKER) $(top_builddir)/xmllint --valid $$i > result.$$name 2>error.$$name ; \ 2218 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2219 diff $(srcdir)/result/valid/$$name result.$$name ; \ 2220 diff $(srcdir)/result/valid/$$name.err error.$$name` ; \ 2221 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 2222 rm result.$$name error.$$name ; \ 2223 fi ; fi ; done) 2224 2225Regexptests: testRegexp$(EXEEXT) 2226 @(echo > .memdump) 2227 @echo "## Regexp regression tests" 2228 -@(for i in $(srcdir)/test/regexp/* ; do \ 2229 name=`basename $$i`; \ 2230 if [ ! -d $$i ] ; then \ 2231 if [ ! -f $(srcdir)/result/regexp/$$name ] ; then \ 2232 echo New test file $$name ; \ 2233 $(CHECKER) $(top_builddir)/testRegexp -i $$i > $(srcdir)/result/regexp/$$name; \ 2234 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2235 else \ 2236 log=`$(CHECKER) $(top_builddir)/testRegexp -i $$i 2>&1 > result.$$name ; \ 2237 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2238 diff $(srcdir)/result/regexp/$$name result.$$name` ; \ 2239 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 2240 rm result.$$name ; \ 2241 fi ; fi ; done) 2242 @echo "## Formal expresssions regression tests" 2243 -@(for i in $(srcdir)/test/expr/* ; do \ 2244 name=`basename $$i`; \ 2245 if [ ! -d $$i ] ; then \ 2246 if [ ! -f $(srcdir)/result/expr/$$name ] ; then \ 2247 echo New test file $$name ; \ 2248 $(CHECKER) $(top_builddir)/testRegexp --expr -i $$i > $(srcdir)/result/expr/$$name; \ 2249 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2250 else \ 2251 log=`$(CHECKER) $(top_builddir)/testRegexp --expr -i $$i 2>&1 > result.$$name ; \ 2252 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2253 diff $(srcdir)/result/expr/$$name result.$$name` ; \ 2254 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 2255 rm result.$$name ; \ 2256 fi ; fi ; done) 2257 2258Automatatests: testAutomata$(EXEEXT) 2259 @(echo > .memdump) 2260 @echo "## Automata regression tests" 2261 -@(for i in $(srcdir)/test/automata/* ; do \ 2262 name=`basename $$i`; \ 2263 if [ ! -d $$i ] ; then \ 2264 if [ ! -f $(srcdir)/result/automata/$$name ] ; then \ 2265 echo New test file $$name ; \ 2266 $(CHECKER) $(top_builddir)/testAutomata $$i > $(srcdir)/result/automata/$$name; \ 2267 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2268 else \ 2269 log=`$(CHECKER) $(top_builddir)/testAutomata $$i 2>&1 > result.$$name ; \ 2270 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2271 diff $(srcdir)/result/automata/$$name result.$$name` ; \ 2272 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 2273 rm result.$$name ; \ 2274 fi ; fi ; done) 2275 2276dba100000.xml: dbgenattr.pl 2277 @echo "## generating dba100000.xml" 2278 @($(PERL) $(top_srcdir)/dbgenattr.pl 100000 > dba100000.xml) 2279 2280Timingtests: xmllint$(EXEEXT) dba100000.xml 2281 @echo "## Timing tests to try to detect performance" 2282 @echo "## as well a memory usage breakage when streaming" 2283 @echo "## 1/ using the file interface" 2284 @echo "## 2/ using the memory interface" 2285 @echo "## 3/ repeated DOM parsing" 2286 @echo "## 4/ repeated DOM validation" 2287 -@($(top_builddir)/xmllint --stream --timing dba100000.xml; \ 2288 MEM=`cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}'`;\ 2289 if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \ 2290 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2291 exit 0) 2292 -@($(top_builddir)/xmllint --stream --timing --memory dba100000.xml; \ 2293 MEM=`cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}'`;\ 2294 if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \ 2295 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2296 exit 0) 2297 -@($(top_builddir)/xmllint --noout --timing --repeat $(srcdir)/test/valid/REC-xml-19980210.xml; \ 2298 MEM=`cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}'`;\ 2299 if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \ 2300 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2301 exit 0) 2302 2303VTimingtests: xmllint$(EXEEXT) 2304 -@($(top_builddir)/xmllint --noout --timing --valid --repeat $(srcdir)/test/valid/REC-xml-19980210.xml; \ 2305 MEM=`cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}'`;\ 2306 if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \ 2307 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2308 exit 0) 2309 2310C14Ntests : testC14N$(EXEEXT) 2311 @echo "## C14N and XPath regression tests" 2312 -@(for m in with-comments without-comments exc-without-comments ; do \ 2313 for i in $(srcdir)/test/c14n/$$m/*.xml ; do \ 2314 if [ ! -d $$i ] ; then \ 2315 name=`basename $$i .xml`; \ 2316 cmdline="$(CHECKER) $(top_builddir)/testC14N --$$m $$i"; \ 2317 if [ -f $(srcdir)/test/c14n/$$m/$$name.xpath ] ; then \ 2318 cmdline="$$cmdline $(srcdir)/test/c14n/$$m/$$name.xpath"; \ 2319 if [ -f $(srcdir)/test/c14n/$$m/$$name.ns ] ; then \ 2320 cmdline="$$cmdline '`cat $(srcdir)/test/c14n/$$m/$$name.ns`'"; \ 2321 fi; \ 2322 fi; \ 2323 $$cmdline > $(srcdir)/test/c14n/test.tmp; \ 2324 if [ $$? -eq 0 ]; then \ 2325 diff $(srcdir)/result/c14n/$$m/$$name $(srcdir)/test/c14n/test.tmp; \ 2326 if [ $$? -ne 0 ]; then \ 2327 echo "Test $$m/$$name failed"; \ 2328 cat $(srcdir)/test/c14n/test.tmp; \ 2329 fi; \ 2330 else \ 2331 echo "C14N failed"; \ 2332 fi; \ 2333 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2334 fi; \ 2335 rm -f $(srcdir)/test/c14n/test.tmp; \ 2336 done; \ 2337 done) 2338 2339Schemastests: testSchemas$(EXEEXT) 2340 @(echo > .memdump) 2341 @echo "## Schemas regression tests" 2342 -@(for i in $(srcdir)/test/schemas/*_*.xsd ; do \ 2343 name=`basename $$i | sed 's+_.*++'`; \ 2344 sno=`basename $$i | sed 's+.*_\(.*\).xsd+\1+'`; \ 2345 for j in $(srcdir)/test/schemas/"$$name"_*.xml ; do \ 2346 if [ -f $$j ] ; then \ 2347 xno=`basename $$j | sed 's+.*_\(.*\).xml+\1+'`; \ 2348 if [ ! -f $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno" ]; \ 2349 then \ 2350 echo New test file "$$name"_"$$sno"_"$$xno" ; \ 2351 $(CHECKER) $(top_builddir)/testSchemas $$i $$j \ 2352 > $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno" \ 2353 2> $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno".err; \ 2354 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2355 else \ 2356 log=`$(CHECKER) $(top_builddir)/testSchemas $$i $$j \ 2357 > res.$$name 2> err.$$name;\ 2358 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2359 diff $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno" \ 2360 res.$$name;\ 2361 diff $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno".err \ 2362 err.$$name;\ 2363 grep Unimplemented err.$$name`; \ 2364 if [ -n "$$log" ] ; then echo "$$name"_"$$sno"_"$$xno" result ; echo $$log ; fi ; \ 2365 rm res.$$name err.$$name ; \ 2366 fi ; fi ;\ 2367 done; done) 2368 2369Relaxtests: xmllint$(EXEEXT) 2370 @(echo > .memdump) 2371 @echo "## Relax-NG regression tests" 2372 -@(for i in $(srcdir)/test/relaxng/*.rng ; do \ 2373 name=`basename $$i | sed 's+\.rng++'`; \ 2374 if [ ! -f $(srcdir)/result/relaxng/"$$name"_valid ] ; then \ 2375 echo New schemas $$name ; \ 2376 $(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $(srcdir)/test/relaxng/tutorA.rng $$i \ 2377 > $(srcdir)/result/relaxng/"$$name"_valid \ 2378 2> $(srcdir)/result/relaxng/"$$name"_err; \ 2379 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2380 else \ 2381 log=`$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $(srcdir)/test/relaxng/tutorA.rng $$i \ 2382 > res.$$name 2> err.$$name;\ 2383 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2384 diff $(srcdir)/result/relaxng/"$$name"_valid \ 2385 res.$$name;\ 2386 diff $(srcdir)/result/relaxng/"$$name"_err \ 2387 err.$$name | grep -v "error detected at";\ 2388 grep Unimplemented err.$$name`; \ 2389 if [ -n "$$log" ] ; then echo schemas $$name result ; echo $$log ; fi ; \ 2390 rm res.$$name err.$$name ; \ 2391 fi; \ 2392 for j in $(srcdir)/test/relaxng/"$$name"_*.xml ; do \ 2393 if [ -f $$j ] ; then \ 2394 xno=`basename $$j | sed 's+.*_\(.*\).xml+\1+'`; \ 2395 if [ ! -f $(srcdir)/result/relaxng/"$$name"_"$$xno" ]; \ 2396 then \ 2397 echo New test file "$$name"_"$$xno" ; \ 2398 $(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $$i $$j \ 2399 > $(srcdir)/result/relaxng/"$$name"_"$$xno" \ 2400 2> $(srcdir)/result/relaxng/"$$name"_"$$xno".err; \ 2401 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2402 else \ 2403 log=`$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $$i $$j \ 2404 > res.$$name 2> err.$$name;\ 2405 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2406 diff $(srcdir)/result/relaxng/"$$name"_"$$xno" \ 2407 res.$$name;\ 2408 diff $(srcdir)/result/relaxng/"$$name"_"$$xno".err \ 2409 err.$$name | grep -v "error detected at";\ 2410 grep Unimplemented err.$$name`; \ 2411 if [ -n "$$log" ] ; then echo "$$name"_"$$xno" result ; echo $$log ; fi ; \ 2412 rm res.$$name err.$$name ; \ 2413 fi ; fi ; \ 2414 done; done) 2415 @echo "## Relax-NG streaming regression tests" 2416 -@(for i in $(srcdir)/test/relaxng/*.rng ; do \ 2417 name=`basename $$i | sed 's+\.rng++'`; \ 2418 for j in $(srcdir)/test/relaxng/"$$name"_*.xml ; do \ 2419 if [ -f $$j ] ; then \ 2420 xno=`basename $$j | sed 's+.*_\(.*\).xml+\1+'`; \ 2421 if [ ! -f $(srcdir)/result/relaxng/"$$name"_"$$xno" ]; \ 2422 then \ 2423 echo New test file "$$name"_"$$xno" ; \ 2424 $(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $$i $$j \ 2425 > $(srcdir)/result/relaxng/"$$name"_"$$xno" \ 2426 2> $(srcdir)/result/relaxng/"$$name"_"$$xno".err; \ 2427 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2428 else \ 2429 log=`$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --stream --relaxng $$i $$j \ 2430 > res.$$name 2> err.$$name;\ 2431 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2432 diff $(srcdir)/result/relaxng/"$$name"_"$$xno" res.$$name;\ 2433 if [ "$$name" != "tutor10_1" -a "$$name" != "tutor10_2" -a "$$name" != "tutor3_2" -a "$$name" != "307377" ] ; then \ 2434 diff $(srcdir)/result/relaxng/"$$name"_"$$xno".err \ 2435 err.$$name | grep -v "error detected at";\ 2436 fi ; grep Unimplemented err.$$name`; \ 2437 if [ -n "$$log" ] ; then echo "$$name"_"$$xno" result ; echo $$log ; fi ; \ 2438 rm res.$$name err.$$name ; \ 2439 fi ; fi ; \ 2440 done; done) 2441 2442Schematrontests: xmllint$(EXEEXT) 2443 @(echo > .memdump) 2444 @echo "## Schematron regression tests" 2445 -@(for i in $(srcdir)/test/schematron/*.sct ; do \ 2446 name=`basename $$i | sed 's+\.sct++'`; \ 2447 for j in $(srcdir)/test/schematron/"$$name"_*.xml ; do \ 2448 if [ -f $$j ] ; then \ 2449 xno=`basename $$j | sed 's+.*_\(.*\).xml+\1+'`; \ 2450 if [ ! -f $(srcdir)/result/schematron/"$$name"_"$$xno" ]; \ 2451 then \ 2452 echo New test file "$$name"_"$$xno" ; \ 2453 $(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --schematron $$i $$j \ 2454 > $(srcdir)/result/schematron/"$$name"_"$$xno" \ 2455 2> $(srcdir)/result/schematron/"$$name"_"$$xno".err; \ 2456 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2457 else \ 2458 log=`$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --schematron $$i $$j \ 2459 > res.$$name 2> err.$$name;\ 2460 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2461 diff $(srcdir)/result/schematron/"$$name"_"$$xno" \ 2462 res.$$name;\ 2463 diff $(srcdir)/result/schematron/"$$name"_"$$xno".err \ 2464 err.$$name | grep -v "error detected at";\ 2465 grep Unimplemented err.$$name`; \ 2466 if [ -n "$$log" ] ; then echo "$$name"_"$$xno" result ; echo $$log ; fi ; \ 2467 rm res.$$name err.$$name ; \ 2468 fi ; fi ; \ 2469 done; done) 2470 2471RelaxNGPythonTests: 2472 @(if [ -x $(PYTHON) ] ; then \ 2473 PYTHONPATH=$(top_builddir)/python:$(top_builddir)/python/.libs:$$PYTHONPATH ; \ 2474 export PYTHONPATH; \ 2475 LD_LIBRARY_PATH="$(top_builddir)/.libs:$$LD_LIBRARY_PATH" ; \ 2476 export LD_LIBRARY_PATH; \ 2477 echo "## Relax-NG Python based test suite 1" ; \ 2478 $(CHECKER) $(PYTHON) $(srcdir)/check-relaxng-test-suite.py ; \ 2479 echo "## Relax-NG Python based test suite 2" ; \ 2480 $(CHECKER) $(PYTHON) $(srcdir)/check-relaxng-test-suite2.py ; \ 2481 fi) 2482 2483SchemasPythonTests: 2484 @(if [ -x $(PYTHON) ] ; then \ 2485 PYTHONPATH=$(top_builddir)/python:$(top_builddir)/python/.libs:$$PYTHONPATH; \ 2486 export PYTHONPATH; \ 2487 LD_LIBRARY_PATH="$(top_builddir)/.libs:$$LD_LIBRARY_PATH" ; \ 2488 export LD_LIBRARY_PATH; \ 2489 echo "## XML Schemas datatypes Python based test suite" ; \ 2490 echo "## It is normal to see 11 errors reported" ; \ 2491 $(CHECKER) $(PYTHON) $(srcdir)/check-xsddata-test-suite.py ; \ 2492 fi) 2493 @(if [ -x $(PYTHON) -a -d xstc ] ; then cd xstc ; $(MAKE) CHECKER="$(CHECKER)" MAKEFLAGS+=--silent pytests ; fi) 2494 2495Patterntests: xmllint$(EXEEXT) 2496 @(echo > .memdump) 2497 @echo "## Pattern regression tests" 2498 -@(for i in $(srcdir)/test/pattern/*.pat ; do \ 2499 name=`basename $$i .pat`; \ 2500 if [ -f $(srcdir)/test/pattern/$$name.xml ] ; then \ 2501 if [ ! -f $(srcdir)/result/pattern/$$name ] ; then \ 2502 rm -f result.$$name ; \ 2503 echo New test file $$name ; \ 2504 for pat in `cat $$i` ; do \ 2505 $(CHECKER) $(top_builddir)/xmllint --walker --pattern $$pat $(srcdir)/test/pattern/$$name.xml >> $(srcdir)/result/pattern/$$name ; \ 2506 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2507 done ;\ 2508 else \ 2509 rm -f result.$$name ; \ 2510 lst=`cat $$i` ; \ 2511 log=`for pat in $$lst ; do $(CHECKER) $(top_builddir)/xmllint --walker --pattern $$pat $(srcdir)/test/pattern/$$name.xml 2>&1 >> result.$$name ; \ 2512 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 2513 done ;\ 2514 diff $(srcdir)/result/pattern/$$name result.$$name` ; \ 2515 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \ 2516 rm result.$$name ; \ 2517 fi ; fi ; done ;) 2518 2519ModuleTests: testModule$(EXEEXT) testdso.la 2520 @echo "## Module tests" 2521 @(./testModule$(EXEEXT)) 2522 2523cleanup: 2524 -@(find . -name .\#\* -exec rm {} \;) 2525 -@(find . -name \*.gcda -o *.gcno -exec rm {} \;) 2526 -@(find . -name \*.orig -o -name \*.rej -o -name \*.old -exec rm {} \;) 2527 2528dist-hook: cleanup libxml2.spec 2529 -cp libxml2.spec $(distdir) 2530 (cd $(srcdir) ; tar -cf - --exclude CVS --exclude .svn win32 macos vms bakefile test result) | (cd $(distdir); tar xf -) 2531 2532dist-source: distdir 2533 $(AMTAR) -chof - --exclude Tests --exclude test --exclude result $(distdir) | GZIP=$(GZIP_ENV) gzip -c >`echo "$(distdir)" | sed "s+libxml2+libxml2-sources+"`.tar.gz 2534 2535dist-test: distdir 2536 (mkdir -p $(distdir)) 2537 (cd $(srcdir) ; tar -cf - --exclude CVS --exclude .svn xstc/Tests) | (cd $(distdir); tar xf -) 2538 tar -cf - $(distdir)/test $(distdir)/result $(distdir)/xstc/Tests $(distdir)/Makefile.tests $(distdir)/README $(distdir)/README.tests $(distdir)/AUTHORS $(distdir)/testapi.c $(distdir)/runtest.c $(distdir)/runsuite.c | GZIP=$(GZIP_ENV) gzip -c >`echo "$(distdir)" | sed "s+libxml2+libxml2-tests+"`.tar.gz 2539 @(rm -rf $(distdir)/xstc/Test) 2540 2541cleantar: 2542 @(rm -f libxml*.tar.gz COPYING.LIB) 2543 2544rpm: cleanup cleantar 2545 @(unset CDPATH ; $(MAKE) dist-source dist && rpmbuild -ta $(distdir).tar.gz) 2546 2547xml2Conf.sh: xml2Conf.sh.in Makefile 2548 sed -e 's?\@XML_LIBDIR\@?$(XML_LIBDIR)?g' \ 2549 -e 's?\@XML_INCLUDEDIR\@?$(XML_INCLUDEDIR)?g' \ 2550 -e 's?\@VERSION\@?$(VERSION)?g' \ 2551 -e 's?\@XML_LIBS\@?$(XML_LIBS)?g' \ 2552 < $(srcdir)/xml2Conf.sh.in > xml2Conf.tmp \ 2553 && mv xml2Conf.tmp xml2Conf.sh 2554 2555install-data-local: 2556 $(mkinstalldirs) $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE) 2557 -/usr/bin/install -c -m 0644 $(srcdir)/Copyright $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE) 2558 $(mkinstalldirs) $(DESTDIR)$(EXAMPLES_DIR) 2559 -/usr/bin/install -c -m 0644 $(srcdir)/xmllint.c $(DESTDIR)$(EXAMPLES_DIR) 2560 -/usr/bin/install -c -m 0644 $(srcdir)/testSAX.c $(DESTDIR)$(EXAMPLES_DIR) 2561 -/usr/bin/install -c -m 0644 $(srcdir)/testHTML.c $(DESTDIR)$(EXAMPLES_DIR) 2562 -/usr/bin/install -c -m 0644 $(srcdir)/testXPath.c $(DESTDIR)$(EXAMPLES_DIR) 2563 2564uninstall-local: 2565 rm $(DESTDIR)$(EXAMPLES_DIR)/testXPath.c 2566 rm $(DESTDIR)$(EXAMPLES_DIR)/testHTML.c 2567 rm $(DESTDIR)$(EXAMPLES_DIR)/testSAX.c 2568 rm $(DESTDIR)$(EXAMPLES_DIR)/xmllint.c 2569 rm -rf $(DESTDIR)$(EXAMPLES_DIR) 2570 rm $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE)/Copyright 2571 rm -rf $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE) 2572 2573tst: tst.c 2574 $(CC) $(CFLAGS) -Iinclude -o tst tst.c .libs/libxml2.a -lpthread -lm -lz 2575 2576sparse: clean 2577 $(MAKE) CC=cgcc 2578 2579cov: clean-cov 2580 if [ "`echo $(LDFLAGS) | grep coverage`" = "" ] ; then \ 2581 echo not configured with coverage; exit 1 ; fi 2582 if [ ! -x $(LCOV) -o ! -x $(GENHTML) ] ; then \ 2583 echo Need $(LCOV) and $(GENHTML) excecutables; exit 1 ; fi 2584 -@($(MAKE) check) 2585 -@(./runsuite$(EXEEXT)) 2586 mkdir $(top_builddir)/coverage 2587 $(LCOV) -c -o $(top_builddir)/coverage/libxml2.info.tmp -d $(top_srcdir) 2588 $(LCOV) -r $(top_builddir)/coverage/libxml2.info.tmp -o $(top_builddir)/coverage/libxml2.info *usr* 2589 rm $(top_builddir)/coverage/libxml2.info.tmp 2590 $(GENHTML) -s -t "libxml2" -o $(top_builddir)/coverage --legend $(top_builddir)/coverage/libxml2.info 2591 echo "Coverage report is in $(top_builddir)/coverage/index.html" 2592 2593clean-cov: 2594 rm -rf $(top_builddir)/coverage 2595# Tell versions [3.59,3.63) of GNU make to not export all variables. 2596# Otherwise a system limit (for SysV at least) may be exceeded. 2597.NOEXPORT: 2598