Remove ChangeLog references from Makefile and .gitattribute
[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         ITest.cs readme.txt util.cs \
40         files/noDTDXMLfile.xml files/otherDoc.xml files/staff.dtd files/staff.html files/staff.xml
41
42 xmlfiles_files = \
43         nested-included.dtd literal-data.xml nested-dtd-test.dtd nested-dtd-test.xml simple.xml \
44         xsl/empty.xsl \
45         XsdValidation/1.xsd XsdValidation/2.xsd XsdValidation/3.xsd XsdValidation/4.xsd \
46         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
47
48 EXTRA_DISTFILES = \
49         $(wildcard System.Xml.Serialization/standalone_tests/*.cs) \
50         $(wildcard System.Xml.Serialization/standalone_tests/*.output) \
51         Test/Microsoft.Test.csproj      \
52         Test/Mono.Test.csproj           \
53         Test/MonoMicro.Test.csproj      \
54         Test/XmlFiles/76102.xml         \
55         Test/XmlFiles/79683.dtd         \
56         Test/XmlFiles/496192.xml        \
57         Test/XmlFiles/*.xsd     \
58         $(wildcard Test/XmlFiles/xsd/*.xml) \
59         $(wildcard Test/XmlFiles/xsd/*.xsd) \
60         $(wildcard Test/XmlFiles/xsl/*.xml) \
61         $(wildcard Test/XmlFiles/xsl/*.xsl) \
62         Test/XmlFiles/xsl/current-in-select.ref \
63         $(xmlfiles_files:%=Test/XmlFiles/%) \
64         $(nist_dom_files:%=Test/System.Xml/nist_dom/%)
65
66 include ../../build/library.make
67
68 ifeq (bare/,$(intermediate))
69 build-bare:
70 else
71 $(bare_libdir)/System.Xml.dll:
72         $(MAKE) intermediate=bare/ $(bare_libdir)/System.Xml.dll
73 endif
74
75 system_xml_library_deps :=                              \
76         $(bare_libdir)/System.dll                       \
77         $(bare_libdir)/System.Xml.dll
78
79 ifndef MOBILE_PROFILE
80 system_xml_library_deps += $(the_libdir_base)System.Configuration.dll
81 endif
82
83 artifacts = $(system_xml_library_deps)  \
84         $(the_libdir_base)System.Configuration.dll
85
86 .NOTPARALLEL: $(artifacts)
87
88 CLEAN_FILES = $(bare_libdir)/System.Xml.dll $(bare_libdir)/System.Xml.dll.pdb
89 $(the_libdir_base)System.Xml.dll: $(system_xml_library_deps) 
90 $(bare_libdir)/System.dll:
91         (cd ../System; $(MAKE) $@)
92 $(bare_libdir)/System.Xml.dll: $(bare_libdir)/System.dll 
93
94 $(the_libdir_base)System.Configuration.dll:
95         (cd ../System.Configuration; $(MAKE) $@)
96
97
98 ifndef intermediate
99 ifneq ($(PROFILE),basic)
100 csproj-local:
101         $(MAKE) csproj-local intermediate=bare/
102 endif
103 endif