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 all-local
$(STD_TARGETS
:=-local
):
15 @f
=..
/$*.cs
; options
=`sed -n 's,^// Compiler options:,,p' $$f`; \
16 case
$$options in
*-t
:library
*) ext
=dll
;; *-t
:module
*) ext
=netmodule
;; *) ext
=exe
;; esac
; \
17 testlogfile
="$*.log" ; \
18 echo
"*** $(CSCOMPILE) $$options -out:$*.$$ext $$f" > $$testlogfile ; \
19 if
$(CSCOMPILE
) $$options -out
:$*.
$$ext $$f >> $$testlogfile 2>&1 ; then \
20 if
test -f
$*.exe
; then \
21 echo
"*** $(TEST_RUNTIME) ./$*.exe" >> $$testlogfile ; \
22 if
$(TEST_RUNTIME
) -O
=-all .
/$*.exe
>> $$testlogfile 2>&1 ; then \
23 echo
"PASS: $*" > $@
; \
24 rm -f
$$testlogfile ; \
26 echo
"Exit code: $$?" >> $$testlogfile ; \
27 echo
"FAIL: $*" > $@
; \
30 echo
"PASS: $*: compilation" > $@
; \
31 rm -f
$$testlogfile ; \
34 echo
"Exit code: $$?" >> $$testlogfile ; \
35 echo
"FAIL: $*: compilation" > $@
; \
38 if
test ! -f
$$testlogfile ; then
:; else cat
$$testlogfile; fi
41 mtest-1-exe.res
: mtest-1-dll.res
44 conv-main.res
: conv-lib.res
45 vararg-exe.res
: vararg-lib.res
46 module-2.res
: module-1.res
47 module-3.res
: module-1.res module-2.res
49 gen-13-exe.res
: gen-13-dll.res
50 gen-17-exe.res
: gen-17-dll.res
51 gen-47-exe.res
: gen-47-dll.res