Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
db4299a
Fix marshaling of chars on structs.
kumpera Dec 14, 2010
e400d3b
Add one more test for marshaling of char arrays
kumpera Dec 14, 2010
fbd6a1b
Put llvm type infos into the .text section.
vargaz Dec 14, 2010
ccc16fe
Merge branch 'master' of github.com:mono/mono
kumpera Dec 14, 2010
002317f
Release per-appdomain binding information.
kumpera Dec 14, 2010
2b83ff4
Add support for an additional TType encoding.
vargaz Dec 14, 2010
ee5160d
Fixed AesManaged parameter names to make gui-compare happy
jstedfast Dec 14, 2010
6a8e4e5
Add llvm_label_prefix to a few symbols.
vargaz Dec 14, 2010
4384daf
Recover from invalid linq block syntax
marek-safar Dec 15, 2010
d615165
Emit delegate constructor parameter names
marek-safar Dec 15, 2010
bd05c6c
Some .net 4.0 api compatibility fixes
marek-safar Dec 15, 2010
754b331
Switch to resizeable array when adding second item to base member cache
marek-safar Dec 15, 2010
6391925
Keep only single Dispose implementation in ResourceReader
marek-safar Dec 15, 2010
25b2670
Add existing class to System.Net build
marek-safar Dec 15, 2010
2fad7a5
Workaround problem when compiling many resource files references
marek-safar Dec 15, 2010
073a0e3
Fix comment typo
marek-safar Dec 15, 2010
0a0e04b
[656150] Fix repl recovery after invalid expression.
marek-safar Dec 15, 2010
8050250
Update Task parameter names
garuma Dec 15, 2010
ba688ff
Test case for security issue
Nov 25, 2010
c3e7a90
[moon] Return true for IsolatedStorageFile.IsEnabled
Dec 15, 2010
ed404a7
More parameter renaming
garuma Dec 15, 2010
89fecf7
Yet more parameter manual fixup
garuma Dec 15, 2010
1a29dfd
Add prototype for Parallel.For long overloads
garuma Dec 15, 2010
edef0d7
Add missing members in AggregateException
garuma Dec 15, 2010
1b5c2e4
[659528] Fixed cloning of switch sections
marek-safar Dec 15, 2010
7b27c2f
[659536] Don't re-create array expressions when infering implicit arr…
marek-safar Dec 15, 2010
78d78bc
New tests.
marek-safar Dec 15, 2010
a24ada6
Fixed cloning of default switch case
marek-safar Dec 15, 2010
c0b19d1
Make sure AppdDomain.PermissionSet doesn't return null
jbevain Dec 15, 2010
5976833
Sys.Core parameters fixup
garuma Dec 15, 2010
50278f2
Correct LDFLAGS on the Darwin platform so the profiler will build.
Dec 15, 2010
446ab2f
Modify the Mono EH Frame decoding so it handles the LSDA+type_info em…
vargaz Dec 16, 2010
ecd103f
Fix the build
grendello Dec 16, 2010
c84f6ed
For IXmlSerializable/XData, Instance property returns null (!)
Dec 16, 2010
3f71818
Implement XamlType.GetAllAttachableProperties() and family, except fo…
Dec 16, 2010
6c1d871
Add more attribute arguments checks
marek-safar Dec 15, 2010
5eea47a
New test
marek-safar Dec 16, 2010
db16de1
Cleanup references in static mode
marek-safar Dec 16, 2010
6954973
Some 4.0 API tweaks
marek-safar Dec 16, 2010
8257960
Add IKVM.Reflection
marek-safar Dec 16, 2010
f9d82bd
dist IKVM.Reflection
marek-safar Dec 16, 2010
49b0253
Switch to single mcs compiler for all managed code build
marek-safar Dec 16, 2010
de0d031
Add dist only Makefile
marek-safar Dec 16, 2010
1fef6ba
Fix resgen build order
marek-safar Dec 16, 2010
8bb7d1d
Monolite mcs compiler
marek-safar Dec 16, 2010
de46259
Adjust MONO_PATH, it's still needed for all profiles
marek-safar Dec 16, 2010
4eaa975
Don't build aot symbols on make dist
marek-safar Dec 16, 2010
9b61c27
Updated mcs translations, added Brazilian Portuguese
marek-safar Dec 16, 2010
4657d0a
Build po files from cs-parser.jay and not cs-parser.cs
marek-safar Dec 16, 2010
09185b9
Add support for storing elements with the same hashcode in Concurrent…
garuma Dec 16, 2010
15e3272
Clean and finish TaskFactory
garuma Dec 16, 2010
36fbacf
Add README2
migueldeicaza Dec 14, 2010
5fc6711
Update COPYING file with MS-PL and Apache2 texts
migueldeicaza Dec 16, 2010
7a49c5d
Add attachable event support in XamlType (not yet in readers and writ…
Dec 16, 2010
a791cfc
[winforms] revert patch, it regresses the test suite: https://github.…
migueldeicaza Dec 16, 2010
9aa23d8
[winforms] undo accidental removal of a line
migueldeicaza Dec 16, 2010
77af642
Undo adding of README2 test file
migueldeicaza Dec 16, 2010
8c686c3
Update instructions
migueldeicaza Dec 16, 2010
8a26398
[monodroid] Add support for the Android TimeZone file format.
jonpryor Dec 16, 2010
1fe8f7e
Improve support for exception filters.
Dec 16, 2010
89587c4
[659970] Close anonymous method scope also for top-level blocks
marek-safar Dec 16, 2010
bfb5bf1
Add documentation for my new exception filter code.
Dec 16, 2010
3455cf8
Set ImageRuntimeVersion based on mscorlib version when available
marek-safar Dec 16, 2010
bfb617e
Move line inside if () to fix 2 tests.
jpobst Dec 16, 2010
8609775
Null out trace_ips after freeing it to avoid crashes.
vargaz Dec 16, 2010
b3dce5c
Don't put llvm type infos into the text segment, it is no longer needed.
vargaz Dec 16, 2010
0cf8705
Fix access policy when more than one scheme is present #659791
Dec 16, 2010
f7ad295
Reserve r7 on arm/darwin even if iphone_abi is disabled.
vargaz Dec 17, 2010
5b0a74c
Send back an error instead of asserting when a breakpoint cannot be s…
vargaz Dec 17, 2010
01e4a7c
Convert the new NO_SEQ_POINT_AT_IL_OFFSET sdb error code into an exce…
vargaz Dec 17, 2010
9bc4f0d
Fix some broken tests that check for assembly version 2.0.0.0 on the …
jpobst Dec 17, 2010
b5ba5bf
[ThreadPool] Reset the abort state when unloading a domain
gonzalop Dec 17, 2010
093d9ef
[657601] Fixes parsing pragma warning when encounter eof
marek-safar Dec 17, 2010
5102895
Add an error to obsolete attribute to get consistent compiler error code
marek-safar Dec 17, 2010
4029237
Made SecurityAction predefined type
marek-safar Dec 17, 2010
c1d4151
[660077] Setup class interfaces for defined types in same way as for …
marek-safar Dec 17, 2010
fc940fb
Update mcs name for monolite build
marek-safar Dec 17, 2010
82264df
Remove a leftover debugging scwl
garuma Dec 17, 2010
e704c1e
get-monolite-latest now pulls a versioned archive
Dec 16, 2010
0df612b
Reverse #elif check since 4.0 profile defines NET_2_0. Fixes broken …
jpobst Dec 17, 2010
66efe2c
Log profiler: fix statistical mode on linux amd64.
illupus Dec 17, 2010
db5d050
Add --with-moon-gc to select the gc to use with moon (boehm/sgen)
Dec 17, 2010
6803208
Document the new --with-moon-gc flag on the README
Dec 17, 2010
52aac69
Fix moonlight build
Dec 17, 2010
44a043e
Mach uses wait_time not abs_time
gonzalop Dec 17, 2010
f55bc7d
Allow decomposition of some complex 64 bit opcodes on 32 bit platform…
vargaz Dec 17, 2010
6cf2d84
Fix OP_LCONV_TO_OVF_I4 under LLVM. Don't use the Mono LLVM calling co…
vargaz Dec 17, 2010
43ff0aa
Add support for OP_SETFRET to the llvm backend.
vargaz Dec 17, 2010
01715c3
Support methods returning vtypes by addr on arm/LLVM.
vargaz Dec 17, 2010
1b30134
Add more files to mcs dist
marek-safar Dec 17, 2010
256afe8
Support passing vtypes on llvm/arm.
vargaz Dec 18, 2010
69d5bae
Name the llvm methods using the debug symbol by default, instead of u…
vargaz Dec 18, 2010
0070661
Fix a buffer overflow in the aot compiler.
vargaz Dec 18, 2010
56c5f3c
Add aot-compiler to dist list
marek-safar Dec 18, 2010
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion COPYING.LIB
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ The Boehm licensing information is in the libgc directory
The SGen Garbage Collector is under the terms of the MIT X11
license


The class libraries under mono/mcs are unless otherwise stated
under the MIT X11 license.

Open source Microsoft code is licensed under the original terms
which is either MS-PL for older components, or dual licensed
MS-PL/Apache2 licensed.

GNU LIBRARY GENERAL PUBLIC LICENSE
Version 2, June 1991

Expand Down
7 changes: 7 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ For comments, corrections and updates, please contact [email protected]
ICSharpCode.SharpZipLib, GPL with exceptions.
See: mcs/class/ICSharpCode.SharpZipLib/README

** mcs/class/System.Core/System/TimeZoneInfo.Android.cs

This is a port of Apache 2.0-licensed Android code, and thus is
licensed under the Apache 2.0 license:

http://www.apache.org/licenses/LICENSE-2.0


** mcs/tools

Expand Down
3 changes: 2 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ DISTCLEANFILES= mono-uninstalled.pc
# building with monolite
mcslib = $(mcs_topdir)/class/lib
monolite = $(mcslib)/monolite
monolite_url = http://mono.ximian.com/daily/monolite-latest.tar.gz
mono_corlib_version = $(shell sed -n "s/\#define MONO_CORLIB_VERSION //p" $(srcdir)/mono/metadata/appdomain.c)
monolite_url = http://mono.ximian.com/daily/monolite-$(mono_corlib_version)-latest.tar.gz
.PHONY: get-monolite-latest
get-monolite-latest:
-rm -fr $(mcslib)/monolite-*
Expand Down
27 changes: 23 additions & 4 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,18 @@ This is Mono.



c. Building the software from SVN
c. Building the software from GIT
---------------------------------

If you are building the software from SVN, make sure that you
If you are building the software from GIT, make sure that you
have up-to-date mcs and mono sources:

svn co svn+ssh://[email protected]/source/trunk/mono
svn co svn+ssh://[email protected]/source/trunk/mcs
If you are an anonymous user:
git clone git://github.com/mono/mono.git

If you are a Mono contributors with read/write privileges:
git clone [email protected]:mono/mono.git


Then, go into the mono directory, and configure:

Expand Down Expand Up @@ -301,6 +305,21 @@ This is Mono.
System.dll, System.Code.dll and System.Xml.Core.dll) and turn
on the LINQ extensions for the compiler.

--with-moon-gc=boehm,sgen

Select the GC to use for Moonlight.

boehm:
Selects the Boehm Garbage Collector, with the same flags
as the regular Mono build. This is the default.

sgen:
Selects the new SGen Garbage Collector, which provides
Generational GC support, using the same flags as the
mono-sgen build.

This defaults to `boehm'.

--with-libgdiplus=installed,sibling,<path>

This is used to configure where should Mono look for
Expand Down
27 changes: 24 additions & 3 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -2593,11 +2593,29 @@ fi

MOONLIGHT_DEFINES=
AC_ARG_WITH(moonlight, [ --with-moonlight=yes|no|only If you want to build Mono for Moonlight (defaults to no)],[
MOONLIGHT_DEFINES="-DMOONLIGHT -DDISABLE_ASSEMBLY_REMAPPING"
if test x$with_moonlight != xno; then
MOONLIGHT_DEFINES="-DMOONLIGHT -DDISABLE_ASSEMBLY_REMAPPING "
fi
], [with_moonlight=no])
AC_SUBST(MOONLIGHT_DEFINES)

MOONLIGHT_GC=boehm
AC_ARG_WITH(moon_gc, [ --with-moon-gc=boehm,sgen Select the gc to use with Moonlight (defaults to boehm)],[
], [with_moon_gc=boehm])

case "x$with_moon_gc" in
xboehm)
MOONLIGHT_GC=boehm
MOONLIGHT_DEFINES="$MOONLIGHT_DEFINES $BOEHM_DEFINES"
;;
xsgen)
MOONLIGHT_GC=sgen
MOONLIGHT_DEFINES="$MOONLIGHT_DEFINES $SGEN_DEFINES"
;;
*)
AC_MSG_ERROR([Invalid argument to --with-moon-gc.]) ;;
esac

AC_SUBST(MOONLIGHT_DEFINES)

AC_CHECK_HEADER([malloc.h],
[AC_DEFINE([HAVE_USR_INCLUDE_MALLOC_H], [1],
Expand Down Expand Up @@ -2625,6 +2643,9 @@ libmono_ldflags="$libmono_ldflags $LIBS"

AM_CONDITIONAL(MOONLIGHT, [test "x$with_moonlight" != "xno"])
AM_CONDITIONAL(ONLY_MOONLIGHT, [test "x$with_moonlight" = "xonly"])
AM_CONDITIONAL(MOONLIGHT_BOEHM, [test "x$with_moon_gc" = "xboehm"])
AM_CONDITIONAL(MOONLIGHT_SGEN, [test "x$with_moon_gc" = "xsgen"])

AM_CONDITIONAL(INSTALL_4_0, [test "x$with_profile4" = xyes])
AM_CONDITIONAL(INSTALL_MONODROID, [test "x$with_monodroid" = xyes])
AM_CONDITIONAL(INSTALL_MONOTOUCH, [test "x$with_monotouch" = xyes])
Expand Down Expand Up @@ -2977,7 +2998,7 @@ echo "
LLVM Back End: $enable_llvm (dynamically loaded: $enable_loadedllvm)

Libraries:
Moon Profile: $with_moonlight
Moon Profile: $with_moonlight ($with_moon_gc)
MonoDroid: $with_monodroid
MonoTouch: $with_monotouch
JNI support: $jdk_headers_found
Expand Down
34 changes: 12 additions & 22 deletions mcs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,13 @@ thisdir := .
SUBDIRS := build jay mcs class nunit24 ilasm tools tests errors docs

basic_SUBDIRS := build jay mcs class tools
net_2_0_bootstrap_SUBDIRS := build tools
net_2_0_SUBDIRS := build mcs class nunit24 ilasm tools tests errors
moonlight_bootstrap_SUBDIRS := build mcs class
moonlight_raw_SUBDIRS := build mcs class tools
moonlight_SUBDIRS := tools tests errors
monodroid_bootstrap_SUBDIRS := build mcs class
monodroid_SUBDIRS := build mcs class
monotouch_bootstrap_SUBDIRS := build mcs class
monotouch_SUBDIRS := build mcs class
net_2_0_SUBDIRS := build tools/resgen tools/culevel class nunit24 ilasm tools tests errors mcs
moonlight_raw_SUBDIRS := build class tools mcs
moonlight_SUBDIRS := tools
monodroid_SUBDIRS := build class mcs
monotouch_SUBDIRS := build class mcs
net_3_5_SUBDIRS := build class tools/xbuild
net_4_0_bootstrap_SUBDIRS := build mcs class tools
net_4_0_SUBDIRS := build mcs class nunit24 ilasm tools tests errors docs
net_4_0_SUBDIRS := build tools/resgen tools/culevel class nunit24 ilasm tools tests errors docs mcs

# List of test subdirs that should pass 100%
centum_tests := \
Expand Down Expand Up @@ -105,18 +100,13 @@ profiles-do--run-test:

# Orchestrate the bootstrap here.
_boot_ = all clean install
$(_boot_:%=profile-do--net_4_0--%): profile-do--net_4_0--%: profile-do--net_4_0_bootstrap--%
$(_boot_:%=profile-do--net_4_0_bootstrap--%): profile-do--net_4_0_bootstrap--%: profile-do--net_2_0--%
$(_boot_:%=profile-do--net_4_0--%): profile-do--net_4_0--%: profile-do--basic--%
$(_boot_:%=profile-do--net_3_5--%): profile-do--net_3_5--%: profile-do--net_2_0--%
$(_boot_:%=profile-do--moonlight--%): profile-do--moonlight--%: profile-do--moonlight_raw--%
$(_boot_:%=profile-do--monodroid--%): profile-do--monodroid--%: profile-do--monodroid_bootstrap--%
$(_boot_:%=profile-do--monodroid_bootstrap--%): profile-do--monodroid_bootstrap--%: profile-do--net_2_0--%
$(_boot_:%=profile-do--monotouch--%): profile-do--monotouch--%: profile-do--monotouch_bootstrap--%
$(_boot_:%=profile-do--monotouch_bootstrap--%): profile-do--monotouch_bootstrap--%: profile-do--net_2_0--%
$(_boot_:%=profile-do--moonlight_raw--%): profile-do--moonlight_raw--%: profile-do--moonlight_bootstrap--%
$(_boot_:%=profile-do--moonlight_bootstrap--%): profile-do--moonlight_bootstrap--%: profile-do--basic--%
$(_boot_:%=profile-do--net_2_0--%): profile-do--net_2_0--%: profile-do--net_2_0_bootstrap--%
$(_boot_:%=profile-do--net_2_0_bootstrap--%): profile-do--net_2_0_bootstrap--%: profile-do--basic--%
$(_boot_:%=profile-do--moonlight--%): profile-do--moonlight--%: profile-do--moonlight_raw--%
$(_boot_:%=profile-do--monodroid--%): profile-do--monodroid--%: profile-do--basic--%
$(_boot_:%=profile-do--monotouch--%): profile-do--monotouch--%: profile-do--basic--%
$(_boot_:%=profile-do--moonlight_raw--%): profile-do--moonlight_raw--%: profile-do--basic--%
$(_boot_:%=profile-do--net_2_0--%): profile-do--net_2_0--%: profile-do--basic--%

testcorlib:
@cd class/corlib && $(MAKE) test run-test
Expand Down
4 changes: 2 additions & 2 deletions mcs/build/profiles/basic.make
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use_monolite := $(wildcard $(monolite_flag))

ifdef use_monolite
PROFILE_RUNTIME = $(with_mono_path_monolite) $(RUNTIME)
BOOTSTRAP_MCS = $(PROFILE_RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/monolite/gmcs.exe
BOOTSTRAP_MCS = $(PROFILE_RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/monolite/mcs.exe
else
PROFILE_RUNTIME = $(EXTERNAL_RUNTIME)
BOOTSTRAP_MCS = $(EXTERNAL_MCS)
Expand Down Expand Up @@ -60,7 +60,7 @@ do-profile-check: $(depsdir)/.stamp
$(MAKE) $(MAKE_Q) $(PROFILE_OUT) || ok=false; \
rm -f $(PROFILE_EXE) $(PROFILE_OUT); \
if $$ok; then :; else \
if test -f $(topdir)/class/lib/monolite/gmcs.exe; then \
if test -f $(topdir)/class/lib/monolite/mcs.exe; then \
$(MAKE) -s do-profile-check-monolite ; \
else \
echo "*** The compiler '$(BOOTSTRAP_MCS)' doesn't appear to be usable." 1>&2; \
Expand Down
12 changes: 5 additions & 7 deletions mcs/build/profiles/monodroid.make
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
#! -*- makefile -*-

my_runtime = $(RUNTIME) $(RUNTIME_FLAGS) --security=temporary-smcs-hack
INTERNAL_SMCS = $(my_runtime) $(topdir)/class/lib/$(PROFILE)/smcs.exe
BOOTSTRAP_PROFILE = basic

BOOTSTRAP_PROFILE = monodroid_bootstrap

BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(my_runtime) $(topdir)/class/lib/$(BOOTSTRAP_PROFILE)/smcs.exe
MCS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_SMCS)
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)

profile-check:
@:

PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_2_1 -d:MOBILE -d:MONODROID
DEFAULT_REFERENCES = -r:mscorlib.dll
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_2_1 -d:MOBILE -d:MONODROID -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES)
FRAMEWORK_VERSION = 2.1
NO_TEST = yes

Expand Down
12 changes: 5 additions & 7 deletions mcs/build/profiles/monotouch.make
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
#! -*- makefile -*-

my_runtime = $(RUNTIME) $(RUNTIME_FLAGS) --security=temporary-smcs-hack
INTERNAL_SMCS = $(my_runtime) $(topdir)/class/lib/$(PROFILE)/smcs.exe
BOOTSTRAP_PROFILE = basic

BOOTSTRAP_PROFILE = monotouch_bootstrap

BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(my_runtime) $(topdir)/class/lib/$(BOOTSTRAP_PROFILE)/smcs.exe
MCS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_SMCS)
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)

profile-check:
@:

PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_2_1 -d:MOBILE -d:MONOTOUCH
DEFAULT_REFERENCES = -r:mscorlib.dll
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_2_1 -d:MOBILE -d:MONOTOUCH -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES)
FRAMEWORK_VERSION = 2.1
NO_TEST = yes

Expand Down
12 changes: 5 additions & 7 deletions mcs/build/profiles/moonlight_raw.make
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
#! -*- makefile -*-

my_runtime = $(RUNTIME) $(RUNTIME_FLAGS) --security=temporary-smcs-hack
INTERNAL_SMCS = $(my_runtime) $(topdir)/class/lib/$(PROFILE)/smcs.exe
BOOTSTRAP_PROFILE = basic

BOOTSTRAP_PROFILE = moonlight_bootstrap

BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(my_runtime) $(topdir)/class/lib/$(BOOTSTRAP_PROFILE)/smcs.exe
MCS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_SMCS)
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)

profile-check:
@:

PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_2_1 -d:MOONLIGHT
DEFAULT_REFERENCES = -r:mscorlib.dll
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_2_1 -d:MOONLIGHT -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES)
FRAMEWORK_VERSION = 2.1
NO_TEST = yes

Expand Down
7 changes: 4 additions & 3 deletions mcs/build/profiles/net_2_0.make
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# -*- makefile -*-

BOOTSTRAP_PROFILE = basic
BUILD_TOOLS_PROFILE = net_2_0_bootstrap
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
MCS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)

# nuttzing!

profile-check:
@:

PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -nowarn:1699
DEFAULT_REFERENCES = -r:mscorlib.dll
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES)

FRAMEWORK_VERSION = 2.0
9 changes: 6 additions & 3 deletions mcs/build/profiles/net_3_5.make
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
# -*- makefile -*-

INTERNAL_GMCS = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/net_2_0/gmcs.exe
BOOTSTRAP_PROFILE = basic

MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)

MCS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$(topdir)/class/lib/net_2_0$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
# nuttzing!

profile-check:
@:

PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_3_5
DEFAULT_REFERENCES = -r:mscorlib.dll
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_3_5 -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) -lib:$(topdir)/class/lib/net_2_0 $(DEFAULT_REFERENCES)

FRAMEWORK_VERSION = 3.5

TEST_HARNESS = $(topdir)/class/lib/net_2_0/nunit-console.exe
Expand Down
13 changes: 6 additions & 7 deletions mcs/build/profiles/net_4_0.make
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
# -*- makefile -*-

INTERNAL_DMCS = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(PROFILE)/dmcs.exe
BOOTSTRAP_PROFILE = basic

BOOTSTRAP_PROFILE = net_4_0_bootstrap

BOOTSTAP_DMCS = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(BOOTSTRAP_PROFILE)/dmcs.exe
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(BOOTSTAP_DMCS)
MCS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_DMCS)
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)

# nuttzing!

profile-check:
@:

PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_3_0 -d:NET_3_5 -d:NET_4_0 -nowarn:1699
DEFAULT_REFERENCES = -r:mscorlib.dll
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_3_0 -d:NET_3_5 -d:NET_4_0 -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES)

FRAMEWORK_VERSION = 4.0
10 changes: 2 additions & 8 deletions mcs/build/rules.make
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,13 @@ INSTALL_DATA = $(INSTALL) -c -m 644
INSTALL_BIN = $(INSTALL) -c -m 755
INSTALL_LIB = $(INSTALL_BIN)
MKINSTALLDIRS = $(SHELL) $(topdir)/mkinstalldirs
INTERNAL_MCS = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(PROFILE)/mcs.exe
INTERNAL_MBAS = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/mbas/mbas.exe
INTERNAL_GMCS = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(PROFILE)/gmcs.exe
INTERNAL_GMCS = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/basic/mcs.exe
INTERNAL_ILASM = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(PROFILE)/ilasm.exe
corlib = mscorlib.dll

ifndef BUILD_TOOLS_PROFILE
BUILD_TOOLS_PROFILE = $(BOOTSTRAP_PROFILE)
BUILD_TOOLS_PROFILE = $(PROFILE)
endif

INTERNAL_RESGEN = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(BUILD_TOOLS_PROFILE)/resgen.exe
Expand Down Expand Up @@ -197,11 +196,6 @@ dist-default:
$(MKINSTALLDIRS) $(@D)
touch $@

# Useful

withmcs:
$(MAKE) MCS='$(INTERNAL_MCS)' BOOTSTRAP_MCS='$(INTERNAL_MCS)' all

## Documentation stuff

Q_MDOC =$(if $(V),,@echo "MDOC [$(PROFILE)] $(notdir $(@))";)
Expand Down
Loading