3 include ../build/rules.make
5 with_mono_path = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH"
7 ifeq (default, $(PROFILE))
8 # force this, we don't case if CSC is broken. This also
9 # means we can use --options, yay.
11 MCS = $(with_mono_path) $(INTERNAL_MCS)
14 GENERICS_COMPILE = $(CSCOMPILE) /target:library
23 $(wildcard *.response) \
24 $(wildcard known-issues-*)
26 TEST_SUPPORT_FILES = \
27 CS0118-2-lib.dll CS0122-10-lib.dll CS0122-14-lib.dll CS0122-15-lib.dll \
28 CS0534-3-lib.dll CS0534-4-lib.dll CS0571-3-lib.dll \
29 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 \
30 CS3005-16-lib.dll CS3013-module.dll
34 test-local: $(TEST_SUPPORT_FILES)
36 run-test-ondotnet-local:
38 # again, run-test is when the tests actually happen, so
39 # don't compile on make test.
41 run-test-local: run-mcs-tests
44 $(MAKE) PROFILE=default run-test
45 $(MAKE) PROFILE=net_2_0 run-test
47 ifeq (net_2_0, $(PROFILE))
49 COMPILER = $(topdir)/gmcs/gmcs.exe
50 TEST_PATTERN = '*cs*.cs'
53 COMPILER = $(topdir)/class/lib/$(PROFILE)/mcs.exe
54 TEST_PATTERN = 'cs*.cs'
57 run-mcs-tests: $(TEST_SUPPORT_FILES)
60 $(TEST_RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(PROFILE)/compiler-tester.exe negative $(TEST_PATTERN) $(COMPILER) known-issues-$(COMPILER_NAME) $(COMPILER_NAME).log
63 $(topdir)/class/lib/$(PROFILE)/compiler-tester.exe negative $(TEST_PATTERN) C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\csc.exe known-issues-$(COMPILER_NAME) $(COMPILER_NAME).log
66 rm -f *.exe *.dll *.log *.mdb dummy.xml *.junk
68 dist-local: dist-default
70 install-local uninstall-local:
73 $(CSCOMPILE) /target:library /out:$@ $<
75 %-module.dll: %-module.cs
76 $(CSCOMPILE) /target:module /out:$@ $<