Makefile 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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 = /unsafe -r:$(corlib) -r:System.dll -nowarn:0162 -nowarn:0618 -nowarn:0612
  21. TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:0618 -nowarn:219 -nowarn:169
  22. nist_dom_files = \
  23. ChangeLog ITest.cs readme.txt util.cs \
  24. fundamental/ChangeLog \
  25. files/ChangeLog files/noDTDXMLfile.xml files/otherDoc.xml files/staff.dtd files/staff.html files/staff.xml
  26. xmlfiles_files = \
  27. ChangeLog nested-included.dtd literal-data.xml nested-dtd-test.dtd nested-dtd-test.xml simple.xml \
  28. xsl/ChangeLog xsl/empty.xsl \
  29. XsdValidation/ChangeLog XsdValidation/1.xsd XsdValidation/2.xsd XsdValidation/3.xsd XsdValidation/4.xsd \
  30. xsd/ChangeLog xsd/1.xsd xsd/2.xsd xsd/3.xsd xsd/4.xsd xsd/5.xsd xsd/6.xsd xsd/xml.xsd
  31. EXTRA_DISTFILES = \
  32. Mono.System.XML.csproj \
  33. Mono.System.XML.sln \
  34. README \
  35. System.Xml.Schema/BUGS-MS.txt \
  36. System.Xml.Schema/BUGS.txt \
  37. $(wildcard System.Xml.Serialization/standalone_tests/*.cs) \
  38. $(wildcard System.Xml.Serialization/standalone_tests/*.output) \
  39. System.Xml.XPath/Parser.jay \
  40. Test/ChangeLog \
  41. Test/Microsoft.Test.csproj \
  42. Test/Mono.Test.csproj \
  43. Test/MonoMicro.Test.csproj \
  44. $(xmlfiles_files:%=Test/XmlFiles/%) \
  45. $(nist_dom_files:%=Test/System.Xml/nist_dom/%)
  46. System.Xml.XPath/Parser.cs: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
  47. $(topdir)/jay/jay -ct < $(topdir)/jay/skeleton.cs $< >$@
  48. Mono.Xml.Xsl/PatternParser.jay: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
  49. sed "s/\%start Expr/\%start Pattern/" $< >$@
  50. Mono.Xml.Xsl/PatternParser.cs: Mono.Xml.Xsl/PatternParser.jay $(topdir)/jay/skeleton.cs
  51. echo "#define XSLT_PATTERN" > $@
  52. $(topdir)/jay/jay -ct $< < $(topdir)/jay/skeleton.cs >>$@
  53. Mono.Xml.Xsl/PatternTokenizer.cs: System.Xml.XPath/Tokenizer.cs
  54. echo "#define XSLT_PATTERN" > $@
  55. cat $< >>$@
  56. BUILT_SOURCES = System.Xml.XPath/Parser.cs \
  57. Mono.Xml.Xsl/PatternParser.cs \
  58. Mono.Xml.Xsl/PatternTokenizer.cs
  59. CLEAN_FILES = Test/XmlFiles/xsl/result.xml \
  60. System.Xml.XPath/Parser.cs \
  61. Mono.Xml.Xsl/PatternParser.cs \
  62. Mono.Xml.Xsl/PatternTokenizer.cs
  63. include ../../build/library.make