diff options
author | Raja R Harinath <harinath@hurrynot.org> | 2004-12-06 14:00:43 +0300 |
---|---|---|
committer | Raja R Harinath <harinath@hurrynot.org> | 2004-12-06 14:00:43 +0300 |
commit | d0162ae35b715f21c33b3d7c380b8264f5e27400 (patch) | |
tree | 60eaf74f82d02ca18829a6acdf55630628bef757 /mcs/class/System.XML/Makefile | |
parent | 0d123e7a153c3f0b2327b29510e5d9587df7a711 (diff) |
* Makefile (lib_file): New autodetecting define.
(USE_BOOT_COMPILE, LIBRARY_COMPILE): Add support for using
bootstrap compiler.
(BUILT_SOURCES): Add ...XPath/Parser.cs.
(EXTRA_DISTFILES): Add ...Query/XQueryParser.jay.
(BOOTSTRAP_MCS) [PROFILE=net_2_0]: New.
* System.Xml.dll.sources: Remove ...XPath/Parser.cs.
svn path=/trunk/mcs/; revision=37182
Diffstat (limited to 'mcs/class/System.XML/Makefile')
-rw-r--r-- | mcs/class/System.XML/Makefile | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/mcs/class/System.XML/Makefile b/mcs/class/System.XML/Makefile index 964fced2967..9379605b3e4 100644 --- a/mcs/class/System.XML/Makefile +++ b/mcs/class/System.XML/Makefile @@ -11,6 +11,23 @@ else SCARY_LIB=/lib:$(prefix)/lib /noconfig endif +lib_file := $(wildcard ../lib/$(PROFILE)/System.Xml.dll) +ifndef lib_file +# In the basic profile, System.Xml.dll is _not_ a dependency of mcs.exe. So, don't use boot compilation. +# In other profiles, it _is_ a dependency of mcs.exe. So, use boot compilation. +ifneq (basic, $(PROFILE)) +USE_BOOT_COMPILE = yes +endif +endif + +ifeq (net_2_0, $(PROFILE)) +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) +endif + +ifdef USE_BOOT_COMPILE +LIBRARY_COMPILE = $(BOOT_COMPILE) +endif + LIB_MCS_FLAGS = $(SCARY_LIB) /unsafe /r:$(corlib) /r:System.dll /nowarn:0162 /nowarn:0618 /nowarn:0612 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) @@ -24,6 +41,7 @@ EXTRA_DISTFILES = \ $(wildcard System.Xml.Serialization/standalone_tests/*.output) \ System.Xml.XPath/Parser.jay \ System.Xml.Query/XQueryParser.jay \ + System.Xml.Query/skeleton-2.0.cs \ Test/Microsoft.Test.csproj \ Test/Mono.Test.csproj \ Test/MonoMicro.Test.csproj \ @@ -39,6 +57,7 @@ System.Xml.XPath/Parser.cs: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.c System.Xml.Query/XQueryParser.cs: System.Xml.Query/XQueryParser.jay System.Xml.Query/skeleton-2.0.cs $(topdir)/jay/jay -ct < System.Xml.Query/skeleton-2.0.cs $< >$@ -CLEAN_FILES = Test/XmlFiles/xsl/result.xml System.Xml.XPath/Parser.cs System.Xml.Query/XQueryParser.cs +BUILT_SOURCES = System.Xml.XPath/Parser.cs #System.Xml.Query/XQueryParser.cs +CLEAN_FILES = Test/XmlFiles/xsl/result.xml System.Xml.Query/XQueryParser.cs include ../../build/library.make |