Makefile 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. nist_dom_files = \
  31. ChangeLog ITest.cs readme.txt util.cs \
  32. fundamental/ChangeLog \
  33. files/ChangeLog files/noDTDXMLfile.xml files/otherDoc.xml files/staff.dtd files/staff.html files/staff.xml
  34. xmlfiles_files = \
  35. ChangeLog nested-included.dtd literal-data.xml nested-dtd-test.dtd nested-dtd-test.xml simple.xml \
  36. xsl/ChangeLog xsl/empty.xsl \
  37. XsdValidation/ChangeLog XsdValidation/1.xsd XsdValidation/2.xsd XsdValidation/3.xsd XsdValidation/4.xsd \
  38. xsd/ChangeLog xsd/1.xsd xsd/2.xsd xsd/3.xsd xsd/4.xsd xsd/5.xsd xsd/6.xsd xsd/xml.xsd
  39. EXTRA_DISTFILES = \
  40. Mono.System.XML.csproj \
  41. Mono.System.XML.sln \
  42. README \
  43. System.Xml.Schema/BUGS-MS.txt \
  44. System.Xml.Schema/BUGS.txt \
  45. $(wildcard System.Xml.Serialization/standalone_tests/*.cs) \
  46. $(wildcard System.Xml.Serialization/standalone_tests/*.output) \
  47. System.Xml.XPath/Parser.jay \
  48. Test/ChangeLog \
  49. Test/Microsoft.Test.csproj \
  50. Test/Mono.Test.csproj \
  51. Test/MonoMicro.Test.csproj \
  52. Test/XmlFiles/76102.xml \
  53. Test/XmlFiles/xsd/multi-schemaLocation.xml \
  54. Test/XmlFiles/xsd/datatypesTest.xsd \
  55. Test/XmlFiles/xsd/77687.xsd \
  56. Test/XmlFiles/xsd/77687inc.xsd \
  57. Test/XmlFiles/xsl/91834.xml \
  58. Test/XmlFiles/xsl/91834.xsl \
  59. Test/XmlFiles/xsl/91834a.xml \
  60. Test/XmlFiles/xsl/stripspace.xsl \
  61. Test/XmlFiles/xsl/stripspace.xml \
  62. Test/XmlFiles/xsl/current-in-select.xsl \
  63. Test/XmlFiles/xsl/current-in-select.xml \
  64. Test/XmlFiles/xsl/current-in-select.ref \
  65. Test/XmlFiles/xsl/ChangeLog \
  66. $(xmlfiles_files:%=Test/XmlFiles/%) \
  67. $(nist_dom_files:%=Test/System.Xml/nist_dom/%)
  68. System.Xml.XPath/Parser.cs: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
  69. $(topdir)/jay/jay -ct < $(topdir)/jay/skeleton.cs $< >$@
  70. Mono.Xml.Xsl/PatternParser.jay: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
  71. sed "s/\%start Expr/\%start Pattern/" $< >$@
  72. Mono.Xml.Xsl/PatternParser.cs: Mono.Xml.Xsl/PatternParser.jay $(topdir)/jay/skeleton.cs
  73. echo "#define XSLT_PATTERN" > $@
  74. $(topdir)/jay/jay -ct $< < $(topdir)/jay/skeleton.cs >>$@
  75. Mono.Xml.Xsl/PatternTokenizer.cs: System.Xml.XPath/Tokenizer.cs
  76. echo "#define XSLT_PATTERN" > $@
  77. cat $< >>$@
  78. BUILT_SOURCES = System.Xml.XPath/Parser.cs \
  79. Mono.Xml.Xsl/PatternParser.cs \
  80. Mono.Xml.Xsl/PatternTokenizer.cs
  81. CLEAN_FILES = Test/XmlFiles/xsl/result.xml \
  82. System.Xml.XPath/Parser.cs \
  83. Mono.Xml.Xsl/PatternParser.cs \
  84. Mono.Xml.Xsl/PatternTokenizer.cs
  85. include ../../build/library.make