Makefile 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. thisdir = class/System.XML
  2. SUBDIRS =
  3. include ../../build/rules.make
  4. LIBRARY = System.Xml.dll
  5. LIBRARY_USE_INTERMEDIATE_FILE = yes
  6. lib_file := $(wildcard ../lib/$(PROFILE)/System.Xml.dll)
  7. ifndef lib_file
  8. # In the basic profile, System.Xml.dll is _not_ a dependency of mcs.exe. So, don't use boot compilation.
  9. # In other profiles, it _is_ a dependency of mcs.exe. So, use boot compilation.
  10. ifneq (basic, $(PROFILE))
  11. USE_BOOT_COMPILE = yes
  12. endif
  13. endif
  14. ifeq (net_2_0, $(PROFILE))
  15. BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/net_2_0$(PLATFORM_PATH_SEPARATOR)$(topdir)/class/lib/net_2_0_bootstrap$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
  16. endif
  17. ifdef USE_BOOT_COMPILE
  18. LIBRARY_COMPILE = $(BOOT_COMPILE)
  19. endif
  20. LIB_MCS_FLAGS = -r:$(corlib) -r:System.dll -nowarn:0162,0618,0612,0642,1595
  21. ifeq (net_1_1_java, $(PROFILE))
  22. LIB_MCS_FLAGS += \
  23. -r:System.Xml.dll \
  24. -r:rt.dll \
  25. -r:J2SE.Helpers.dll \
  26. -r:unresolved.dll \
  27. /lib:../../class/lib/$(PROFILE)
  28. endif
  29. TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:0618 -nowarn:219 -nowarn:169
  30. ifeq (2.0, $(FRAMEWORK_VERSION))
  31. # Happens on net_2_0_bootstrap and net_2_0 profiles
  32. CONFIGURATION_DEP := System.Configuration.dll
  33. CONFIGURATION_DEP_FILE := $(wildcard ../lib/$(PROFILE)/$(CONFIGURATION_DEP))
  34. CYCLIC_DEPS += $(CONFIGURATION_DEP)
  35. CYCLIC_DEP_FILES += $(CONFIGURATION_DEP_FILE)
  36. TEST_MCS_FLAGS += -r:System.Configuration
  37. endif
  38. ifdef CONFIGURATION_DEP_FILE
  39. LIB_MCS_FLAGS += -define:CONFIGURATION_DEP -r:$(CONFIGURATION_DEP)
  40. $(the_lib): $(CONFIGURATION_DEP_FILE)
  41. endif
  42. nist_dom_files = \
  43. ChangeLog ITest.cs readme.txt util.cs \
  44. fundamental/ChangeLog \
  45. files/ChangeLog files/noDTDXMLfile.xml files/otherDoc.xml files/staff.dtd files/staff.html files/staff.xml
  46. xmlfiles_files = \
  47. ChangeLog nested-included.dtd literal-data.xml nested-dtd-test.dtd nested-dtd-test.xml simple.xml \
  48. xsl/ChangeLog xsl/empty.xsl \
  49. XsdValidation/ChangeLog XsdValidation/1.xsd XsdValidation/2.xsd XsdValidation/3.xsd XsdValidation/4.xsd \
  50. xsd/ChangeLog xsd/1.xsd xsd/2.xsd xsd/3.xsd xsd/4.xsd xsd/5.xsd xsd/6.xsd xsd/xml.xsd
  51. EXTRA_DISTFILES = \
  52. System.Xml.Schema/BUGS-MS.txt \
  53. System.Xml.Schema/BUGS.txt \
  54. $(wildcard System.Xml.Serialization/standalone_tests/*.cs) \
  55. $(wildcard System.Xml.Serialization/standalone_tests/*.output) \
  56. System.Xml.XPath/Parser.jay \
  57. Test/ChangeLog \
  58. Test/Microsoft.Test.csproj \
  59. Test/Mono.Test.csproj \
  60. Test/MonoMicro.Test.csproj \
  61. Test/XmlFiles/76102.xml \
  62. Test/XmlFiles/79683.dtd \
  63. Test/XmlFiles/xsd/multi-schemaLocation.xml \
  64. Test/XmlFiles/xsd/datatypesTest.xsd \
  65. Test/XmlFiles/xsd/77687.xsd \
  66. Test/XmlFiles/xsd/77687inc.xsd \
  67. Test/XmlFiles/xsd/78985.xml \
  68. Test/XmlFiles/xsd/78985.xsd \
  69. Test/XmlFiles/xsd/79650.xsd \
  70. Test/XmlFiles/xsd/inter-inc-1.xsd \
  71. Test/XmlFiles/xsl/91834.xml \
  72. Test/XmlFiles/xsl/91834.xsl \
  73. Test/XmlFiles/xsl/91834a.xml \
  74. Test/XmlFiles/xsl/stripspace.xsl \
  75. Test/XmlFiles/xsl/stripspace.xml \
  76. Test/XmlFiles/xsl/current-in-select.xsl \
  77. Test/XmlFiles/xsl/current-in-select.xml \
  78. Test/XmlFiles/xsl/current-in-select.ref \
  79. Test/XmlFiles/xsl/ChangeLog \
  80. $(xmlfiles_files:%=Test/XmlFiles/%) \
  81. $(nist_dom_files:%=Test/System.Xml/nist_dom/%)
  82. System.Xml.XPath/Parser.cs: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
  83. $(topdir)/jay/jay -ct < $(topdir)/jay/skeleton.cs $< >$@
  84. Mono.Xml.Xsl/PatternParser.jay: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
  85. sed "s/\%start Expr/\%start Pattern/" $< >$@
  86. Mono.Xml.Xsl/PatternParser.cs: Mono.Xml.Xsl/PatternParser.jay $(topdir)/jay/skeleton.cs
  87. echo "#define XSLT_PATTERN" > $@
  88. $(topdir)/jay/jay -ct $< < $(topdir)/jay/skeleton.cs >>$@
  89. Mono.Xml.Xsl/PatternTokenizer.cs: System.Xml.XPath/Tokenizer.cs
  90. echo "#define XSLT_PATTERN" > $@
  91. cat $< >>$@
  92. BUILT_SOURCES = System.Xml.XPath/Parser.cs \
  93. Mono.Xml.Xsl/PatternParser.cs \
  94. Mono.Xml.Xsl/PatternTokenizer.cs
  95. CLEAN_FILES = Test/XmlFiles/xsl/result.xml \
  96. System.Xml.XPath/Parser.cs \
  97. Mono.Xml.Xsl/PatternParser.cs \
  98. Mono.Xml.Xsl/PatternTokenizer.cs
  99. include ../../build/library.make