9fd6276bcea918729406540e67ba166ede99c2ca
[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
7 lib_file := $(wildcard ../lib/$(PROFILE)/System.Xml.dll)
8 ifndef lib_file
9 USE_BOOT_COMPILE = yes
10 endif
11
12 ifdef USE_BOOT_COMPILE
13 LIBRARY_COMPILE = $(BOOT_COMPILE)
14 endif
15
16 RESOURCE_STRINGS = \
17         ../../../external/referencesource/System.Xml/System.Xml.txt \
18         ../../../external/referencesource/System.Data.SqlXml/System.Xml.Utils.txt
19
20 LIB_REFS = System
21 LIB_MCS_FLAGS = -r:$(corlib)  -nowarn:219,414,649,1717 -unsafe -d:ASYNC
22
23 ifeq (2.1, $(FRAMEWORK_VERSION))
24 LIB_MCS_FLAGS += -d:AGCLR -d:NET_2_1_HACK -d:DISABLE_XSLT_COMPILER -d:DISABLE_XSLT_SCRIPT,MONO_HYBRID_SYSTEM_XML -d:DISABLE_CAS_USE
25 endif
26 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:0618 -nowarn:219 -nowarn:169 -r:System.Data.dll -r:System.Core.dll
27
28 ifndef MOBILE_PROFILE
29 FINAL_MCS_FLAGS = -r:System.Configuration.dll -d:CONFIGURATION_DEP
30 endif
31
32 ifneq (bare/,$(intermediate))
33 LIB_MCS_FLAGS += $(FINAL_MCS_FLAGS)
34 endif
35
36 LOCAL_MCS_FLAGS += -lib:$(bare_libdir)
37
38 nist_dom_files = \
39         ChangeLog ITest.cs readme.txt util.cs \
40         fundamental/ChangeLog \
41         files/ChangeLog files/noDTDXMLfile.xml files/otherDoc.xml files/staff.dtd files/staff.html files/staff.xml
42
43 xmlfiles_files = \
44         ChangeLog nested-included.dtd literal-data.xml nested-dtd-test.dtd nested-dtd-test.xml simple.xml \
45         xsl/ChangeLog xsl/empty.xsl \
46         XsdValidation/ChangeLog XsdValidation/1.xsd XsdValidation/2.xsd XsdValidation/3.xsd XsdValidation/4.xsd \
47         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
48
49 EXTRA_DISTFILES = \
50         $(wildcard System.Xml.Serialization/standalone_tests/*.cs) \
51         $(wildcard System.Xml.Serialization/standalone_tests/*.output) \
52         Test/ChangeLog                  \
53         Test/Microsoft.Test.csproj      \
54         Test/Mono.Test.csproj           \
55         Test/MonoMicro.Test.csproj      \
56         Test/XmlFiles/76102.xml         \
57         Test/XmlFiles/79683.dtd         \
58         Test/XmlFiles/496192.xml        \
59         Test/XmlFiles/*.xsd     \
60         $(wildcard Test/XmlFiles/xsd/*.xml) \
61         $(wildcard Test/XmlFiles/xsd/*.xsd) \
62         $(wildcard Test/XmlFiles/xsl/*.xml) \
63         $(wildcard Test/XmlFiles/xsl/*.xsl) \
64         Test/XmlFiles/xsl/current-in-select.ref \
65         Test/XmlFiles/xsl/ChangeLog \
66         $(xmlfiles_files:%=Test/XmlFiles/%) \
67         $(nist_dom_files:%=Test/System.Xml/nist_dom/%)
68
69 include ../../build/library.make
70
71 ifeq (bare/,$(intermediate))
72 build-bare:
73 else
74 $(bare_libdir)/System.Xml.dll:
75         $(MAKE) intermediate=bare/ $(bare_libdir)/System.Xml.dll
76 endif
77
78 system_xml_library_deps :=                              \
79         $(bare_libdir)/System.dll                       \
80         $(bare_libdir)/System.Xml.dll
81
82 ifndef MOBILE_PROFILE
83 system_xml_library_deps += $(the_libdir_base)System.Configuration.dll
84 endif
85
86 artifacts = $(system_xml_library_deps)  \
87         $(the_libdir_base)System.Configuration.dll
88
89 .NOTPARALLEL: $(artifacts)
90
91 CLEAN_FILES = $(bare_libdir)/System.Xml.dll $(bare_libdir)/System.Xml.dll.pdb
92 $(the_libdir_base)System.Xml.dll: $(system_xml_library_deps) 
93 $(bare_libdir)/System.dll:
94         (cd ../System; $(MAKE) $@)
95 $(bare_libdir)/System.Xml.dll: $(bare_libdir)/System.dll 
96
97 $(the_libdir_base)System.Configuration.dll:
98         (cd ../System.Configuration; $(MAKE) $@)
99
100
101 ifndef intermediate
102 ifneq ($(PROFILE),basic)
103 csproj-local:
104         $(MAKE) csproj-local intermediate=bare/
105 endif
106 endif