3 include ..
/build
/rules.make
5 with_mono_path
= MONO_PATH
="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH"
6 with_mono_path_n11b
= MONO_PATH
="$(topdir)/class/lib/net_1_1_bootstrap$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH"
8 ifeq (net_1_1
, $(PROFILE
))
9 # force this, we don't case if CSC is broken. This also
10 # means we can use --options, yay.
12 MCS
= $(with_mono_path
) $(INTERNAL_MCS
)
14 EXTRA_SUPPORT_FILES
= CSFriendAssembly-lib.dll GCS0122-2-lib.dll GCS0730-lib.dll GCS0733-lib.dll
17 ilasm
= $(topdir
)/class
/lib
/net_1_1_bootstrap
/ilasm.exe
18 ILASM
= $(with_mono_path_n11b
) $(RUNTIME
) $(RUNTIME_FLAGS
) $(ilasm
)
20 GENERICS_COMPILE
= $(CSCOMPILE
) /target
:library
31 $(wildcard *.response
) \
32 $(wildcard known-issues-
*)
34 TEST_SUPPORT_FILES
= \
35 CS0118-2-lib.dll CS0122-10-lib.dll CS0122-14-lib.dll CS0122-15-lib.dll CS0122-19-lib.dll CS0144-3-lib.dll \
37 CS0229-3-lib.dll CS0229-4-lib.dll \
38 CS0433-lib.dll CS0433-2-lib.dll \
39 CS0534-3-lib.dll CS0534-4-lib.dll CS0571-3-lib.dll CS0571-5-lib.dll CS0571-6-lib.dll \
40 CS0612-2-lib.dll CS0618-2-lib.dll CS0619-8-lib.dll CS0619-17-lib.dll CS0619-32-lib.dll CS0619-33-lib.dll CS0619-36-lib.dll CS0619-42-lib.dll \
41 CS0619-43-lib.dll CS1546-lib.dll CS0619-51-lib.dll CS1509-module.dll CS1681-2-lib.dll \
42 CS2015-lib.dll CS3005-16-lib.dll CS3013-module.dll CSExternAlias-lib.dll \
43 $(EXTRA_SUPPORT_FILES
)
46 all-local
$(STD_TARGETS
:=-local
):
48 VALID_PROFILE
:= $(filter net_1_1 net_2_0 net_2_1
, $(PROFILE
))
51 test-local
: $(TEST_SUPPORT_FILES
)
55 # again, run-test is when the tests actually happen, so
56 # don't compile on make test.
58 run-test-local
: run-mcs-tests
61 $(MAKE
) PROFILE
=net_1_1 run-test
62 $(MAKE
) PROFILE
=net_2_0 run-test
64 ifeq (net_2_1
, $(PROFILE
))
66 TEST_PATTERN
= '*cs*.cs'
67 LOCAL_RUNTIME_FLAGS
= --security
=temporary-smcs-hack
69 ifeq (net_2_0
, $(PROFILE
))
71 TEST_PATTERN
= '*cs*.cs'
73 ifeq (net_1_1
, $(PROFILE
))
75 TEST_PATTERN
= 'cs*.cs'
78 COMPILER
= $(topdir
)/class
/lib
/$(PROFILE
)/$(COMPILER_NAME
).exe
79 TESTER
= MONO_RUNTIME
='$(RUNTIME)' $(TEST_RUNTIME
) $(RUNTIME_FLAGS
) $(LOCAL_RUNTIME_FLAGS
) $(topdir
)/class
/lib
/$(PROFILE
)/compiler-tester.exe
81 run-mcs-tests
: $(TEST_SUPPORT_FILES
)
85 $(TESTER
) -mode
:neg
-files
:$(TEST_PATTERN
) -compiler
:$(COMPILER
) -issues
:known-issues-
$(COMPILER_NAME
) -log
:$(COMPILER_NAME
).log
$(TESTER_OPTIONS
)
88 rm -f
*.exe
*.dll
*.log
*.mdb dummy.xml
*.junk
90 dist-local
: dist-default
92 install-local uninstall-local
:
95 $(CSCOMPILE
) /target
:library
/out
:$@
$<
97 %-module.dll
: %-module.cs
98 $(CSCOMPILE
) /target
:module
/out
:$@
$<
101 $(ILASM
) /dll
/out
:$@
$<