svn path=/branches/mono-1-1-9/mcs/; revision=50439
[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 -nowarn:0618 -nowarn:0612
26 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:0618 -nowarn:219 -nowarn:169
27
28 nist_dom_files = \
29         ChangeLog ITest.cs readme.txt util.cs \
30         fundamental/ChangeLog \
31         files/ChangeLog files/noDTDXMLfile.xml files/otherDoc.xml files/staff.dtd files/staff.html files/staff.xml
32
33 xmlfiles_files = \
34         ChangeLog nested-included.dtd literal-data.xml nested-dtd-test.dtd nested-dtd-test.xml simple.xml \
35         xsl/ChangeLog xsl/empty.xsl \
36         XsdValidation/ChangeLog XsdValidation/1.xsd XsdValidation/2.xsd XsdValidation/3.xsd XsdValidation/4.xsd \
37         xsd/ChangeLog xsd/1.xsd xsd/2.xsd xsd/3.xsd xsd/4.xsd xsd/5.xsd xsd/6.xsd xsd/xml.xsd
38
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
55 System.Xml.XPath/Parser.cs: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
56         $(topdir)/jay/jay -ct < $(topdir)/jay/skeleton.cs $< >$@
57
58 Mono.Xml.Xsl/PatternParser.jay: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
59         sed "s/\%start Expr/\%start Pattern/" $< >$@
60
61 Mono.Xml.Xsl/PatternParser.cs: Mono.Xml.Xsl/PatternParser.jay $(topdir)/jay/skeleton.cs
62         echo "#define XSLT_PATTERN" > $@
63         $(topdir)/jay/jay -ct $< < $(topdir)/jay/skeleton.cs >>$@
64
65 Mono.Xml.Xsl/PatternTokenizer.cs: System.Xml.XPath/Tokenizer.cs
66         echo "#define XSLT_PATTERN" > $@
67         cat $< >>$@
68
69 BUILT_SOURCES = System.Xml.XPath/Parser.cs \
70         Mono.Xml.Xsl/PatternParser.cs \
71         Mono.Xml.Xsl/PatternTokenizer.cs
72
73 CLEAN_FILES = Test/XmlFiles/xsl/result.xml \
74         System.Xml.XPath/Parser.cs \
75         Mono.Xml.Xsl/PatternParser.cs \
76         Mono.Xml.Xsl/PatternTokenizer.cs
77
78 include ../../build/library.make