[build] Roslyn switch
[mono.git] / mono / tests / assemblyresolve / Makefile.am
1 CLASS=$(mcs_topdir)/class/lib/$(DEFAULT_PROFILE)
2
3 with_mono_path = MONO_PATH=$(CLASS)
4
5 RUNTIME = $(top_builddir)/runtime/mono-wrapper --debug
6 MCS = $(with_mono_path) $(RUNTIME) $(CSC) -noconfig -nologo -debug:portable -target:library
7
8 if INSTALL_AOT_ONLY
9 prereq: aot
10 else
11 prereq: test/asm.dll
12 endif
13
14 test/.dirstamp deps/.dirstamp:
15         -mkdir $(@D)
16         rm -f $@ && date > $@
17
18 test/asm.dll: test/.dirstamp
19 deps/test.dll deps/TestBase.dll: deps/.dirstamp
20
21 test/asm.dll: deps/test.dll asm.cs
22         $(MCS) -out:test/asm.dll -r:deps/TestBase.dll -r:deps/test.dll $(srcdir)/asm.cs
23
24 deps/test.dll: deps/TestBase.dll Test.cs
25         $(MCS) -out:deps/test.dll -r:deps/TestBase.dll $(srcdir)/Test.cs
26
27 deps/TestBase.dll: TestBase.cs
28         $(MCS) -out:deps/TestBase.dll $(srcdir)/TestBase.cs
29
30 EXTRA_DIST = asm.cs Test.cs TestBase.cs
31
32 clean:
33         rm -f deps/*.dll test/*.dll
34
35 .PHONY: aot
36 aot: test/asm.dll
37         MONO_PATH="deps:$(CLASS)" $(RUNTIME) $(AOT_BUILD_FLAGS) deps/test.dll
38         MONO_PATH="deps:$(CLASS)" $(RUNTIME) $(AOT_BUILD_FLAGS) deps/TestBase.dll
39         MONO_PATH="deps:$(CLASS)" $(RUNTIME) $(AOT_BUILD_FLAGS) test/asm.dll
40