[build] Roslyn switch
[mono.git] / mono / tests / assemblyresolve / Makefile.am
index f6e30c4acbab118c9b3e9df749322056effb4975..1d3942ffa4fef881c4f2b0d35d8e92fc3c68c84e 100644 (file)
@@ -1,9 +1,15 @@
-with_mono_path = MONO_PATH=$(mcs_topdir)/class/lib/default
+CLASS=$(mcs_topdir)/class/lib/$(DEFAULT_PROFILE)
 
-RUNTIME = $(with_mono_path) $(top_builddir)/runtime/mono-wrapper --debug --security
-MCS = $(RUNTIME) $(mcs_topdir)/class/lib/default/mcs.exe -debug:full -target:library
+with_mono_path = MONO_PATH=$(CLASS)
 
-all: test/asm.dll
+RUNTIME = $(top_builddir)/runtime/mono-wrapper --debug
+MCS = $(with_mono_path) $(RUNTIME) $(CSC) -noconfig -nologo -debug:portable -target:library
+
+if INSTALL_AOT_ONLY
+prereq: aot
+else
+prereq: test/asm.dll
+endif
 
 test/.dirstamp deps/.dirstamp:
        -mkdir $(@D)
@@ -13,7 +19,7 @@ test/asm.dll: test/.dirstamp
 deps/test.dll deps/TestBase.dll: deps/.dirstamp
 
 test/asm.dll: deps/test.dll asm.cs
-       $(MCS) -out:test/asm.dll -r:deps/test.dll $(srcdir)/asm.cs
+       $(MCS) -out:test/asm.dll -r:deps/TestBase.dll -r:deps/test.dll $(srcdir)/asm.cs
 
 deps/test.dll: deps/TestBase.dll Test.cs
        $(MCS) -out:deps/test.dll -r:deps/TestBase.dll $(srcdir)/Test.cs
@@ -22,3 +28,13 @@ deps/TestBase.dll: TestBase.cs
        $(MCS) -out:deps/TestBase.dll $(srcdir)/TestBase.cs
 
 EXTRA_DIST = asm.cs Test.cs TestBase.cs
+
+clean:
+       rm -f deps/*.dll test/*.dll
+
+.PHONY: aot
+aot: test/asm.dll
+       MONO_PATH="deps:$(CLASS)" $(RUNTIME) $(AOT_BUILD_FLAGS) deps/test.dll
+       MONO_PATH="deps:$(CLASS)" $(RUNTIME) $(AOT_BUILD_FLAGS) deps/TestBase.dll
+       MONO_PATH="deps:$(CLASS)" $(RUNTIME) $(AOT_BUILD_FLAGS) test/asm.dll
+