Makefile 110 KB

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