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.

167 lines
8.0 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 1665397 2015-03-10 03:27:10Z scantor $
  19. #
  20. bin_PROGRAMS = ${sampleprogs}
  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 = data/personal.dtd \
  26. data/personal.xml \
  27. data/personal.xsd \
  28. data/personal-schema.xml \
  29. data/redirect.dtd \
  30. data/long.xml
  31. sampleprogs =
  32. sampleprogs += CreateDOMDocument
  33. CreateDOMDocument_SOURCES = src/CreateDOMDocument/CreateDOMDocument.cpp
  34. sampleprogs += DOMCount
  35. DOMCount_SOURCES = src/DOMCount/DOMCount.cpp \
  36. src/DOMCount/DOMCount.hpp
  37. sampleprogs += DOMPrint
  38. DOMPrint_SOURCES = src/DOMPrint/DOMPrint.cpp \
  39. src/DOMPrint/DOMPrintErrorHandler.cpp \
  40. src/DOMPrint/DOMPrintErrorHandler.hpp \
  41. src/DOMPrint/DOMPrintFilter.cpp \
  42. src/DOMPrint/DOMPrintFilter.hpp \
  43. src/DOMPrint/DOMTreeErrorReporter.cpp \
  44. src/DOMPrint/DOMTreeErrorReporter.hpp
  45. sampleprogs += EnumVal
  46. EnumVal_SOURCES = src/EnumVal/EnumVal.cpp
  47. sampleprogs += MemParse
  48. MemParse_SOURCES = src/MemParse/MemParse.cpp \
  49. src/MemParse/MemParse.hpp \
  50. src/MemParse/MemParseHandlers.cpp \
  51. src/MemParse/MemParseHandlers.hpp
  52. sampleprogs += PParse
  53. PParse_SOURCES = src/PParse/PParse.cpp \
  54. src/PParse/PParse.hpp \
  55. src/PParse/PParseHandlers.cpp \
  56. src/PParse/PParseHandlers.hpp
  57. sampleprogs += PSVIWriter
  58. PSVIWriter_SOURCES = src/PSVIWriter/PSVIWriter.cpp \
  59. src/PSVIWriter/PSVIWriter.hpp \
  60. src/PSVIWriter/PSVIWriterHandlers.cpp \
  61. src/PSVIWriter/PSVIWriterHandlers.hpp
  62. sampleprogs += Redirect
  63. Redirect_SOURCES = src/Redirect/Redirect.cpp \
  64. src/Redirect/Redirect.hpp \
  65. src/Redirect/RedirectHandlers.cpp \
  66. src/Redirect/RedirectHandlers.hpp
  67. sampleprogs += SAX2Count
  68. SAX2Count_SOURCES = src/SAX2Count/SAX2Count.cpp \
  69. src/SAX2Count/SAX2Count.hpp \
  70. src/SAX2Count/SAX2CountHandlers.cpp \
  71. src/SAX2Count/SAX2CountHandlers.hpp
  72. sampleprogs += SAX2Print
  73. SAX2Print_SOURCES = src/SAX2Print/SAX2FilterHandlers.cpp \
  74. src/SAX2Print/SAX2FilterHandlers.hpp \
  75. src/SAX2Print/SAX2Print.cpp \
  76. src/SAX2Print/SAX2Print.hpp \
  77. src/SAX2Print/SAX2PrintHandlers.cpp \
  78. src/SAX2Print/SAX2PrintHandlers.hpp
  79. sampleprogs += SAXCount
  80. SAXCount_SOURCES = src/SAXCount/SAXCount.cpp \
  81. src/SAXCount/SAXCount.hpp \
  82. src/SAXCount/SAXCountHandlers.cpp \
  83. src/SAXCount/SAXCountHandlers.hpp
  84. sampleprogs += SAXPrint
  85. SAXPrint_SOURCES = src/SAXPrint/SAXPrint.cpp \
  86. src/SAXPrint/SAXPrint.hpp \
  87. src/SAXPrint/SAXPrintHandlers.cpp \
  88. src/SAXPrint/SAXPrintHandlers.hpp
  89. sampleprogs += SCMPrint
  90. SCMPrint_SOURCES = src/SCMPrint/SCMPrint.cpp
  91. sampleprogs += SEnumVal
  92. SEnumVal_SOURCES = src/SEnumVal/SEnumVal.cpp
  93. sampleprogs += StdInParse
  94. StdInParse_SOURCES = src/StdInParse/StdInParse.cpp \
  95. src/StdInParse/StdInParse.hpp \
  96. src/StdInParse/StdInParseHandlers.cpp \
  97. src/StdInParse/StdInParseHandlers.hpp
  98. sampleprogs += XInclude
  99. XInclude_SOURCES = src/XInclude/XInclude.cpp \
  100. src/XInclude/XInclude.hpp
  101. #
  102. # Override generated rules to provide prettier make rules
  103. #
  104. # Warning: If Automake changes sufficiently, these rules may need to
  105. # be regenerated from the (new) default output of Automake
  106. #
  107. if XERCES_PRETTY_MAKE
  108. .cpp.o:
  109. @am__fastdepCXX_TRUE@ @depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`; \
  110. @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ $<; \
  111. @am__fastdepCXX_TRUE@ then $(am__mv) "$$depbase.Tpo" "$$depbase.Po"; else rm -f "$$depbase.Tpo"; exit 1; fi
  112. @AMDEP_TRUE@@am__fastdepCXX_FALSE@ @source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  113. @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  114. @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $<
  115. .cpp.obj:
  116. @am__fastdepCXX_TRUE@ @depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`; \
  117. @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
  118. @am__fastdepCXX_TRUE@ then $(am__mv) "$$depbase.Tpo" "$$depbase.Po"; else rm -f "$$depbase.Tpo"; exit 1; fi
  119. @AMDEP_TRUE@@am__fastdepCXX_FALSE@ @source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  120. @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  121. @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
  122. .cpp.lo:
  123. @am__fastdepCXX_TRUE@ @depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`; \
  124. @am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ $<; \
  125. @am__fastdepCXX_TRUE@ then $(am__mv) "$$depbase.Tpo" "$$depbase.Plo"; else rm -f "$$depbase.Tpo"; exit 1; fi
  126. @AMDEP_TRUE@@am__fastdepCXX_FALSE@ @source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  127. @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  128. @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $<
  129. PRETTY_MAKE=${top_srcdir}/config/pretty-make
  130. PRETTY_COMPILE=${PRETTY_MAKE} Compiling
  131. endif
  132. CXXCOMPILE = ${PRETTY_COMPILE} \
  133. $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  134. $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
  135. LTCXXCOMPILE = ${PRETTY_COMPILE} \
  136. $(LIBTOOL) --quiet --tag=CXX --mode=compile \
  137. $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  138. $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)