* Makefile (lib_file): New autodetecting define.
[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 ifeq ($(PROFILE),atomic)
9 SCARY_LIB=
10 else
11 SCARY_LIB=/lib:$(prefix)/lib /noconfig
12 endif
13
14 lib_file := $(wildcard ../lib/$(PROFILE)/System.Xml.dll)
15 ifndef lib_file
16 # In the basic profile, System.Xml.dll is _not_ a dependency of mcs.exe.  So, don't use boot compilation.
17 # In other profiles, it _is_ a dependency of mcs.exe.  So, use boot compilation.
18 ifneq (basic, $(PROFILE))
19 USE_BOOT_COMPILE = yes
20 endif
21 endif
22
23 ifeq (net_2_0, $(PROFILE))
24 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)
25 endif
26
27 ifdef USE_BOOT_COMPILE
28 LIBRARY_COMPILE = $(BOOT_COMPILE)
29 endif
30
31 LIB_MCS_FLAGS = $(SCARY_LIB) /unsafe /r:$(corlib) /r:System.dll /nowarn:0162 /nowarn:0618 /nowarn:0612
32 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
33
34 EXTRA_DISTFILES = \
35         Mono.System.XML.csproj          \
36         Mono.System.XML.sln             \
37         README                          \
38         System.Xml.Schema/BUGS-MS.txt   \
39         System.Xml.Schema/BUGS.txt      \
40         $(wildcard System.Xml.Serialization/standalone_tests/*.cs) \
41         $(wildcard System.Xml.Serialization/standalone_tests/*.output) \
42         System.Xml.XPath/Parser.jay     \
43         System.Xml.Query/XQueryParser.jay       \
44         System.Xml.Query/skeleton-2.0.cs        \
45         Test/Microsoft.Test.csproj      \
46         Test/Mono.Test.csproj           \
47         Test/MonoMicro.Test.csproj      \
48         Test/XmlFiles/xsd/xml.xsd       \
49         Test/XmlFiles/xsd/ChangeLog     \
50         Test/XmlFiles/xsl/empty.xsl     \
51         Test/XmlFiles/xsl/ChangeLog     \
52         Test/XmlFiles/ChangeLog
53
54 System.Xml.XPath/Parser.cs: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
55         $(topdir)/jay/jay -ct < $(topdir)/jay/skeleton.cs $< >$@
56
57 System.Xml.Query/XQueryParser.cs: System.Xml.Query/XQueryParser.jay System.Xml.Query/skeleton-2.0.cs
58         $(topdir)/jay/jay -ct < System.Xml.Query/skeleton-2.0.cs $< >$@
59
60 BUILT_SOURCES = System.Xml.XPath/Parser.cs #System.Xml.Query/XQueryParser.cs
61 CLEAN_FILES = Test/XmlFiles/xsl/result.xml System.Xml.Query/XQueryParser.cs
62
63 include ../../build/library.make