Makefile 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. $(xmlfiles_files:%=Test/XmlFiles/%) \
  53. $(nist_dom_files:%=Test/System.Xml/nist_dom/%)
  54. System.Xml.XPath/Parser.cs: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
  55. $(topdir)/jay/jay -ct < $(topdir)/jay/skeleton.cs $< >$@
  56. Mono.Xml.Xsl/PatternParser.jay: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
  57. sed "s/\%start Expr/\%start Pattern/" $< >$@
  58. Mono.Xml.Xsl/PatternParser.cs: Mono.Xml.Xsl/PatternParser.jay $(topdir)/jay/skeleton.cs
  59. echo "#define XSLT_PATTERN" > $@
  60. $(topdir)/jay/jay -ct $< < $(topdir)/jay/skeleton.cs >>$@
  61. Mono.Xml.Xsl/PatternTokenizer.cs: System.Xml.XPath/Tokenizer.cs
  62. echo "#define XSLT_PATTERN" > $@
  63. cat $< >>$@
  64. BUILT_SOURCES = System.Xml.XPath/Parser.cs \
  65. Mono.Xml.Xsl/PatternParser.cs \
  66. Mono.Xml.Xsl/PatternTokenizer.cs
  67. CLEAN_FILES = Test/XmlFiles/xsl/result.xml \
  68. System.Xml.XPath/Parser.cs \
  69. Mono.Xml.Xsl/PatternParser.cs \
  70. Mono.Xml.Xsl/PatternTokenizer.cs
  71. include ../../build/library.make