2005-07-13 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / errors / Makefile
1 thisdir = errors
2 SUBDIRS = 
3 include ../build/rules.make
4
5 with_mono_path = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH"
6
7 ifeq (default, $(PROFILE))
8 # force this, we don't case if CSC is broken. This also
9 # means we can use --options, yay.
10
11 MCS = $(with_mono_path) $(INTERNAL_MCS)
12 endif
13
14 GENERICS_COMPILE = $(CSCOMPILE) /target:library
15
16 DISTFILES = \
17         CONTRIBUTORS_README     \
18         errors.txt              \
19         do-tests.pl             \
20         $(wildcard *.cs)        \
21         $(wildcard *.inc)       \
22         $(wildcard *.pub)       \
23         $(wildcard *.response)  \
24         $(wildcard known-issues-*)
25
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
31
32 all-local:
33
34 test-local: $(TEST_SUPPORT_FILES)
35
36 run-test-ondotnet-local:
37
38 # again, run-test is when the tests actually happen, so
39 # don't compile on make test.
40
41 run-test-local: run-mcs-tests 
42
43 test-everything:
44         $(MAKE) PROFILE=default run-test
45         $(MAKE) PROFILE=net_2_0 run-test
46
47 ifeq (net_2_0, $(PROFILE))
48 COMPILER_NAME = gmcs
49 COMPILER = $(topdir)/gmcs/gmcs.exe
50 TEST_PATTERN = '*cs*.cs'
51 else
52 COMPILER_NAME = mcs
53 COMPILER = $(topdir)/class/lib/$(PROFILE)/mcs.exe
54 TEST_PATTERN = 'cs*.cs'
55 endif
56
57 run-mcs-tests: $(TEST_SUPPORT_FILES)
58
59 run-mcs-tests:
60         $(TEST_RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(PROFILE)/compiler-tester.exe negative $(TEST_PATTERN) $(COMPILER) known-issues-$(COMPILER_NAME) $(COMPILER_NAME).log
61         
62 run-csc-tests:
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
64
65 clean-local:
66         rm -f *.exe *.dll *.log *.mdb dummy.xml *.junk
67
68 dist-local: dist-default
69
70 install-local uninstall-local:
71
72 %-lib.dll: %-lib.cs
73         $(CSCOMPILE) /target:library /out:$@ $<
74
75 %-module.dll: %-module.cs
76         $(CSCOMPILE) /target:module /out:$@ $<