* Makefile (SCARY_LIB): Remove.
[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 = /unsafe /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 EXTRA_DISTFILES = \
29         Mono.System.XML.csproj          \
30         Mono.System.XML.sln             \
31         README                          \
32         System.Xml.Schema/BUGS-MS.txt   \
33         System.Xml.Schema/BUGS.txt      \
34         $(wildcard System.Xml.Serialization/standalone_tests/*.cs) \
35         $(wildcard System.Xml.Serialization/standalone_tests/*.output) \
36         System.Xml.XPath/Parser.jay     \
37         Test/Microsoft.Test.csproj      \
38         Test/Mono.Test.csproj           \
39         Test/MonoMicro.Test.csproj      \
40         Test/XmlFiles/xsd/xml.xsd       \
41         Test/XmlFiles/xsd/ChangeLog     \
42         Test/XmlFiles/xsl/empty.xsl     \
43         Test/XmlFiles/xsl/ChangeLog     \
44         Test/XmlFiles/ChangeLog
45
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
49 Mono.Xml.Xsl/PatternParser.jay: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
50         sed "s/\%start Expr/\%start Pattern/" $< >$@
51
52 Mono.Xml.Xsl/PatternParser.cs: Mono.Xml.Xsl/PatternParser.jay $(topdir)/jay/skeleton.cs
53         echo "#define XSLT_PATTERN" > $@
54         $(topdir)/jay/jay -ct $< < $(topdir)/jay/skeleton.cs >>$@
55
56 Mono.Xml.Xsl/PatternTokenizer.cs: System.Xml.XPath/Tokenizer.cs
57         echo "#define XSLT_PATTERN" > $@
58         cat $< >>$@
59
60 BUILT_SOURCES = System.Xml.XPath/Parser.cs \
61         Mono.Xml.Xsl/PatternParser.cs \
62         Mono.Xml.Xsl/PatternTokenizer.cs
63
64 CLEAN_FILES = Test/XmlFiles/xsl/result.xml \
65         System.Xml.XPath/Parser.cs \
66         Mono.Xml.Xsl/PatternParser.cs \
67         Mono.Xml.Xsl/PatternTokenizer.cs
68
69 include ../../build/library.make