2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
[mcs.git] / errors / Makefile
blob0ea5ec4fc309d56900a9bcbfd1eae7aed2f6e7a0
1 thisdir = errors
2 SUBDIRS =
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 (default, $(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)
13 else
14 EXTRA_SUPPORT_FILES = CSFriendAssembly-lib.dll
15 endif
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
22 DISTFILES = \
23 CONTRIBUTORS_README \
24 errors.txt \
25 do-tests.pl \
26 $(wildcard *.cs) \
27 $(wildcard *.il) \
28 $(wildcard *.inc) \
29 $(wildcard *.pub) \
30 $(wildcard *.snk) \
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 \
36 CS0205-3-lib.dll \
37 CS0433-lib.dll CS0433-2-lib.dll \
38 CS0534-3-lib.dll CS0534-4-lib.dll CS0571-3-lib.dll \
39 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 \
40 CS0619-43-lib.dll CS1546-lib.dll CS2015-lib.dll CS3005-16-lib.dll CS3013-module.dll CSExternAlias-lib.dll \
41 $(EXTRA_SUPPORT_FILES)
43 all-local:
45 test-local: $(TEST_SUPPORT_FILES)
47 run-test-ondotnet-local:
49 # again, run-test is when the tests actually happen, so
50 # don't compile on make test.
52 run-test-local: run-mcs-tests
54 test-everything:
55 $(MAKE) PROFILE=default run-test
56 $(MAKE) PROFILE=net_2_0 run-test
58 ifeq (net_2_0, $(PROFILE))
59 COMPILER_NAME = gmcs
60 COMPILER = $(topdir)/class/lib/$(PROFILE)/gmcs.exe
61 TEST_PATTERN = '*cs*.cs'
62 else
63 COMPILER_NAME = mcs
64 COMPILER = $(topdir)/class/lib/$(PROFILE)/mcs.exe
65 TEST_PATTERN = 'cs*.cs'
66 endif
68 run-mcs-tests: $(TEST_SUPPORT_FILES)
70 run-mcs-tests:
71 MONO_RUNTIME='$(RUNTIME)' $(TEST_RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(PROFILE)/compiler-tester.exe negative 0 $(COMPILER) known-issues-$(COMPILER_NAME) $(COMPILER_NAME).log
73 clean-local:
74 rm -f *.exe *.dll *.log *.mdb dummy.xml *.junk
76 dist-local: dist-default
78 install-local uninstall-local:
80 %-lib.dll: %-lib.cs
81 $(CSCOMPILE) /target:library /out:$@ $<
83 %-module.dll: %-module.cs
84 $(CSCOMPILE) /target:module /out:$@ $<
86 %-lib.dll: %-lib.il
87 $(ILASM) /dll /out:$@ $<