1 thisdir = class/System.XML
3 include ../../build/rules.make
5 LIBRARY = System.Xml.dll
6 LIBRARY_USE_INTERMEDIATE_FILE = yes
8 lib_file := $(wildcard ../lib/$(PROFILE)/System.Xml.dll)
10 # In the basic profile, System.Xml.dll is _not_ a dependency of mcs.exe. So, don't use boot compilation.
11 # In other profiles, it _is_ a dependency of mcs.exe. So, use boot compilation.
12 ifneq (basic, $(PROFILE))
13 USE_BOOT_COMPILE = yes
17 ifeq (net_2_0, $(PROFILE))
18 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)
21 ifdef USE_BOOT_COMPILE
22 LIBRARY_COMPILE = $(BOOT_COMPILE)
25 LIB_MCS_FLAGS = -r:$(corlib) -r:System.dll -nowarn:0162,0618,0612,0642,1595
26 ifeq (net_1_1_java, $(PROFILE))
32 /lib:../../class/lib/$(PROFILE)
34 ifeq (2.1, $(FRAMEWORK_VERSION))
35 LIB_MCS_FLAGS += -unsafe -d:AGCLR -d:NET_2_1_HACK
37 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:0618 -nowarn:219 -nowarn:169
39 ifeq (2.0, $(FRAMEWORK_VERSION))
40 # Happens on net_2_0_bootstrap and net_2_0 profiles
41 CONFIGURATION_DEP := System.Configuration.dll
42 CONFIGURATION_DEP_FILE := $(wildcard ../lib/$(PROFILE)/$(CONFIGURATION_DEP))
43 CYCLIC_DEPS += $(CONFIGURATION_DEP)
44 CYCLIC_DEP_FILES += $(CONFIGURATION_DEP_FILE)
45 TEST_MCS_FLAGS += -r:System.Configuration
48 ifdef CONFIGURATION_DEP_FILE
49 LIB_MCS_FLAGS += -define:CONFIGURATION_DEP -r:$(CONFIGURATION_DEP)
50 $(the_lib): $(CONFIGURATION_DEP_FILE)
54 ChangeLog ITest.cs readme.txt util.cs \
55 fundamental/ChangeLog \
56 files/ChangeLog files/noDTDXMLfile.xml files/otherDoc.xml files/staff.dtd files/staff.html files/staff.xml
59 ChangeLog nested-included.dtd literal-data.xml nested-dtd-test.dtd nested-dtd-test.xml simple.xml \
60 xsl/ChangeLog xsl/empty.xsl \
61 XsdValidation/ChangeLog XsdValidation/1.xsd XsdValidation/2.xsd XsdValidation/3.xsd XsdValidation/4.xsd \
62 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
65 System.Xml.Schema/BUGS-MS.txt \
66 System.Xml.Schema/BUGS.txt \
67 $(wildcard System.Xml.Serialization/standalone_tests/*.cs) \
68 $(wildcard System.Xml.Serialization/standalone_tests/*.output) \
69 System.Xml.XPath/Parser.jay \
71 Test/Microsoft.Test.csproj \
72 Test/Mono.Test.csproj \
73 Test/MonoMicro.Test.csproj \
74 Test/XmlFiles/76102.xml \
75 Test/XmlFiles/79683.dtd \
76 $(wildcard Test/XmlFiles/xsd/*.xml) \
77 $(wildcard Test/XmlFiles/xsd/*.xsd) \
78 $(wildcard Test/XmlFiles/xsl/*.xml) \
79 $(wildcard Test/XmlFiles/xsl/*.xsl) \
80 Test/XmlFiles/xsl/current-in-select.ref \
81 Test/XmlFiles/xsl/ChangeLog \
82 $(xmlfiles_files:%=Test/XmlFiles/%) \
83 $(nist_dom_files:%=Test/System.Xml/nist_dom/%)
85 System.Xml.XPath/Parser.cs: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
86 $(topdir)/jay/jay -ct < $(topdir)/jay/skeleton.cs $< >$@
88 Mono.Xml.Xsl/PatternParser.jay: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
89 sed "s/\%start Expr/\%start Pattern/" $< >$@
91 Mono.Xml.Xsl/PatternParser.cs: Mono.Xml.Xsl/PatternParser.jay $(topdir)/jay/skeleton.cs
92 echo "#define XSLT_PATTERN" > $@
93 $(topdir)/jay/jay -ct $< < $(topdir)/jay/skeleton.cs >>$@
95 Mono.Xml.Xsl/PatternTokenizer.cs: System.Xml.XPath/Tokenizer.cs
96 echo "#define XSLT_PATTERN" > $@
99 ifneq (2.1, $(FRAMEWORK_VERSION))
100 BUILT_SOURCES = System.Xml.XPath/Parser.cs \
101 Mono.Xml.Xsl/PatternParser.cs \
102 Mono.Xml.Xsl/PatternTokenizer.cs
104 CLEAN_FILES = Test/XmlFiles/xsl/result.xml \
105 System.Xml.XPath/Parser.cs \
106 Mono.Xml.Xsl/PatternParser.cs \
107 Mono.Xml.Xsl/PatternTokenizer.cs
110 include ../../build/library.make