2004-04-02 Martin Baulig <martin@ximian.com>
[mono.git] / mcs / gmcs / Makefile
index 56cd632fa44e347d5d59b443c6959d6f558621ba..12c9c865ecf23e48913a7b2da32fbea7e18123d4 100644 (file)
@@ -22,7 +22,6 @@ COMPILER_SOURCES = \
        expression.cs                   \
        flowanalysis.cs                 \
        generic.cs                      \
-       interface.cs                    \
        iterators.cs                    \
        literal.cs                      \
        location.cs                     \
@@ -57,6 +56,9 @@ install-local: gmcs.exe
        $(MKINSTALLDIRS) $(DESTDIR)$(prefix)/bin
        $(INSTALL_BIN) gmcs.exe $(DESTDIR)$(prefix)/bin
 
+uninstall-local:
+       -rm -f $(DESTDIR)$(prefix)/bin/mcs.exe
+
 test-local run-test-local:
 
 clean-local:
@@ -86,9 +88,34 @@ mcs2.exe: gmcs.exe
 mcs3.exe: mcs2.exe
        $(TIME) $(RUNTIME) ./mcs2.exe $(USE_MCS_FLAGS) /target:exe /out:$@ $(all_sources)
 
+wc:
+       wc -l $(all_sources)
+
 ctest: 
        -rm mcs2.exe mcs3.exe
        make btest USE_MCS_FLAGS= 
 
+# we need this because bash tries to use its own crappy timer
+FRIENDLY_TIME = $(shell which time) -f'%U seconds'
+
+do-time : mcs.exe
+       @ echo -n "Run 1:   "
+        $(FRIENDLY_TIME) $(RUNTIME) ./mcs.exe $(USE_MCS_FLAGS) /target:exe /out:mcs2.exe $(all_sources) > /dev/null || (echo FAILED; exit 1)
+       @ echo -n "Run 2:   "
+       @ $(FRIENDLY_TIME) $(RUNTIME) ./mcs2.exe $(USE_MCS_FLAGS) /target:exe /out:mcs3.exe $(all_sources) > /dev/null || (echo FAILED; exit 1)
+       @ echo -n "corlib:  "
+       @ rm -f ../class/lib/mscorlib.dll
+       @ (cd ../class/corlib ; make BOOTSTRAP_MCS="$(FRIENDLY_TIME) mono ../../mcs/mcs.exe" > /dev/null ) || (echo FAILED; exit 1)
+
+do-corlib:
+       @ echo -n "corlib:  "
+       @ rm -f ../class/lib/mscorlib.dll
+       @ (cd ../class/corlib ; make BOOTSTRAP_MCS="$(FRIENDLY_TIME) mono ../../mcs/mcs.exe" > /dev/null ) || (echo FAILED; exit 1)
+
+PROFILER=default
+
+profile : mcs.exe
+       $(RUNTIME) --profile=$(PROFILER) ./mcs.exe $(USE_MCS_FLAGS) /target:exe /out:mcs2.exe $(all_sources)
+
 response:
        echo $(all_sources) > res