You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

173 lines
9.6 KiB

  1. #
  2. # Licensed to the Apache Software Foundation (ASF) under one or more
  3. # contributor license agreements. See the NOTICE file distributed with
  4. # this work for additional information regarding copyright ownership.
  5. # The ASF licenses this file to You under the Apache License, Version 2.0
  6. # (the "License"); you may not use this file except in compliance with
  7. # the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. #
  17. #
  18. # $Id: Makefile.am 1665567 2015-03-10 14:29:51Z scantor $
  19. #
  20. check_PROGRAMS = ${testprogs}
  21. LDADD = ${top_builddir}/src/libxerces-c.la
  22. # the -I${top_builddir}/src is needed to pick the xercesc/util/Xerces_autoconf_config.hpp
  23. # header file when doing out-of-tree builds
  24. AM_CPPFLAGS = -I${top_builddir}/src -I${top_srcdir}/src
  25. EXTRA_DIST = src/DOM/Normalizer/expectedOutput \
  26. src/DOM/TypeInfo/data/combined.dtd \
  27. src/DOM/TypeInfo/data/combined.xml \
  28. src/DOM/TypeInfo/data/combined.xsd \
  29. src/DOM/TypeInfo/data/SecondSchema.xsd \
  30. src/DOM/TypeInfo/data/TypeInfo.dtd \
  31. src/DOM/TypeInfo/data/TypeInfo.xml \
  32. src/DOM/TypeInfo/data/TypeInfo.xsd \
  33. src/DOM/TypeInfo/data/TypeInfoJustDTD.xml \
  34. src/DOM/TypeInfo/data/TypeInfoNoDTD.xml \
  35. src/DOM/TypeInfo/data/TypeInfoNoDTD.xsd \
  36. src/XSTSHarness/regression \
  37. src/xinclude
  38. testprogs =
  39. testprogs += DOMTest
  40. DOMTest_SOURCES = src/DOM/DOMTest/DTest.cpp \
  41. src/DOM/DOMTest/DTest.h
  42. testprogs += DOMMemTest
  43. DOMMemTest_SOURCES = src/DOM/DOMMemTest/DOMMemTest.cpp
  44. testprogs += Normalizer
  45. Normalizer_SOURCES = src/DOM/Normalizer/Normalizer.cpp \
  46. src/DOM/Normalizer/Normalizer.hpp
  47. testprogs += RangeTest
  48. RangeTest_SOURCES = src/DOM/RangeTest/RangeTest.cpp
  49. testprogs += DOMTraversalTest
  50. DOMTraversalTest_SOURCES = src/DOM/Traversal/Traversal.cpp
  51. testprogs += DOMTypeInfoTest
  52. DOMTypeInfoTest_SOURCES = src/DOM/TypeInfo/TypeInfo.cpp \
  53. src/DOM/TypeInfo/TypeInfo.hpp
  54. testprogs += EncodingTest
  55. EncodingTest_SOURCES = src/EncodingTest/EncodingTest.cpp
  56. testprogs += InitTermTest
  57. InitTermTest_SOURCES = src/InitTermTest/InitTermTest.cpp \
  58. src/InitTermTest/InitTermTest.hpp
  59. testprogs += MemHandlerTest
  60. MemHandlerTest_SOURCES = src/MemHandlerTest/MemoryMonitor.cpp \
  61. src/MemHandlerTest/MemoryMonitor.hpp \
  62. src/MemHandlerTest/SimpleValueHashTableOf.hpp
  63. testprogs += NetAccessorTest
  64. NetAccessorTest_SOURCES = src/NetAccessorTest/NetAccessorTest.cpp
  65. # Doesn't compile under gcc4 for some reason
  66. # dcargill says this is obsolete and we can delete it.
  67. #testprogs += ParserTest
  68. #ParserTest_SOURCES = src/ParserTest/ParserTest.cpp \
  69. # src/ParserTest/ParserTest.hpp \
  70. # src/ParserTest/ParserTest_Parser.cpp \
  71. # src/ParserTest/ParserTest_Parser.hpp
  72. testprogs += ThreadTest
  73. ThreadTest_SOURCES = src/ThreadTest/ThreadTest.cpp
  74. # Fails to compile under gcc 4 (ambiguous calls to NullPointerException)
  75. # dcargill says this is obsolete and we can delete it.
  76. #testprogs += UtilTests
  77. #UtilTests_SOURCES = src/UtilTests/CoreTests_BitSet.cpp \
  78. # src/UtilTests/CoreTests_CountedPointer.cpp \
  79. # src/UtilTests/CoreTests_RefArray.cpp \
  80. # src/UtilTests/CoreTests_RefHashTable.cpp \
  81. # src/UtilTests/CoreTests_RefStack.cpp \
  82. # src/UtilTests/CoreTests_RefVector.cpp \
  83. # src/UtilTests/CoreTests_String.cpp \
  84. # src/UtilTests/CoreTests_Transcoders.cpp \
  85. # src/UtilTests/CoreTests_URL.cpp \
  86. # src/UtilTests/CoreTests_ValueArray.cpp \
  87. # src/UtilTests/CoreTests_ValueStack.cpp \
  88. # src/UtilTests/CoreTests_ValueVector.cpp \
  89. # src/UtilTests/CoreTestsMain.cpp \
  90. # src/UtilTests/CoreTests.hpp
  91. testprogs += XSerializerTest
  92. XSerializerTest_SOURCES = src/XSerializerTest/XSerializerHandlers.cpp \
  93. src/XSerializerTest/XSerializerHandlers.hpp \
  94. src/XSerializerTest/XSerializerTest.cpp \
  95. src/XSerializerTest/XSerializerTest.hpp
  96. testprogs += XSTSHarness
  97. XSTSHarness_SOURCES = src/XSTSHarness/XSTSHarness.cpp \
  98. src/XSTSHarness/XSTSHarness.hpp \
  99. src/XSTSHarness/XSTSHarnessHandlers.cpp \
  100. src/XSTSHarness/XSTSHarnessHandlers.hpp \
  101. src/XSTSHarness/XMLHarnessHandlers.cpp \
  102. src/XSTSHarness/XMLHarnessHandlers.hpp
  103. # Fails to compile under gcc4 (values too long for long type)
  104. testprogs += XSValueTest
  105. XSValueTest_SOURCES = src/XSValueTest/XSValueTest.cpp \
  106. src/XSValueTest/XSValueTest.hpp
  107. #
  108. # Override generated rules to provide prettier make rules
  109. #
  110. # Warning: If Automake changes sufficiently, these rules may need to
  111. # be regenerated from the (new) default output of Automake
  112. #
  113. if XERCES_PRETTY_MAKE
  114. .cpp.o:
  115. @am__fastdepCXX_TRUE@ @depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`; \
  116. @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ $<; \
  117. @am__fastdepCXX_TRUE@ then $(am__mv) "$$depbase.Tpo" "$$depbase.Po"; else rm -f "$$depbase.Tpo"; exit 1; fi
  118. @AMDEP_TRUE@@am__fastdepCXX_FALSE@ @source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  119. @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  120. @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $<
  121. .cpp.obj:
  122. @am__fastdepCXX_TRUE@ @depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`; \
  123. @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
  124. @am__fastdepCXX_TRUE@ then $(am__mv) "$$depbase.Tpo" "$$depbase.Po"; else rm -f "$$depbase.Tpo"; exit 1; fi
  125. @AMDEP_TRUE@@am__fastdepCXX_FALSE@ @source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  126. @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  127. @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
  128. .cpp.lo:
  129. @am__fastdepCXX_TRUE@ @depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`; \
  130. @am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ $<; \
  131. @am__fastdepCXX_TRUE@ then $(am__mv) "$$depbase.Tpo" "$$depbase.Plo"; else rm -f "$$depbase.Tpo"; exit 1; fi
  132. @AMDEP_TRUE@@am__fastdepCXX_FALSE@ @source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  133. @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  134. @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $<
  135. PRETTY_MAKE=${top_srcdir}/config/pretty-make
  136. PRETTY_COMPILE=${PRETTY_MAKE} Compiling
  137. endif
  138. CXXCOMPILE = ${PRETTY_COMPILE} \
  139. $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  140. $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
  141. LTCXXCOMPILE = ${PRETTY_COMPILE} \
  142. $(LIBTOOL) --quiet --tag=CXX --mode=compile \
  143. $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  144. $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)