Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaja R Harinath <harinath@hurrynot.org>2004-06-16 08:13:15 +0400
committerRaja R Harinath <harinath@hurrynot.org>2004-06-16 08:13:15 +0400
commitefcc851c41e61e762ca0158e8faf92eb111157b5 (patch)
tree6f79ea933f41e495377fc7cab1bb1faa80033d40 /Makefile.am
parent9db358014d21ae24cb9831110fbbc8b56d8ba974 (diff)
Include prototype completely-untested 'make bootstrap' support for W32.
* Makefile.am (bootstrap): Define to fasterstrap for W32. (MCS_DIRS, MCS_FILES): Don't refer to Mono.CSharp.Debugger in W32. (tmpinst-dir): Change sub-make invoke to ... (tmpinst-dir-contents): ... this. Build 'mono.bat' in W32 instead of 'mono' and 'mcs'. ($(tmpinst)/bin/mono.bat): New. svn path=/trunk/mono/; revision=29659
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am46
1 files changed, 40 insertions, 6 deletions
diff --git a/Makefile.am b/Makefile.am
index e876d2fa48c..114f3b604e8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,7 +1,7 @@
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I .
-SUBDIRS = @libgc_dir@ mono @ikvm_jni_dir@ docs runtime scripts man data samples support web
+SUBDIRS = $(libgc_dir) mono $(ikvm_jni_dir) docs runtime scripts man data samples support web
# Keep in sync with SUBDIRS
## 'tools' is not normally built
@@ -44,17 +44,27 @@ MCS_BASIC_FILES = \
# Set of directories and files the 'mcs' compiler can use
## We build class/System twice to resolve the cyclic dependency of class/System.XML
-MCS_DIRS = $(MCS_BASIC_DIRS) class/System.XML class/System class/Mono.CSharp.Debugger
-MCS_FILES = $(MCS_BASIC_FILES) \
- $(mcs_topdir)/class/lib/default/System.Xml.dll \
- $(mcs_topdir)/class/lib/default/Mono.CSharp.Debugger.dll
+MCS_DIRS = $(MCS_BASIC_DIRS) class/System.XML class/System
+MCS_FILES = $(MCS_BASIC_FILES) $(mcs_topdir)/class/lib/default/System.Xml.dll
tmpinst = _tmpinst
+if PLATFORM_WIN32
+
+# bootstraps using the .NET C# compiler
+bootstrap: fasterstrap
+
+else
+
+MCS_DIRS += class/Mono.CSharp.Debugger
+MCS_FILES += $(mcs_topdir)/class/lib/default/Mono.CSharp.Debugger.dll
+
bootstrap: tmpinst-mcs-basic-build mono-do-runtime-only
$(MAKE) tmpinst-mcs-short-build
$(MAKE) fasterstrap
+endif
+
faststrap: tmpinst-mcs-short-build
$(MAKE) mono-do-runtime-only
$(MAKE) fasterstrap
@@ -141,7 +151,31 @@ mcs-do-run-test: tmpinst-dir
tmpinst-dir:
mkdir -p $(tmpinst) $(tmpinst)/bin $(tmpinst)/lib $(tmpinst)/etc/mono
- $(MAKE) $(tmpinst)/bin/mono $(tmpinst)/bin/mcs $(tmpinst)/etc/mono/machine.config
+ $(MAKE) tmpinst-dir-contents
+
+if PLATFORM_WIN32
+
+tmpinst-dir-contents: $(tmpinst)/bin/mono.bat $(tmpinst)/etc/mono/machine.config
+
+else
+
+tmpinst-dir-contents: $(tmpinst)/bin/mono $(tmpinst)/bin/mcs $(tmpinst)/etc/mono/machine.config
+
+endif
+
+$(tmpinst)/bin/mono.bat: $(srcdir)/Makefile.am
+ echo '@echo off' > $@
+ echo 'set builddir="'"`pwd`"'"' >> $@
+ echo 'set win_builddir="'"`cygpath -w -a .`"'"' >> $@
+ echo 'set tmpinst="%win_builddir%\$(tmpinst)"' >> $@
+ echo 'if %MONO_PATH% == "" goto when_empty' >> $@
+ echo 'set MONO_PATH="%MONO_PATH%;%tmpinst%\lib"' >> $@
+ echo 'goto endif_empty' >> $@
+ echo ':when_empty' >> $@
+ echo 'set MONO_PATH=%tmpinst%\lib' >> $@
+ echo ':endif_empty' >> $@
+ echo 'set MONO_CFG_DIR=%tmpinst%\etc' >> $@
+ echo "`cygpath -w /bin/sh`" '"%builddir%/libtool" --mode=execute "%builddir%/$(mono_runtime)" --config "%win_builddir%\data\config" %*' >> $@
$(tmpinst)/bin/mono: $(srcdir)/Makefile.am
echo '#! /bin/sh' > $@