3 monodir=$(top_builddir)
4 mono=$(if $(MONO_EXECUTABLE),$(MONO_EXECUTABLE),mono)
7 PLATFORM_PATH_SEPARATOR=;
9 PLATFORM_PATH_SEPARATOR=:
12 # This is needed for automake dependency generation
13 libgc_libs=$(monodir)/libgc/libmonogc.la
14 libgc_static_libs=$(monodir)/libgc/libmonogc-static.la
17 $(monodir)/mono/metadata/libmonoruntime.la \
18 $(monodir)/mono/utils/libmonoutils.la \
19 $(GLIB_LIBS) $(LIBICONV) \
23 $(monodir)/mono/metadata/libmonoruntimesgen.la \
24 $(monodir)/mono/sgen/libmonosgen.la \
25 $(monodir)/mono/utils/libmonoutils.la \
26 $(GLIB_LIBS) $(LIBICONV)
29 $(monodir)/mono/metadata/libmonoruntime-static.la \
30 $(monodir)/mono/utils/libmonoutils.la \
31 $(GLIB_LIBS) $(LIBICONV) \
35 $(monodir)/mono/metadata/libmonoruntimesgen-static.la \
36 $(monodir)/mono/sgen/libmonosgen-static.la \
37 $(monodir)/mono/utils/libmonoutils.la \
38 $(GLIB_LIBS) $(LIBICONV)
41 # if the tests are going to run with framework assemblies compiled with
42 # -d:MOBILE, tell the runtime to remap framework assemblies using the mobile
44 MOBILE_RUNTIME_ARG=--runtime=mobile
49 CLASS=$(mcs_topdir)/class/lib/$(DEFAULT_PROFILE)
51 RUNTIME_EXECUTABLE = $(if $(BOEHM),$(top_builddir)/mono/mini/mono-boehm,$(top_builddir)/runtime/mono-wrapper)
53 MINI_RUNTIME = MONO_PATH=$(CLASS) $(RUNTIME_EXECUTABLE) $(MOBILE_RUNTIME_ARG)
54 TOOLS_RUNTIME = MONO_PATH=$(mcs_topdir)/class/lib/build $(top_builddir)/runtime/mono-wrapper
55 INTERP_RUNTIME = $(MINI_RUNTIME) --interpreter
56 RUNTIME_AOTCHECK = MONO_PATH="$(CLASS)$(PLATFORM_PATH_SEPARATOR)." $(RUNTIME_EXECUTABLE)
58 MCS = CSC_SDK_PATH_DISABLED= $(TOOLS_RUNTIME) $(CSC) -unsafe -nowarn:0162 -nologo -noconfig -r:$(CLASS)/mscorlib.dll -r:$(CLASS)/System.dll -r:$(CLASS)/System.Core.dll
59 ILASM = $(TOOLS_RUNTIME) $(mcs_topdir)/class/lib/build/ilasm.exe
65 $(PLATFORM_CFLAGS) $(ARCH_CFLAGS) $(SHARED_CFLAGS)
67 AM_CXXFLAGS = $(LLVM_CXXFLAGS) $(GLIB_CFLAGS)
71 # The mingw math.h has "extern inline" functions that dont appear in libs, so
72 # optimisation is required to actually inline them
76 # hack for automake to have the same source file in a library and a bin
77 genmdesc_CFLAGS = $(AM_CFLAGS)
79 monoldflags=$(export_ldflags)
80 monobinldflags=$(export_ldflags) $(extra_runtime_ldflags)
83 libmonoldflags=-no-undefined -avoid-version -Wl,--kill-at $(monoldflags)
86 libmonoldflags= -avoid-version $(monoldflags)
88 libmonoldflags=$(monoldflags) -version-info 1:0:0
93 sgen_binaries = mono-sgen
94 sgen_libraries = libmonosgen-2.0.la
95 sgen_static_libraries = libmini-static.la $(sgen_static_libs)
99 boehm_libraries = libmonoboehm-2.0.la
100 boehm_static_libraries = libmini-static.la $(boehm_static_libs)
101 boehm_binaries = mono-boehm
105 mono_bin_suffix = sgen
106 libmono_suffix = sgen
108 mono_bin_suffix = boehm
109 libmono_suffix = boehm
112 if DISABLE_EXECUTABLES
114 mono: mono-$(mono_bin_suffix)
117 mono.exe: mono-$(mono_bin_suffix).exe
121 (cd $(DESTDIR)$(bindir) && ln -sf mono-$(mono_bin_suffix) mono)
122 (cd $(DESTDIR)$(libdir); shopt -s nullglob 2>/dev/null; for i in libmono$(libmono_suffix)*; do ln -sf $$i `echo $$i | sed s/$(libmono_suffix)//` ; done)
125 if DISABLE_EXECUTABLES
128 bin_PROGRAMS = $(boehm_binaries) $(sgen_binaries) monow
130 bin_PROGRAMS = $(boehm_binaries) $(sgen_binaries)
134 if DISABLE_EXECUTABLES
135 noinst_PROGRAMS = genmdesc
137 noinst_PROGRAMS = genmdesc mono
140 if DISABLE_EXECUTABLES
141 shared_libraries = $(boehm_libraries) $(sgen_libraries)
144 shared_libraries = $(boehm_libraries) $(sgen_libraries)
148 lib_LTLIBRARIES = $(shared_libraries)
151 mini_common_lib = libmini.la
156 if DISABLE_EXECUTABLES
157 noinst_LTLIBRARIES = $(mini_common_lib)
159 noinst_LTLIBRARIES = $(mini_common_lib) libmini-static.la
163 lib_LTLIBRARIES += libmono-llvm.la
164 libmono_llvm_la_SOURCES = mini-llvm.c mini-llvm-cpp.cpp llvm-jit.cpp
165 libmono_llvm_la_LIBADD = $(GLIB_LIBS) $(LLVM_LIBS) $(LLVM_LDFLAGS)
167 libmono_llvm_la_LDFLAGS=-Wl,-undefined -Wl,suppress -Wl,-flat_namespace
169 libmono_llvm_la_LIBADD += $(top_builddir)/mono/mini/libmonoboehm-$(API_VER).la $(boehm_libs)
173 mono_boehm_SOURCES = \
176 mono_CFLAGS = $(AM_CFLAGS)
178 mono_boehm_CFLAGS = $(AM_CFLAGS)
180 AM_CPPFLAGS = $(LIBGC_CPPFLAGS)
182 mono_sgen_SOURCES = \
188 mono_sgen_CFLAGS = $(AM_CFLAGS)
190 # We build this after libmono was built so it contains the date when the final
193 if DISABLE_EXECUTABLES
194 buildver-boehm.h: libmini-static.la $(monodir)/mono/metadata/libmonoruntime.la
196 buildver-boehm.h: libmini-static.la $(monodir)/mono/metadata/libmonoruntime-static.la
198 @echo "const char *build_date = \"`date`\";" > buildver-boehm.h
199 mono_boehm-main.$(OBJEXT): buildver-boehm.h
202 if DISABLE_EXECUTABLES
203 buildver-sgen.h: libmini-static.la $(monodir)/mono/metadata/libmonoruntimesgen.la $(monodir)/mono/sgen/libmonosgen.la
205 buildver-sgen.h: libmini-static.la $(monodir)/mono/metadata/libmonoruntimesgen-static.la $(monodir)/mono/sgen/libmonosgen-static.la
207 @echo "const char *build_date = \"`date`\";" > buildver-sgen.h
208 mono_sgen-main-sgen.$(OBJEXT): buildver-sgen.h
209 main-sgen.$(OBJEXT): buildver-sgen.h
212 LIBMONO_DTRACE_OBJECT = .libs/mono-dtrace.$(OBJEXT)
214 MONO_DTRACE_OBJECT = mono-dtrace.$(OBJEXT)
220 LIBMONO_DTRACE_OBJECT =
224 # Link libmono into mono statically
225 # This leads to higher performance, especially with TLS
226 MONO_LIB=$(boehm_static_libraries)
227 MONO_SGEN_LIB=$(sgen_static_libraries)
229 MONO_LIB=libmonoboehm-2.0.la
230 MONO_SGEN_LIB=libmonosgen-2.0.la
236 LLVMMONOF=$(LLVM_LIBS) $(LLVM_LDFLAGS)
245 $(MONO_DTRACE_OBJECT)
247 mono_boehm_LDFLAGS = \
248 $(static_flags) -export-dynamic $(monobinldflags) $(monobin_platform_ldflags)
256 $(MONO_DTRACE_OBJECT)
258 mono_sgen_LDFLAGS = $(static_flags) -export-dynamic $(monobinldflags) $(monobin_platform_ldflags)
261 libmonoldflags += -no-undefined
266 # mono_LDADD = $(mono_sgen_LDADD)
267 # mono_LDFLAGS = $(mono_sgen_LDFLAGS)
274 mono-dtrace.$(OBJEXT): $(top_srcdir)/data/mono.d mini.lo $(monodir)/mono/metadata/libmonoruntime-static.la
275 DTRACE="$(DTRACE)" DTRACEFLAGS="$(DTRACEFLAGS)" AR="$(AR)" $(SHELL) $(top_srcdir)/data/dtrace-prelink.sh \
276 $@ $(top_srcdir)/data/mono.d $(monodir)/mono/metadata/libmonoruntime-static.la mini.lo
278 .libs/mono-dtrace.$(OBJEXT): $(top_srcdir)/data/mono.d mini.lo $(monodir)/mono/metadata/libmonoruntime.la
279 DTRACE="$(DTRACE)" DTRACEFLAGS="$(DTRACEFLAGS)" AR="$(AR)" $(SHELL) $(top_srcdir)/data/dtrace-prelink.sh \
280 --pic $@ $(top_srcdir)/data/mono.d $(monodir)/mono/metadata/libmonoruntime.la mini.lo
284 # Create monow.exe, linked for the 'windows' subsystem
287 monow_LDADD = $(mono_boehm_LDADD)
288 monow_LDFLAGS = $(mono_boehm_LDFLAGS) -mwindows
289 monow_SOURCES = $(mono_boehm_SOURCES)
291 monow_LDADD = $(mono_sgen_LDADD)
292 monow_LDFLAGS = $(mono_sgen_LDFLAGS) -mwindows
293 monow_SOURCES = $(mono_sgen_SOURCES)
302 ../metadata/opcodes.c
304 # Don't link this against libmonoruntime to speed up rebuilds
306 $(monodir)/mono/utils/libmonoutils.la -lm \
315 mini-x86-gsharedvt.c \
316 tramp-x86-gsharedvt.c
323 mini-amd64-gsharedvt.c \
324 mini-amd64-gsharedvt.h \
325 tramp-amd64-gsharedvt.c
338 mini-arm-gsharedvt.c \
339 tramp-arm-gsharedvt.c
346 mini-arm64-gsharedvt.c \
347 mini-arm64-gsharedvt.h \
348 tramp-arm64-gsharedvt.c
375 mini-windows-dllmain.c \
376 mini-windows-dlldac.c
394 if ENABLE_INTERPRETER
398 interp/interp-internals.h \
406 interp/interp-stubs.c
410 llvm_runtime_sources = \
413 if ENABLE_LLVM_RUNTIME
414 llvm_runtime_sources = \
447 local-propagation.c \
459 mini-generic-sharing.c \
464 mini-native-types.c \
480 mini-cross-helpers.c \
498 devirtualization.cs \
502 generics-variant-types.il\
509 MemoryIntrinsics.il \
512 regtests_UNIVERSAL = \
522 devirtualization.exe \
534 regtests = $(filter-out $(regtests_DISABLED),$(regtests_UNIVERSAL))
537 arch_sources = $(x86_sources)
543 arch_sources = $(amd64_sources)
544 arch_built=cpu-amd64.h
545 arch_define=__x86_64__
546 ARCH_FULLAOT_EXCLUDE=
550 arch_sources = $(ppc_sources)
556 arch_sources = $(ppc_sources)
557 arch_built=cpu-ppc64.h
558 arch_define=__ppc64__
562 arch_sources = $(mips_sources)
563 arch_built=cpu-mips.h
568 # pick up arm_dpimacros.h
569 ARCH_CFLAGS = -I../arch/arm
570 arch_sources = $(arm_sources)
576 arch_sources = $(arm64_sources)
577 arch_built=cpu-arm64.h
578 arch_define=__aarch64__
582 arch_sources = $(sparc_sources)
583 arch_built=cpu-sparc.h
584 arch_define=__sparc__
588 arch_sources = $(sparc_sources)
589 arch_built=cpu-sparc.h
590 arch_define=__sparc__
594 arch_sources = $(s390x_sources)
595 arch_built=cpu-s390x.h
600 os_sources = $(windows_sources)
601 monobin_platform_ldflags=
605 os_sources = $(posix_sources)
606 monobin_platform_ldflags=
610 os_sources = $(darwin_sources) $(posix_sources)
611 #monobin_platform_ldflags=-sectcreate __TEXT __info_plist $(top_srcdir)/mono/mini/Info.plist -framework CoreFoundation -framework Foundation
612 monobin_platform_ldflags=-framework CoreFoundation -framework Foundation
615 libmini_la_SOURCES = $(common_sources) $(llvm_sources) $(llvm_runtime_sources) $(interp_sources) $(arch_sources) $(os_sources)
616 libmini_la_CFLAGS = $(mono_CFLAGS)
618 libmonoboehm_2_0_la_SOURCES =
619 libmonoboehm_2_0_la_CFLAGS = $(mono_boehm_CFLAGS)
620 libmonoboehm_2_0_la_LIBADD = libmini.la $(boehm_libs) $(LIBMONO_DTRACE_OBJECT) $(LLVMMONOF)
621 libmonoboehm_2_0_la_LDFLAGS = $(libmonoldflags) $(monobin_platform_ldflags)
623 libmonosgen_2_0_la_SOURCES =
624 libmonosgen_2_0_la_CFLAGS = $(mono_sgen_CFLAGS)
625 libmonosgen_2_0_la_LIBADD = libmini.la $(sgen_libs) $(LIBMONO_DTRACE_OBJECT) $(LLVMMONOF)
626 libmonosgen_2_0_la_LDFLAGS = $(libmonoldflags) $(monobin_platform_ldflags)
629 # This library is shared between mono and mono-sgen, since the code in mini/ doesn't contain
630 # compile time dependencies on boehm/sgen.
632 libmini_static_la_SOURCES = $(libmini_la_SOURCES)
633 libmini_static_la_CFLAGS = $(AM_CFLAGS)
634 libmini_static_la_LDFLAGS = -static
635 libmini_static_la_LIBADD = $(MONO_DTRACE_OBJECT)
637 libmonoincludedir = $(includedir)/mono-$(API_VER)/mono/jit
639 libmonoinclude_HEADERS = jit.h
641 CSFLAGS = -unsafe -nowarn:0219,0169,0414,0649,0618
643 basic-simd.exe: basic-simd.cs TestDriver.dll
644 $(MCS) -out:$@ $(CSFLAGS) $< -r:TestDriver.dll -r:$(CLASS)/Mono.Simd.dll
646 basic-vectors.exe: basic-vectors.cs TestDriver.dll
647 $(MCS) -out:$@ $(CSFLAGS) $< -r:TestDriver.dll -r:$(CLASS)/System.Numerics.dll -r:$(CLASS)/System.Numerics.Vectors.dll
649 nacl.exe: nacl.cs TestDriver.dll
650 $(MCS) -out:$@ $(CSFLAGS) $< -r:TestDriver.dll -r:$(CLASS)/Mono.Simd.dll
652 generics.exe: generics.cs TestDriver.dll generics-variant-types.dll
653 $(MCS) -out:$@ $(CSFLAGS) $< -r:TestDriver.dll -r:generics-variant-types.dll -r:$(CLASS)/System.Core.dll
655 unaligned.exe: unaligned.cs TestDriver.dll MemoryIntrinsics.dll
656 $(MCS) -out:$@ $(CSFLAGS) $< -r:TestDriver.dll -r:MemoryIntrinsics.dll
658 %.exe: %.cs TestDriver.dll
659 $(MCS) -out:$@ $(CSFLAGS) $< -r:TestDriver.dll
662 $(ILASM) -output=$@ $<
664 TestDriver.dll: $(srcdir)/TestDriver.cs $(srcdir)/TestHelpers.cs
665 $(MCS) -out:$@ -target:library $^
667 generics-variant-types.dll: generics-variant-types.il
668 $(ILASM) -dll -output=$@ $<
670 MemoryIntrinsics.dll: MemoryIntrinsics.il
671 $(ILASM) -dll -output=$@ $<
675 # we don't always use the perl impl because it's an additional
676 # build dependency for the poor windows users
677 # $(arch_define) is the preprocessor symbol that enables all the opcodes
678 # for the specific platform in mini-ops.h
680 GENMDESC_PRG=perl $(srcdir)/genmdesc.pl $(arch_define) $(srcdir) $(GENMDESC_OPTS)
681 else !CROSS_COMPILING
682 GENMDESC_PRG=./genmdesc $(GENMDESC_OPTS)
683 endif !CROSS_COMPILING
685 cpu-x86.h: cpu-x86.md genmdesc$(EXEEXT)
686 $(GENMDESC_PRG) cpu-x86.h x86_desc $(srcdir)/cpu-x86.md
688 cpu-amd64.h: cpu-amd64.md genmdesc$(EXEEXT)
689 $(GENMDESC_PRG) cpu-amd64.h amd64_desc $(srcdir)/cpu-amd64.md
691 cpu-ppc.h: cpu-ppc.md genmdesc$(EXEEXT)
692 $(GENMDESC_PRG) cpu-ppc.h ppcg4 $(srcdir)/cpu-ppc.md
694 cpu-ppc64.h: cpu-ppc64.md genmdesc$(EXEEXT)
695 $(GENMDESC_PRG) cpu-ppc64.h ppc64_cpu_desc $(srcdir)/cpu-ppc64.md
697 cpu-arm.h: cpu-arm.md genmdesc$(EXEEXT)
698 $(GENMDESC_PRG) cpu-arm.h arm_cpu_desc $(srcdir)/cpu-arm.md
700 cpu-arm64.h: cpu-arm64.md genmdesc$(EXEEXT)
701 $(GENMDESC_PRG) cpu-arm64.h arm64_cpu_desc $(srcdir)/cpu-arm64.md
703 cpu-sparc.h: cpu-sparc.md genmdesc$(EXEEXT)
704 $(GENMDESC_PRG) cpu-sparc.h sparc_desc $(srcdir)/cpu-sparc.md
706 cpu-s390x.h: cpu-s390x.md genmdesc$(EXEEXT)
707 $(GENMDESC_PRG) cpu-s390x.h s390x_cpu_desc $(srcdir)/cpu-s390x.md
709 cpu-mips.h: cpu-mips.md genmdesc$(EXEEXT)
710 $(GENMDESC_PRG) cpu-mips.h mips_desc $(srcdir)/cpu-mips.md
713 $(MINI_RUNTIME) -v -v --ncompile 1 --compile Test:$(mtest) test.exe
715 # ensure the tests are actually correct
716 checktests: $(regtests)
717 for i in $(regtests); do $(MINI_RUNTIME) $$i; done
719 rcheck-nunit: mono $(regtests)
720 $(MINI_RUNTIME) --regression $(regtests) > regressiontests.out 2>&1; cat regressiontests.out; \
721 if grep -q "100% pass" regressiontests.out; then successbool=True; failurescount=0; else successbool=False; failurescount=1; fi; \
722 echo "<?xml version='1.0' encoding='utf-8'?>\
723 <test-results failures='$$failurescount' total='1' not-run='0' name='regression-tests.dummy' date='$$(date +%F)' time='$$(date +%T)'>\
724 <test-suite name='regression-tests.dummy' success='$$successbool' time='0'>\
725 <results><test-case name='MonoTests.regressions.100percentsuccess' executed='True' success='$$successbool' time='0'>" > TestResult-regression.xml; \
726 if [ "$$successbool" = "False" ]; then echo "<failure><message><![CDATA[$$(cat regressiontests.out)]]></message><stack-trace></stack-trace></failure>" >> TestResult-regression.xml; fi; \
727 echo "</test-case></results>\
729 </test-results>" >> TestResult-regression.xml; exit $$failurescount
731 rcheck: mono $(regtests)
732 $(MINI_RUNTIME) --regression $(regtests)
734 richeck: mono $(regtests)
735 $(INTERP_RUNTIME) --regression $(regtests)
737 mixedcheck: mono mixed.exe
738 $(MINI_RUNTIME) --interp=jit=JitClass mixed.exe
743 check-seq-points: mono $(regtests)
744 rm -f TestResult-op_il_seq_point.xml
745 for i in $(regtests); do $(srcdir)/test_op_il_seq_point.sh $$i || ($(srcdir)/test_op_il_seq_point_headerfooter.sh; exit 1) || exit 1; done
746 for i in $(regtests); do $(srcdir)/test_op_il_seq_point.sh $$i --aot || ($(srcdir)/test_op_il_seq_point_headerfooter.sh; exit 1) || exit 1; done
747 $(srcdir)/test_op_il_seq_point_headerfooter.sh
750 gctest: mono gc-test.exe
751 MONO_DEBUG_OPTIONS=clear-nursery-at-gc $(MINI_RUNTIME) --regression gc-test.exe
753 LLVM_AOT_RUNTIME_OPTS=$(if $(LLVM),--llvm,)
754 GSHAREDVT_RUNTIME_OPTS=$(if $(GSHAREDVT),-O=gsharedvt,)
756 aotcheck: mono $(regtests)
757 rm -rf *.exe.so *.exe.dylib *.exe.dylib.dSYM
758 $(MINI_RUNTIME) $(LLVM_AOT_RUNTIME_OPTS) --aot $(regtests) || exit 1
759 for i in $(regtests); do $(RUNTIME_AOTCHECK) --regression $$i || exit 1; done
760 rm -rf *.exe.so *.exe.dylib *.exe.dylib.dSYM
763 $(MAKE) aotcheck LLVM=1
766 $(MAKE) fullaotcheck GSHAREDVT=1
768 fullaot_regtests = $(regtests) aot-tests.exe $(if $(GSHAREDVT),gshared.exe)
769 fullaot_testing_deps = generics-variant-types.dll TestDriver.dll MemoryIntrinsics.dll
771 FULLAOT_LIBS_UNIVERSAL = \
776 System.Security.dll \
779 System.Numerics.dll \
780 System.Numerics.Vectors.dll \
782 System.Configuration.dll
784 FULLAOT_LIBS_DISABLED =
787 # Skip aoting the tests that aren't compiled
788 # on the full aot profiles because they're skipped
790 FULLAOT_LIBS_DISABLED += \
792 System.Configuration.dll
796 FULLAOT_LIBS = $(filter-out $(FULLAOT_LIBS_DISABLED),$(FULLAOT_LIBS_UNIVERSAL))
798 FULLAOT_TMP_DIR=$(top_builddir)/mono/mini/fullaot-tmp
800 # This currently only works on amd64/arm
801 fullaotcheck: $(mono) $(fullaot_regtests) $(fullaot_testing_deps)
802 rm -rf $(FULLAOT_TMP_DIR)
803 mkdir $(FULLAOT_TMP_DIR)
804 $(MAKE) fullaot-libs AOT_FLAGS="full,$(MONO_FULLAOT_ADDITIONAL_ARGS)$(INVARIANT_AOT_OPTIONS)" GSHAREDVT=$(GSHAREDVT)
805 cp $(regtests) $(fullaot_regtests) $(fullaot_testing_deps) $(FULLAOT_TMP_DIR)/
806 MONO_PATH=$(FULLAOT_TMP_DIR) $(top_builddir)/runtime/mono-wrapper $(MOBILE_RUNTIME_ARG) $(LLVM_AOT_RUNTIME_OPTS) $(GSHAREDVT_RUNTIME_OPTS) --aot="full,$(MONO_FULLAOT_ADDITIONAL_ARGS)$(INVARIANT_AOT_OPTIONS)" $(FULLAOT_TMP_DIR)/{*.dll,*.exe} || exit 1
807 ln -s $(if $(MONO_EXECUTABLE),$(MONO_EXECUTABLE),$$PWD/mono) $(FULLAOT_TMP_DIR)/
808 for i in $(fullaot_regtests); do echo $$i; MONO_PATH=$(FULLAOT_TMP_DIR) $(top_builddir)/runtime/mono-wrapper $(MOBILE_RUNTIME_ARG) --full-aot $(FULLAOT_TMP_DIR)/$$i --exclude '!FULLAOT' $(ARCH_FULLAOT_EXCLUDE) || exit 1; done
810 # This can run in parallel
811 fullaot-libs: $(patsubst %,fullaot-tmp/%.dylib,$(FULLAOT_LIBS))
813 fullaot-tmp/%.dylib: $(CLASS)/%
814 cp $(CLASS)/$* fullaot-tmp/
815 mkdir fullaot-tmp/$*-tmp
816 MONO_PATH="fullaot-tmp/$(PLATFORM_PATH_SEPARATOR)$(CLASS)" $(top_builddir)/runtime/mono-wrapper $(MOBILE_RUNTIME_ARG) $(if $(GSHAREDVT),-O=gsharedvt) --aot=$(AOT_FLAGS),temp-path=fullaot-tmp/$*-tmp fullaot-tmp/$*
817 rm -rf fullaot-tmp/$*-tmp
820 $(MAKE) fullaotcheck LLVM=1
822 llvmonly_regtests = $(fullaot_regtests) gshared.exe
824 llvmonlycheck: mono $(llvmonly_regtests)
827 $(MAKE) fullaot-libs AOT_FLAGS="llvmonly,$(MONO_FULLAOT_ADDITIONAL_ARGS)$(INVARIANT_AOT_OPTIONS)"
828 cp $(llvmonly_regtests) $(fullaot_testing_deps) fullaot-tmp/
829 MONO_PATH=fullaot-tmp $(top_builddir)/runtime/mono-wrapper $(MOBILE_RUNTIME_ARG) --aot=llvmonly fullaot-tmp/{*.dll,*.exe} || exit 1
830 ln -s $$PWD/mono fullaot-tmp/
831 for i in $(llvmonly_regtests); do echo $$i; MONO_PATH=fullaot-tmp $(top_builddir)/runtime/mono-wrapper $(MOBILE_RUNTIME_ARG) --llvmonly fullaot-tmp/$$i --exclude '!BITCODE' || exit 1; done
834 MONO_GC_PARAMS=stack-mark=precise MONO_GC_DEBUG=clear-at-gc ./mono-sgen gc-test.exe
837 time env $(MINI_RUNTIME) --ncompile $(count) --compile Test:$(mtest) test.exe
840 time $(monodir)/mono/jit/mono --ncompile $(count) --compile Test:$(mtest) test.exe
842 stat1: mono bench.exe
843 $(MINI_RUNTIME) --verbose --statfile stats.pl --regression bench.exe
844 perl viewstat.pl stats.pl
846 stat2: mono basic.exe
847 $(MINI_RUNTIME) --verbose --statfile stats.pl --regression basic.exe
848 perl viewstat.pl -e stats.pl
850 stat3: mono bench.exe
851 $(MINI_RUNTIME) --statfile stats.pl --ncompile 1000 --compile Tests:test_0_many_nested_loops bench.exe
852 perl viewstat.pl stats.pl
857 # We need these because automake can't process normal make conditionals
858 check_local_targets = $(if $(EMIT_NUNIT), rcheck-nunit, rcheck)
860 check-local: $(check_local_targets)
863 rm -f mono a.out gmon.out *.o buildver-boehm.h buildver-sgen.h test.exe regressionexitcode.out TestResult-op_il_seq_point.xml*
865 pkgconfigdir = $(libdir)/pkgconfig
867 BUILT_SOURCES = version.h $(arch_built)
869 CLEANFILES= $(BUILT_SOURCES) *.exe *.dll
870 EXTRA_DIST = TestDriver.cs \
874 $(x86_sources) cpu-x86.md \
875 $(amd64_sources) cpu-amd64.md \
876 $(ppc_sources) cpu-ppc.md cpu-ppc64.md \
877 $(arm_sources) cpu-arm.md \
878 $(arm64_sources) cpu-arm64.md \
879 $(mips_sources) cpu-mips.md \
880 $(sparc_sources) cpu-sparc.md \
881 $(s390x_sources) cpu-s390x.md \
883 $(darwin_sources) Info.plist \
885 test_op_il_seq_point.sh \
886 test_op_il_seq_point_headerfooter.sh \
890 if test -d $(top_srcdir)/.git; then \
892 LANG=C; export LANG; \
893 if test -z "$$ghprbPullId"; then \
894 branch=`git branch | grep '^\*' | sed 's/(detached from .*/explicit/' | cut -d ' ' -f 2`; \
896 branch="pull-request-$$ghprbPullId"; \
898 version=`git log --no-color --first-parent -n1 --pretty=format:%h`; \
899 echo "#define FULL_VERSION \"$$branch/$$version\""; \
902 echo "#define FULL_VERSION \"tarball\""; \
905 # Utility target for patching libtool to speed up linking
907 sed -e 's,if (for obj in $$oldobjs,if (for obj in "",g' < ../../libtool > 2; mv 2 ../../libtool
908 chmod a+x ../../libtool
910 # Utility target for patching libtool to get rid of the 'ranlib: file <file> has no symbols" warnings
912 sed -e 's/old_archive_cmds=.*/old_archive_cmds="libtool -no_warning_for_no_symbols -static -o \\$$oldlib \\$$oldobjs"/g' < ../../libtool > 2; mv 2 ../../libtool
913 chmod a+x ../../libtool
915 # Utility target to patch automake to generate the same format silent output as the old mono silent build did
917 src="@echo \" '. \$$name . ' ' x (8 - length (\$$name)) . '\""; dst="@echo \"'. \$$name . ' ' x (7 - length (\$$name)) .'\""; sed -e "s/$$src/$$dst/g" < $$EXE > 2 && cp 2 $$EXE && rm -f 2
920 etags -o TAGS `find .. -name "*.h" -o -name "*.c"`
922 if HAS_EXTENSION_MODULE
924 Makefile.am: Makefile.am.in