* SerializationCodeGenerator.cs (GenerateContract): Handle
[mono.git] / mcs / class / System.XML / Makefile
1 thisdir = class/System.XML
2 SUBDIRS = 
3 include ../../build/rules.make
4
5 LIBRARY = System.Xml.dll
6 LIBRARY_USE_INTERMEDIATE_FILE = yes
7
8 lib_file := $(wildcard ../lib/$(PROFILE)/System.Xml.dll)
9 ifndef lib_file
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
14 endif
15 endif
16
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)
19 endif
20
21 ifdef USE_BOOT_COMPILE
22 LIBRARY_COMPILE = $(BOOT_COMPILE)
23 endif
24
25 LIB_MCS_FLAGS = -r:$(corlib) -r:System.dll -nowarn:0162,0618,0612,0642,1595
26 ifeq (net_1_1_java, $(PROFILE))
27 LIB_MCS_FLAGS += \
28         -r:System.Xml.dll               \
29         -r:rt.dll                       \
30         -r:J2SE.Helpers.dll             \
31         -r:unresolved.dll               \
32         /lib:../../class/lib/$(PROFILE)
33 endif
34 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:0618 -nowarn:219 -nowarn:169
35
36 nist_dom_files = \
37         ChangeLog ITest.cs readme.txt util.cs \
38         fundamental/ChangeLog \
39         files/ChangeLog files/noDTDXMLfile.xml files/otherDoc.xml files/staff.dtd files/staff.html files/staff.xml
40
41 xmlfiles_files = \
42         ChangeLog nested-included.dtd literal-data.xml nested-dtd-test.dtd nested-dtd-test.xml simple.xml \
43         xsl/ChangeLog xsl/empty.xsl \
44         XsdValidation/ChangeLog XsdValidation/1.xsd XsdValidation/2.xsd XsdValidation/3.xsd XsdValidation/4.xsd \
45         xsd/ChangeLog xsd/1.xsd xsd/2.xsd xsd/3.xsd xsd/4.xsd xsd/5.xsd xsd/6.xsd xsd/xml.xsd
46
47 EXTRA_DISTFILES = \
48         Mono.System.XML.csproj          \
49         Mono.System.XML.sln             \
50         README                          \
51         System.Xml.Schema/BUGS-MS.txt   \
52         System.Xml.Schema/BUGS.txt      \
53         $(wildcard System.Xml.Serialization/standalone_tests/*.cs) \
54         $(wildcard System.Xml.Serialization/standalone_tests/*.output) \
55         System.Xml.XPath/Parser.jay     \
56         Test/ChangeLog                  \
57         Test/Microsoft.Test.csproj      \
58         Test/Mono.Test.csproj           \
59         Test/MonoMicro.Test.csproj      \
60         Test/XmlFiles/76102.xml         \
61         Test/XmlFiles/xsd/multi-schemaLocation.xml \
62         Test/XmlFiles/xsd/datatypesTest.xsd \
63         Test/XmlFiles/xsd/77687.xsd     \
64         Test/XmlFiles/xsd/77687inc.xsd  \
65         Test/XmlFiles/xsd/78985.xml     \
66         Test/XmlFiles/xsd/78985.xsd     \
67         Test/XmlFiles/xsd/inter-inc-1.xsd \
68         Test/XmlFiles/xsl/91834.xml     \
69         Test/XmlFiles/xsl/91834.xsl     \
70         Test/XmlFiles/xsl/91834a.xml    \
71         Test/XmlFiles/xsl/stripspace.xsl \
72         Test/XmlFiles/xsl/stripspace.xml \
73         Test/XmlFiles/xsl/current-in-select.xsl \
74         Test/XmlFiles/xsl/current-in-select.xml \
75         Test/XmlFiles/xsl/current-in-select.ref \
76         Test/XmlFiles/xsl/ChangeLog \
77         $(xmlfiles_files:%=Test/XmlFiles/%) \
78         $(nist_dom_files:%=Test/System.Xml/nist_dom/%)
79
80 System.Xml.XPath/Parser.cs: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
81         $(topdir)/jay/jay -ct < $(topdir)/jay/skeleton.cs $< >$@
82
83 Mono.Xml.Xsl/PatternParser.jay: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
84         sed "s/\%start Expr/\%start Pattern/" $< >$@
85
86 Mono.Xml.Xsl/PatternParser.cs: Mono.Xml.Xsl/PatternParser.jay $(topdir)/jay/skeleton.cs
87         echo "#define XSLT_PATTERN" > $@
88         $(topdir)/jay/jay -ct $< < $(topdir)/jay/skeleton.cs >>$@
89
90 Mono.Xml.Xsl/PatternTokenizer.cs: System.Xml.XPath/Tokenizer.cs
91         echo "#define XSLT_PATTERN" > $@
92         cat $< >>$@
93
94 BUILT_SOURCES = System.Xml.XPath/Parser.cs \
95         Mono.Xml.Xsl/PatternParser.cs \
96         Mono.Xml.Xsl/PatternTokenizer.cs
97
98 CLEAN_FILES = Test/XmlFiles/xsl/result.xml \
99         System.Xml.XPath/Parser.cs \
100         Mono.Xml.Xsl/PatternParser.cs \
101         Mono.Xml.Xsl/PatternTokenizer.cs
102
103 include ../../build/library.make