projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add some new classes/enums/delegates for 2.0 and some new CAS unit tests
[mono.git]
/
mcs
/
mcs
/
Makefile
diff --git
a/mcs/mcs/Makefile
b/mcs/mcs/Makefile
index b5caaef99a7016cdf2c761553f8fb1261b6308f2..6b2e653609dc3e84dc3656b8aef03c96ee0c4332 100644
(file)
--- a/
mcs/mcs/Makefile
+++ b/
mcs/mcs/Makefile
@@
-4,31
+4,32
@@
include ../build/rules.make
BUILT_SOURCES = cs-parser.cs
BUILT_SOURCES = cs-parser.cs
-EXTRA_SOURCES = \
- $(topdir)/class/Mono.CSharp.Debugger/MonoSymbolFile.cs \
- $(topdir)/class/Mono.CSharp.Debugger/MonoSymbolTable.cs \
- $(topdir)/class/Mono.CSharp.Debugger/MonoSymbolWriter.cs
-
EXTRA_DISTFILES = \
compiler.csproj \
compiler.doc \
compiler.sln \
cs-parser.jay \
EXTRA_DISTFILES = \
compiler.csproj \
compiler.doc \
compiler.sln \
cs-parser.jay \
- mcs.exe.config \
NOTES \
TODO
NOTES \
TODO
-PROGRAM = mcs.exe
+PROGRAM =
$(topdir)/class/lib/$(PROFILE)/
mcs.exe
PROGRAM_COMPILE = $(BOOT_COMPILE)
PROGRAM_COMPILE = $(BOOT_COMPILE)
-PROGRAM_INSTALL_DIR = $(prefix)/lib/mono/1.0
-CLEAN_FILES = y.output
+CLEAN_FILES = y.output
*.exe *.mdb
cs-parser.cs: cs-parser.jay $(topdir)/jay/skeleton.cs
$(topdir)/jay/jay -ctv < $(topdir)/jay/skeleton.cs $< > jay-tmp.out && mv jay-tmp.out $@
include ../build/executable.make
cs-parser.cs: cs-parser.jay $(topdir)/jay/skeleton.cs
$(topdir)/jay/jay -ctv < $(topdir)/jay/skeleton.cs $< > jay-tmp.out && mv jay-tmp.out $@
include ../build/executable.make
+ifeq (default, $(PROFILE))
+# Utility rule to make debugging somewhat easier.
+all-local: mcs.exe
+mcs.exe: $(PROGRAM)
+ cp -p $< $@
+ test ! -f $<.mdb || cp -p $<.mdb $@.mdb
+endif
+
# Testing targets
TIME = time
# Testing targets
TIME = time
@@
-39,23
+40,23
@@
TIME = time
btest: mcs2.exe mcs3.exe
ls -l mcs2.exe mcs3.exe
btest: mcs2.exe mcs3.exe
ls -l mcs2.exe mcs3.exe
-mcs2.exe:
mcs.exe
- $(TIME) $(RUNTIME)
./mcs.exe $(USE_MCS_FLAGS) /target:exe /
out:$@ $(BUILT_SOURCES) @$(response)
+mcs2.exe:
$(PROGRAM)
+ $(TIME) $(RUNTIME)
$(RUNTIME_FLAGS) $(PROGRAM) $(USE_MCS_FLAGS) -target:exe -
out:$@ $(BUILT_SOURCES) @$(response)
mcs3.exe: mcs2.exe
mcs3.exe: mcs2.exe
- $(TIME) $(RUNTIME)
./mcs2.exe $(USE_MCS_FLAGS) /target:exe /
out:$@ $(BUILT_SOURCES) @$(response)
+ $(TIME) $(RUNTIME)
$(RUNTIME_FLAGS) ./mcs2.exe $(USE_MCS_FLAGS) -target:exe -
out:$@ $(BUILT_SOURCES) @$(response)
wc:
wc -l $(BUILT_SOURCES) `cat $(sourcefile)`
ctest:
rm -f mcs2.exe mcs3.exe
wc:
wc -l $(BUILT_SOURCES) `cat $(sourcefile)`
ctest:
rm -f mcs2.exe mcs3.exe
- $(MAKE) USE_MCS_FLAGS= btest
+ $(MAKE) USE_MCS_FLAGS=
"-d:NET_1_1 -d:ONLY_1_1"
btest
# we need this because bash tries to use its own crappy timer
FRIENDLY_TIME = $(shell which time) -f'%U seconds'
# we need this because bash tries to use its own crappy timer
FRIENDLY_TIME = $(shell which time) -f'%U seconds'
-do-time :
mcs.exe
+do-time :
$(PROGRAM)
@ echo -n "Run 1: "
@ rm -f mcs2.exe
@ $(MAKE) TIME="$(FRIENDLY_TIME)" mcs2.exe > /dev/null || (echo FAILED; exit 1)
@ echo -n "Run 1: "
@ rm -f mcs2.exe
@ $(MAKE) TIME="$(FRIENDLY_TIME)" mcs2.exe > /dev/null || (echo FAILED; exit 1)
@@
-67,10
+68,9
@@
do-time : mcs.exe
do-corlib:
@ echo -n "corlib: "
@ rm -f ../class/lib/mscorlib.dll
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)
+ @ cd ../class/corlib ; $(MAKE) BOOTSTRAP_MCS=
'$(FRIENDLY_TIME) mono $$(topdir)/class/lib/$(PROFILE)/mcs.exe'
> /dev/null || (echo FAILED; exit 1)
PROFILER=default
PROFILER=default
-profile : mcs.exe
- $(RUNTIME) --profile=$(PROFILER) ./mcs.exe $(USE_MCS_FLAGS) /target:exe /out:mcs2.exe $(BUILT_SOURCES) @$(response)
-
+profile : $(PROGRAM)
+ $(RUNTIME) $(RUNTIME_FLAGS) --profile=$(PROFILER) $(PROGRAM) $(USE_MCS_FLAGS) -target:exe -out:mcs2.exe $(BUILT_SOURCES) @$(response)