2010-03-17 Zoltan Varga <vargaz@gmail.com>
[mono.git] / mcs / build / profiles / basic.make
index 62ee838b805854a2d6e08631304639d5e1d78fbe..c20e453ed9cbcaa38b4500a790375e5377130e04 100644 (file)
@@ -22,6 +22,12 @@ NO_TEST = yes
 NO_INSTALL = yes
 FRAMEWORK_VERSION = 2.0
 
+# Compiler all using same bootstrap compiler
+LIBRARY_COMPILE = $(BOOT_COMPILE)
+
+# Verbose basic only
+# V = 1
+
 #
 # Copy from rules.make because I don't know how to unset MCS_FLAGS
 #
@@ -46,17 +52,19 @@ post-profile-cleanup:
 PROFILE_EXE = $(depsdir)/basic-profile-check.exe
 PROFILE_OUT = $(PROFILE_EXE:.exe=.out)
 
+MAKE_Q=$(if $(V),,-s)
+
 do-profile-check: $(depsdir)/.stamp
        @ok=:; \
        rm -f $(PROFILE_EXE) $(PROFILE_OUT); \
-       $(MAKE) -s $(PROFILE_OUT) > /dev/null || ok=false; \
+       $(MAKE) $(MAKE_Q) $(PROFILE_OUT) || ok=false; \
        rm -f $(PROFILE_EXE) $(PROFILE_OUT); \
        if $$ok; then :; else \
-           if test -f $(topdir)/class/lib/monolite/mcs.exe; then \
+           if test -f $(topdir)/class/lib/monolite/gmcs.exe; then \
                $(MAKE) -s do-profile-check-monolite ; \
            else \
                echo "*** The compiler '$(BOOTSTRAP_MCS)' doesn't appear to be usable." 1>&2; \
-                echo "*** You need a C# compiler version 2.0 or better installed to build MCS" 1>&2 ; \
+                echo "*** You need Mono version 2.4 or better installed to build MCS" 1>&2 ; \
                 echo "*** Read INSTALL.txt for information on how to bootstrap a Mono installation." 1>&2 ; \
                exit 1; fi; fi
 
@@ -81,6 +89,8 @@ endif
 
 $(PROFILE_EXE): $(topdir)/build/common/basic-profile-check.cs
        $(BOOTSTRAP_MCS) /warn:0 /out:$@ $<
+       echo -n "Bootstrap compiler: " 1>&2
+       $(BOOTSTRAP_MCS) --version 1>&2
 
 $(PROFILE_OUT): $(PROFILE_EXE)
        $(PROFILE_RUNTIME) $< > $@ 2>&1