2010-04-15 Jb Evain <jbevain@novell.com>
[mcs.git] / class / System.XML / Makefile
blobff68bdcee1ae80717741b01cabed6212b9571190
1 thisdir = class/System.XML
2 SUBDIRS =
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)
9 ifndef lib_file
10 USE_BOOT_COMPILE = yes
11 endif
13 ifeq (monotouch, $(PROFILE))
14 BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/monotouch$(PLATFORM_PATH_SEPARATOR)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_SMCS)
15 endif
17 ifdef USE_BOOT_COMPILE
18 LIBRARY_COMPILE = $(BOOT_COMPILE)
19 endif
21 LIB_MCS_FLAGS = -r:$(corlib) -r:System.dll -nowarn:0618,0612,0642
22 ifeq (net_1_1_java, $(PROFILE))
23 LIB_MCS_FLAGS += \
24 -r:System.Xml.dll \
25 -r:rt.dll \
26 -r:J2SE.Helpers.dll \
27 -r:unresolved.dll \
28 /lib:../../class/lib/$(PROFILE)
29 endif
30 ifeq (2.1, $(FRAMEWORK_VERSION))
31 LIB_MCS_FLAGS += -unsafe -d:AGCLR -d:NET_2_1_HACK
32 endif
33 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:0618 -nowarn:219 -nowarn:169
35 ifeq (2.0, $(FRAMEWORK_VERSION))
36 # Happens on net_2_0_bootstrap and net_2_0 profiles
37 CONFIGURATION_DEP := System.Configuration.dll
38 CONFIGURATION_DEP_FILE := $(wildcard ../lib/$(PROFILE)/$(CONFIGURATION_DEP))
39 CYCLIC_DEPS += $(CONFIGURATION_DEP)
40 CYCLIC_DEP_FILES += $(CONFIGURATION_DEP_FILE)
41 TEST_MCS_FLAGS += -r:System.Configuration
42 endif
44 ifdef CONFIGURATION_DEP_FILE
45 LIB_MCS_FLAGS += -define:CONFIGURATION_DEP -r:$(CONFIGURATION_DEP)
46 $(the_lib): $(CONFIGURATION_DEP_FILE)
47 endif
49 nist_dom_files = \
50 ChangeLog ITest.cs readme.txt util.cs \
51 fundamental/ChangeLog \
52 files/ChangeLog files/noDTDXMLfile.xml files/otherDoc.xml files/staff.dtd files/staff.html files/staff.xml
54 xmlfiles_files = \
55 ChangeLog nested-included.dtd literal-data.xml nested-dtd-test.dtd nested-dtd-test.xml simple.xml \
56 xsl/ChangeLog xsl/empty.xsl \
57 XsdValidation/ChangeLog XsdValidation/1.xsd XsdValidation/2.xsd XsdValidation/3.xsd XsdValidation/4.xsd \
58 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
60 EXTRA_DISTFILES = \
61 System.Xml.Schema/BUGS-MS.txt \
62 System.Xml.Schema/BUGS.txt \
63 $(wildcard System.Xml.Serialization/standalone_tests/*.cs) \
64 $(wildcard System.Xml.Serialization/standalone_tests/*.output) \
65 System.Xml.XPath/Parser.jay \
66 Test/ChangeLog \
67 Test/Microsoft.Test.csproj \
68 Test/Mono.Test.csproj \
69 Test/MonoMicro.Test.csproj \
70 Test/XmlFiles/76102.xml \
71 Test/XmlFiles/79683.dtd \
72 Test/XmlFiles/496192.xml \
73 Test/XmlFiles/496192.xsd \
74 $(wildcard Test/XmlFiles/xsd/*.xml) \
75 $(wildcard Test/XmlFiles/xsd/*.xsd) \
76 $(wildcard Test/XmlFiles/xsl/*.xml) \
77 $(wildcard Test/XmlFiles/xsl/*.xsl) \
78 Test/XmlFiles/xsl/current-in-select.ref \
79 Test/XmlFiles/xsl/ChangeLog \
80 $(xmlfiles_files:%=Test/XmlFiles/%) \
81 $(nist_dom_files:%=Test/System.Xml/nist_dom/%)
83 System.Xml.XPath/Parser.cs: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
84 $(topdir)/jay/jay -ct < $(topdir)/jay/skeleton.cs $< >$@
86 Mono.Xml.Xsl/PatternParser.jay: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
87 sed "s/\%start Expr/\%start Pattern/" $< >$@
89 Mono.Xml.Xsl/PatternParser.cs: Mono.Xml.Xsl/PatternParser.jay $(topdir)/jay/skeleton.cs
90 echo "#define XSLT_PATTERN" > $@
91 $(topdir)/jay/jay -ct $< < $(topdir)/jay/skeleton.cs >>$@
93 Mono.Xml.Xsl/PatternTokenizer.cs: System.Xml.XPath/Tokenizer.cs
94 echo "#define XSLT_PATTERN" > $@
95 cat $< >>$@
97 ifneq (moonlight_raw, $(PROFILE))
98 BUILT_SOURCES = System.Xml.XPath/Parser.cs \
99 Mono.Xml.Xsl/PatternParser.cs \
100 Mono.Xml.Xsl/PatternTokenizer.cs
102 CLEAN_FILES = Test/XmlFiles/xsl/result.xml \
103 System.Xml.XPath/Parser.cs \
104 Mono.Xml.Xsl/PatternParser.cs \
105 Mono.Xml.Xsl/PatternTokenizer.cs
106 endif
108 include ../../build/library.make