Rename the mobile_static profile to aot_only
[mono.git] / mono / tests / assemblyresolve / Makefile.am
index 09069dd38ac88178f921c61946e87df83b351516..b7c7f47295959395c277e4af4a97f3f7de191da7 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
-MCS = $(RUNTIME) $(mcs_topdir)/class/lib/default/mcs.exe -debug:full -target:library
+with_mono_path = MONO_PATH=$(CLASS)
 
+RUNTIME = $(top_builddir)/runtime/mono-wrapper --debug
+MCS = $(with_mono_path) $(RUNTIME) $(mcs_topdir)/class/lib/build/mcs.exe -debug:full -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
+