3 include ..
/build
/rules.make
5 ifeq (default
, $(PROFILE
))
6 # force this, we don't case if CSC is broken. This also
7 # means we can use --options, yay.
9 MCS
= MONO_PATH
="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_MCS
)
12 LOCAL_MCS_FLAGS
= /nowarn
:162 --wlevel
4
14 GENERICS_COMPILE
= $(CSCOMPILE
) /target
:library
16 RUNTEST_PL
= .
/runtest.pl
26 #all-local: run-test-local test-multi-local
27 all-local
: CS0571-3-lib.dll CS0618-2-lib.dll \
28 CS0619-8-lib.dll CS0619-17-lib.dll CS0619-32-lib.dll CS0619-33-lib.dll CS0619-36-lib.dll \
29 CS3005-16-lib.dll CS3013-module.dll
33 # again, run-test is when the tests actually happen, so
34 # don't compile on make test.
36 run-test-local
: run-mcs-tests
40 ifeq (net_2_0
, $(PROFILE
))
42 run-test-local
: run-generics-tests
46 $(MAKE
) PROFILE
=default run-test
47 $(MAKE
) PROFILE
=net_2_0 run-test
50 -rm -f
$(TEST_PROFILE
).log
51 @.
/do-tests.pl
$(TEST_PROFILE
) "$(CSCOMPILE)" "cs*.cs" 2>&1 | tee
$(TEST_PROFILE
).log
52 @
rm -f
$(TEST_PROFILE
)*.junk
56 @ .
/do-tests.pl generics
"$(GENERICS_COMPILE)" "gcs*.cs" 2>&1 | tee generics.log
61 testsuite_log
=test-multi.log
; rm -f
$$testsuite_log ; \
62 for i in error-
*.cs
; do \
63 test_out
=`echo $$i | sed 's,.cs$$,.out,'` ; \
64 test_log
=`echo $$i | sed 's,.cs$$,.log,'` ; \
65 echo
-n
"Running test $$i ... "; \
66 $(INTERNAL_MCS
) $$i > $$test_out 2>&1 ||
: ; \
67 if
$(RUNTEST_PL
) $$i $$test_out > $$test_log 2>&1 ; \
68 then echo OK
; rm -f
$$test_out $$test_log ; \
69 echo
"PASS: $$i" >> $$testsuite_log ; \
71 echo
"FAIL: $$i" >> $$testsuite_log ; \
72 flist
="$$flist $$i"; \
77 echo
"The following tests failed: $$flist"; \
80 echo All tests passed
; \
89 dist-local
: dist-default
91 install-local uninstall-local
:
94 $(BOOTSTRAP_MCS
) /target
:library
/out
:$@
$<
96 %-module.dll
: %-module.cs
97 $(BOOTSTRAP_MCS
) /target
:module
/out
:$@
$<