1 thisdir = class/System.XML
3 include ../../build/rules.make
5 LIBRARY = System.Xml.dll
7 lib_file := $(wildcard ../lib/$(PROFILE)/System.Xml.dll)
12 ifdef USE_BOOT_COMPILE
13 LIBRARY_COMPILE = $(BOOT_COMPILE)
16 PROFILE_ANY_MOBILE := $(filter monotouch monotouch_runtime monodroid xammac, $(PROFILE))
18 LIB_MCS_FLAGS = -r:$(corlib) -r:System.dll -nowarn:0618,0612,0642
19 ifeq (2.1, $(FRAMEWORK_VERSION))
20 LIB_MCS_FLAGS += -unsafe -d:AGCLR -d:NET_2_1_HACK
22 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:0618 -nowarn:219 -nowarn:169 -r:System.Data.dll -r:System.Core.dll
24 ifndef PROFILE_ANY_MOBILE
25 FINAL_MCS_FLAGS = -r:System.Configuration.dll -d:CONFIGURATION_DEP
28 ifneq (bare/,$(intermediate))
29 LIB_MCS_FLAGS += $(FINAL_MCS_FLAGS)
32 LOCAL_MCS_FLAGS += -lib:$(bare_libdir)
35 ChangeLog ITest.cs readme.txt util.cs \
36 fundamental/ChangeLog \
37 files/ChangeLog files/noDTDXMLfile.xml files/otherDoc.xml files/staff.dtd files/staff.html files/staff.xml
40 ChangeLog nested-included.dtd literal-data.xml nested-dtd-test.dtd nested-dtd-test.xml simple.xml \
41 xsl/ChangeLog xsl/empty.xsl \
42 XsdValidation/ChangeLog XsdValidation/1.xsd XsdValidation/2.xsd XsdValidation/3.xsd XsdValidation/4.xsd \
43 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
46 System.Xml.Schema/BUGS-MS.txt \
47 System.Xml.Schema/BUGS.txt \
48 $(wildcard System.Xml.Serialization/standalone_tests/*.cs) \
49 $(wildcard System.Xml.Serialization/standalone_tests/*.output) \
50 System.Xml.XPath/Parser.jay \
52 Test/Microsoft.Test.csproj \
53 Test/Mono.Test.csproj \
54 Test/MonoMicro.Test.csproj \
55 Test/XmlFiles/76102.xml \
56 Test/XmlFiles/79683.dtd \
57 Test/XmlFiles/496192.xml \
59 $(wildcard Test/XmlFiles/xsd/*.xml) \
60 $(wildcard Test/XmlFiles/xsd/*.xsd) \
61 $(wildcard Test/XmlFiles/xsl/*.xml) \
62 $(wildcard Test/XmlFiles/xsl/*.xsl) \
63 Test/XmlFiles/xsl/current-in-select.ref \
64 Test/XmlFiles/xsl/ChangeLog \
65 $(xmlfiles_files:%=Test/XmlFiles/%) \
66 $(nist_dom_files:%=Test/System.Xml/nist_dom/%)
68 System.Xml.XPath/$(PROFILE)_Parser.cs: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
69 (cd System.Xml.XPath; $(topdir)/../jay/jay -ct < $(topdir)/../jay/skeleton.cs Parser.jay >> $(PROFILE)_Parser.cs)
71 Mono.Xml.Xsl/$(PROFILE)_PatternParser.jay: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
72 sed "s/\%start Expr/\%start Pattern/" $< >$@
74 Mono.Xml.Xsl/$(PROFILE)_PatternParser.cs: Mono.Xml.Xsl/$(PROFILE)_PatternParser.jay $(topdir)/jay/skeleton.cs
75 echo "#define XSLT_PATTERN" > $@
76 (cd Mono.Xml.Xsl; $(topdir)/../jay/jay -ct $(PROFILE)_PatternParser.jay < $(topdir)/../jay/skeleton.cs >> $(PROFILE)_PatternParser.cs)
78 Mono.Xml.Xsl/$(PROFILE)_PatternTokenizer.cs: System.Xml.XPath/Tokenizer.cs
79 echo "#define XSLT_PATTERN" > $@
82 ifneq (moonlight_raw, $(PROFILE))
83 BUILT_SOURCES = System.Xml.XPath/$(PROFILE)_Parser.cs \
84 Mono.Xml.Xsl/$(PROFILE)_PatternParser.cs \
85 Mono.Xml.Xsl/$(PROFILE)_PatternTokenizer.cs
87 CLEAN_FILES = Test/XmlFiles/xsl/result.xml \
88 System.Xml.XPath/$(PROFILE)_Parser.cs \
89 Mono.Xml.Xsl/$(PROFILE)_PatternParser.cs \
90 Mono.Xml.Xsl/$(PROFILE)_PatternTokenizer.cs
93 include ../../build/library.make
95 ifeq (bare/,$(intermediate))
98 $(bare_libdir)/System.Xml.dll:
99 $(MAKE) intermediate=bare/ $(bare_libdir)/System.Xml.dll
102 system_xml_library_deps := \
103 $(bare_libdir)/System.dll \
104 $(bare_libdir)/System.Xml.dll
106 ifndef PROFILE_ANY_MOBILE
107 system_xml_library_deps += $(the_libdir_base)System.Configuration.dll
110 artifacts = $(system_xml_library_deps) \
111 $(the_libdir_base)System.Configuration.dll
113 .NOTPARALLEL: $(artifacts)
115 CLEAN_FILES = $(bare_libdir)/System.Xml.dll $(bare_libdir)/System.Xml.dll.pdb
116 $(the_libdir_base)System.Xml.dll: $(system_xml_library_deps)
117 $(bare_libdir)/System.dll:
118 (cd ../System; $(MAKE) $@)
119 $(bare_libdir)/System.Xml.dll: $(bare_libdir)/System.dll
121 $(the_libdir_base)System.Configuration.dll:
122 (cd ../System.Configuration; $(MAKE) $@)
126 ifneq ($(PROFILE),basic)
128 $(MAKE) csproj-local intermediate=bare/