Makefile 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. USE_BOOT_COMPILE = yes
  9. endif
  10. ifeq (monotouch, $(PROFILE))
  11. BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/monotouch$(PLATFORM_PATH_SEPARATOR)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_SMCS)
  12. endif
  13. ifdef USE_BOOT_COMPILE
  14. LIBRARY_COMPILE = $(BOOT_COMPILE)
  15. endif
  16. LIB_MCS_FLAGS = -r:$(corlib) -r:System.dll -nowarn:0618,0612,0642
  17. ifeq (net_1_1_java, $(PROFILE))
  18. LIB_MCS_FLAGS += \
  19. -r:System.Xml.dll \
  20. -r:rt.dll \
  21. -r:J2SE.Helpers.dll \
  22. -r:unresolved.dll \
  23. /lib:../../class/lib/$(PROFILE)
  24. endif
  25. ifeq (2.1, $(FRAMEWORK_VERSION))
  26. LIB_MCS_FLAGS += -unsafe -d:AGCLR -d:NET_2_1_HACK
  27. endif
  28. TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:0618 -nowarn:219 -nowarn:169
  29. ifeq (2.0, $(FRAMEWORK_VERSION))
  30. # Happens on net_2_0_bootstrap and net_2_0 profiles
  31. CONFIGURATION_DEP := System.Configuration.dll
  32. CONFIGURATION_DEP_FILE := $(wildcard ../lib/$(PROFILE)/$(CONFIGURATION_DEP))
  33. CYCLIC_DEPS += $(CONFIGURATION_DEP)
  34. CYCLIC_DEP_FILES += $(CONFIGURATION_DEP_FILE)
  35. TEST_MCS_FLAGS += -r:System.Configuration
  36. endif
  37. ifdef CONFIGURATION_DEP_FILE
  38. LIB_MCS_FLAGS += -define:CONFIGURATION_DEP -r:$(CONFIGURATION_DEP)
  39. $(the_lib): $(CONFIGURATION_DEP_FILE)
  40. endif
  41. nist_dom_files = \
  42. ChangeLog ITest.cs readme.txt util.cs \
  43. fundamental/ChangeLog \
  44. files/ChangeLog files/noDTDXMLfile.xml files/otherDoc.xml files/staff.dtd files/staff.html files/staff.xml
  45. xmlfiles_files = \
  46. ChangeLog nested-included.dtd literal-data.xml nested-dtd-test.dtd nested-dtd-test.xml simple.xml \
  47. xsl/ChangeLog xsl/empty.xsl \
  48. XsdValidation/ChangeLog XsdValidation/1.xsd XsdValidation/2.xsd XsdValidation/3.xsd XsdValidation/4.xsd \
  49. xsd/ChangeLog xsd/1.xsd xsd/2.xsd xsd/3.xsd xsd/4.xsd xsd/5.xsd xsd/6.xsd xsd/xml.xsd xsd/81360.xsd xsd/81360inc1.xsd xsd/81360inc2.xsd
  50. EXTRA_DISTFILES = \
  51. System.Xml.Schema/BUGS-MS.txt \
  52. System.Xml.Schema/BUGS.txt \
  53. $(wildcard System.Xml.Serialization/standalone_tests/*.cs) \
  54. $(wildcard System.Xml.Serialization/standalone_tests/*.output) \
  55. System.Xml.XPath/Parser.jay \
  56. Test/ChangeLog \
  57. Test/Microsoft.Test.csproj \
  58. Test/Mono.Test.csproj \
  59. Test/MonoMicro.Test.csproj \
  60. Test/XmlFiles/76102.xml \
  61. Test/XmlFiles/79683.dtd \
  62. Test/XmlFiles/496192.xml \
  63. Test/XmlFiles/496192.xsd \
  64. $(wildcard Test/XmlFiles/xsd/*.xml) \
  65. $(wildcard Test/XmlFiles/xsd/*.xsd) \
  66. $(wildcard Test/XmlFiles/xsl/*.xml) \
  67. $(wildcard Test/XmlFiles/xsl/*.xsl) \
  68. Test/XmlFiles/xsl/current-in-select.ref \
  69. Test/XmlFiles/xsl/ChangeLog \
  70. $(xmlfiles_files:%=Test/XmlFiles/%) \
  71. $(nist_dom_files:%=Test/System.Xml/nist_dom/%)
  72. System.Xml.XPath/Parser.cs: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
  73. $(topdir)/jay/jay -ct < $(topdir)/jay/skeleton.cs $< >$@
  74. Mono.Xml.Xsl/PatternParser.jay: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
  75. sed "s/\%start Expr/\%start Pattern/" $< >$@
  76. Mono.Xml.Xsl/PatternParser.cs: Mono.Xml.Xsl/PatternParser.jay $(topdir)/jay/skeleton.cs
  77. echo "#define XSLT_PATTERN" > $@
  78. $(topdir)/jay/jay -ct $< < $(topdir)/jay/skeleton.cs >>$@
  79. Mono.Xml.Xsl/PatternTokenizer.cs: System.Xml.XPath/Tokenizer.cs
  80. echo "#define XSLT_PATTERN" > $@
  81. cat $< >>$@
  82. ifneq (net_2_1_raw, $(PROFILE))
  83. BUILT_SOURCES = System.Xml.XPath/Parser.cs \
  84. Mono.Xml.Xsl/PatternParser.cs \
  85. Mono.Xml.Xsl/PatternTokenizer.cs
  86. CLEAN_FILES = Test/XmlFiles/xsl/result.xml \
  87. System.Xml.XPath/Parser.cs \
  88. Mono.Xml.Xsl/PatternParser.cs \
  89. Mono.Xml.Xsl/PatternTokenizer.cs
  90. endif
  91. include ../../build/library.make