[tests] Use correct MONO_PATH directory for tools like MCS/ILASM
[mono.git] / mono / tests / gc-descriptors / Makefile.am
1 CLASS=$(mcs_topdir)/class/lib/$(DEFAULT_PROFILE)
2
3 TOOLS_RUNTIME = MONO_PATH=$(mcs_topdir)/class/lib/build $(top_builddir)/runtime/mono-wrapper
4 MCS = $(TOOLS_RUNTIME) $(CSC) -lib:$(CLASS) -noconfig -unsafe -nowarn:0162 -nowarn:0168 -nowarn:0219 -debug:portable
5
6 check-local: test
7
8 test : descriptor-tests.exe
9
10 descriptor-tests.exe : descriptor-tests.cs
11         $(MCS) -Warn:0 descriptor-tests.cs
12
13 descriptor-tests.cs : descriptor-tests-driver.cs descriptor-tests-prefix.cs gen-descriptor-tests.py
14         if [ "$(srcdir)" != "$(builddir)" ]; then cp $^ .; fi
15         $(srcdir)/gen-descriptor-tests.py >descriptor-tests.cs
16
17 EXTRA_DIST = descriptor-tests-driver.cs descriptor-tests-prefix.cs gen-descriptor-tests.py
18
19 .DELETE_ON_ERROR:
20