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
17 libgc_libs=$(monodir)/libgc/libmonogc.la
18 libgc_static_libs=$(monodir)/libgc/libmonogc-static.la
22 $(monodir)/mono/metadata/libmonoruntime.la \
23 $(monodir)/mono/utils/libmonoutils.la \
24 $(GLIB_LIBS) $(LIBICONV) \
28 $(monodir)/mono/metadata/libmonoruntimesgen.la \
29 $(monodir)/mono/sgen/libmonosgen.la \
30 $(monodir)/mono/utils/libmonoutils.la \
31 $(GLIB_LIBS) $(LIBICONV)
34 $(monodir)/mono/metadata/libmonoruntime-static.la \
35 $(monodir)/mono/utils/libmonoutils.la \
36 $(GLIB_LIBS) $(LIBICONV) \
40 $(monodir)/mono/metadata/libmonoruntimesgen-static.la \
41 $(monodir)/mono/sgen/libmonosgen-static.la \
42 $(monodir)/mono/utils/libmonoutils.la \
43 $(GLIB_LIBS) $(LIBICONV)
46 # if the tests are going to run with framework assemblies compiled with
47 # -d:MOBILE, tell the runtime to remap framework assemblies using the mobile
49 MOBILE_RUNTIME_ARG=--runtime=mobile
54 CLASS=$(mcs_topdir)/class/lib/$(DEFAULT_PROFILE)
56 RUNTIME_EXECUTABLE = $(if $(BOEHM),$(top_builddir)/mono/mini/mono-boehm,$(top_builddir)/runtime/mono-wrapper)
58 MINI_RUNTIME = MONO_PATH=$(CLASS) $(RUNTIME_EXECUTABLE) $(MOBILE_RUNTIME_ARG)
59 TOOLS_RUNTIME = MONO_PATH=$(mcs_topdir)/class/lib/build $(top_builddir)/runtime/mono-wrapper
60 INTERP_RUNTIME = $(MINI_RUNTIME) --interpreter
61 RUNTIME_AOTCHECK = MONO_PATH="$(CLASS)$(PLATFORM_PATH_SEPARATOR)." $(RUNTIME_EXECUTABLE)
63 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
64 ILASM = $(TOOLS_RUNTIME) $(mcs_topdir)/class/lib/build/ilasm.exe
70 $(PLATFORM_CFLAGS) $(ARCH_CFLAGS) $(SHARED_CFLAGS)
72 AM_CXXFLAGS = $(LLVM_CXXFLAGS) $(GLIB_CFLAGS)
76 # The mingw math.h has "extern inline" functions that dont appear in libs, so
77 # optimisation is required to actually inline them
81 # hack for automake to have the same source file in a library and a bin
82 genmdesc_CFLAGS = $(AM_CFLAGS)
84 monoldflags=$(export_ldflags)
85 monobinldflags=$(export_ldflags) $(extra_runtime_ldflags)
88 libmonoldflags=-no-undefined -avoid-version -Wl,--kill-at $(monoldflags)
91 libmonoldflags= -avoid-version $(monoldflags)
93 libmonoldflags=$(monoldflags) -version-info 1:0:0
98 sgen_binaries = mono-sgen
99 sgen_libraries = libmonosgen-2.0.la
100 sgen_static_libraries = libmini-static.la $(sgen_static_libs)
104 boehm_libraries = libmonoboehm-2.0.la
105 boehm_static_libraries = libmini-static.la $(boehm_static_libs)
106 boehm_binaries = mono-boehm
110 mono_bin_suffix = sgen
111 libmono_suffix = sgen
113 mono_bin_suffix = boehm
114 libmono_suffix = boehm
117 if DISABLE_EXECUTABLES
119 mono: mono-$(mono_bin_suffix)
122 mono.exe: mono-$(mono_bin_suffix).exe
126 (cd $(DESTDIR)$(bindir) && ln -sf mono-$(mono_bin_suffix) mono)
127 (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)
130 if DISABLE_EXECUTABLES
133 bin_PROGRAMS = $(boehm_binaries) $(sgen_binaries) monow
135 bin_PROGRAMS = $(boehm_binaries) $(sgen_binaries)
139 if DISABLE_EXECUTABLES
140 noinst_PROGRAMS = genmdesc
142 noinst_PROGRAMS = genmdesc mono
145 if DISABLE_EXECUTABLES
146 shared_libraries = $(boehm_libraries) $(sgen_libraries)
149 shared_libraries = $(boehm_libraries) $(sgen_libraries)
153 lib_LTLIBRARIES = $(shared_libraries)
156 mini_common_lib = libmini.la
161 if DISABLE_EXECUTABLES
162 noinst_LTLIBRARIES = $(mini_common_lib)
164 noinst_LTLIBRARIES = $(mini_common_lib) libmini-static.la
168 lib_LTLIBRARIES += libmono-llvm.la
169 libmono_llvm_la_SOURCES = mini-llvm.c mini-llvm-cpp.cpp llvm-jit.cpp
170 libmono_llvm_la_LIBADD = $(GLIB_LIBS) $(LLVM_LIBS) $(LLVM_LDFLAGS)
172 libmono_llvm_la_LDFLAGS=-Wl,-undefined -Wl,suppress -Wl,-flat_namespace
174 libmono_llvm_la_LIBADD += $(top_builddir)/mono/mini/libmonoboehm-$(API_VER).la $(boehm_libs)
178 mono_boehm_SOURCES = \
181 mono_CFLAGS = $(AM_CFLAGS)
183 mono_boehm_CFLAGS = $(AM_CFLAGS)
185 AM_CPPFLAGS = $(LIBGC_CPPFLAGS)
187 mono_sgen_SOURCES = \
193 mono_sgen_CFLAGS = $(AM_CFLAGS)
195 # We build this after libmono was built so it contains the date when the final
198 if DISABLE_EXECUTABLES
199 buildver-boehm.h: libmini-static.la $(monodir)/mono/metadata/libmonoruntime.la
201 buildver-boehm.h: libmini-static.la $(monodir)/mono/metadata/libmonoruntime-static.la
203 @echo "const char *build_date = \"`date`\";" > buildver-boehm.h
204 mono_boehm-main.$(OBJEXT): buildver-boehm.h
207 if DISABLE_EXECUTABLES
208 buildver-sgen.h: libmini-static.la $(monodir)/mono/metadata/libmonoruntimesgen.la $(monodir)/mono/sgen/libmonosgen.la
210 buildver-sgen.h: libmini-static.la $(monodir)/mono/metadata/libmonoruntimesgen-static.la $(monodir)/mono/sgen/libmonosgen-static.la
212 @echo "const char *build_date = \"`date`\";" > buildver-sgen.h
213 mono_sgen-main-sgen.$(OBJEXT): buildver-sgen.h
214 main-sgen.$(OBJEXT): buildver-sgen.h
217 LIBMONO_DTRACE_OBJECT = .libs/mono-dtrace.$(OBJEXT)
219 MONO_DTRACE_OBJECT = mono-dtrace.$(OBJEXT)
225 LIBMONO_DTRACE_OBJECT =
229 # Link libmono into mono statically
230 # This leads to higher performance, especially with TLS
231 MONO_LIB=$(boehm_static_libraries)
232 MONO_SGEN_LIB=$(sgen_static_libraries)
234 MONO_LIB=libmonoboehm-2.0.la
235 MONO_SGEN_LIB=libmonosgen-2.0.la
241 LLVMMONOF=$(LLVM_LIBS) $(LLVM_LDFLAGS)
250 $(MONO_DTRACE_OBJECT)
252 mono_boehm_LDFLAGS = \
253 $(static_flags) -export-dynamic $(monobinldflags) $(monobin_platform_ldflags)
261 $(MONO_DTRACE_OBJECT)
263 mono_sgen_LDFLAGS = $(static_flags) -export-dynamic $(monobinldflags) $(monobin_platform_ldflags)
266 libmonoldflags += -no-undefined
271 # mono_LDADD = $(mono_sgen_LDADD)
272 # mono_LDFLAGS = $(mono_sgen_LDFLAGS)
279 mono-dtrace.$(OBJEXT): $(top_srcdir)/data/mono.d mini.lo $(monodir)/mono/metadata/libmonoruntime-static.la
280 DTRACE="$(DTRACE)" DTRACEFLAGS="$(DTRACEFLAGS)" AR="$(AR)" $(SHELL) $(top_srcdir)/data/dtrace-prelink.sh \
281 $@ $(top_srcdir)/data/mono.d $(monodir)/mono/metadata/libmonoruntime-static.la mini.lo
283 .libs/mono-dtrace.$(OBJEXT): $(top_srcdir)/data/mono.d mini.lo $(monodir)/mono/metadata/libmonoruntime.la
284 DTRACE="$(DTRACE)" DTRACEFLAGS="$(DTRACEFLAGS)" AR="$(AR)" $(SHELL) $(top_srcdir)/data/dtrace-prelink.sh \
285 --pic $@ $(top_srcdir)/data/mono.d $(monodir)/mono/metadata/libmonoruntime.la mini.lo
289 # Create monow.exe, linked for the 'windows' subsystem
292 monow_LDADD = $(mono_boehm_LDADD)
293 monow_LDFLAGS = $(mono_boehm_LDFLAGS) -mwindows
294 monow_SOURCES = $(mono_boehm_SOURCES)
296 monow_LDADD = $(mono_sgen_LDADD)
297 monow_LDFLAGS = $(mono_sgen_LDFLAGS) -mwindows
298 monow_SOURCES = $(mono_sgen_SOURCES)
307 ../metadata/opcodes.c
309 # Don't link this against libmonoruntime to speed up rebuilds
311 $(monodir)/mono/utils/libmonoutils.la -lm \
320 mini-x86-gsharedvt.c \
321 tramp-x86-gsharedvt.c
328 mini-amd64-gsharedvt.c \
329 mini-amd64-gsharedvt.h \
330 tramp-amd64-gsharedvt.c
343 mini-arm-gsharedvt.c \
344 tramp-arm-gsharedvt.c
351 mini-arm64-gsharedvt.c \
352 mini-arm64-gsharedvt.h \
353 tramp-arm64-gsharedvt.c
380 mini-windows-dllmain.c \
381 mini-windows-dlldac.c
399 if ENABLE_INTERPRETER
403 interp/interp-internals.h \
411 interp/interp-stubs.c
415 llvm_runtime_sources = \
418 if ENABLE_LLVM_RUNTIME
419 llvm_runtime_sources = \
452 local-propagation.c \
464 mini-generic-sharing.c \
469 mini-native-types.c \
485 mini-cross-helpers.c \
504 devirtualization.cs \
508 generics-variant-types.il\
515 MemoryIntrinsics.il \
518 regtests_UNIVERSAL = \
529 devirtualization.exe \
538 regtests_DISABLED += builtin-types.exe
541 regtests = $(filter-out $(regtests_DISABLED),$(regtests_UNIVERSAL))
544 arch_sources = $(x86_sources)
550 arch_sources = $(amd64_sources)
551 arch_built=cpu-amd64.h
552 arch_define=__x86_64__
553 ARCH_FULLAOT_EXCLUDE=
557 arch_sources = $(ppc_sources)
563 arch_sources = $(ppc_sources)
564 arch_built=cpu-ppc64.h
565 arch_define=__ppc64__
569 arch_sources = $(mips_sources)
570 arch_built=cpu-mips.h
575 # pick up arm_dpimacros.h
576 ARCH_CFLAGS = -I../arch/arm
577 arch_sources = $(arm_sources)
583 arch_sources = $(arm64_sources)
584 arch_built=cpu-arm64.h
585 arch_define=__aarch64__
589 arch_sources = $(sparc_sources)
590 arch_built=cpu-sparc.h
591 arch_define=__sparc__
595 arch_sources = $(sparc_sources)
596 arch_built=cpu-sparc.h
597 arch_define=__sparc__
601 arch_sources = $(s390x_sources)
602 arch_built=cpu-s390x.h
607 os_sources = $(windows_sources)
608 monobin_platform_ldflags=
612 os_sources = $(posix_sources)
613 monobin_platform_ldflags=
617 os_sources = $(darwin_sources) $(posix_sources)
618 #monobin_platform_ldflags=-sectcreate __TEXT __info_plist $(top_srcdir)/mono/mini/Info.plist -framework CoreFoundation -framework Foundation
619 monobin_platform_ldflags=-framework CoreFoundation -framework Foundation
622 libmini_la_SOURCES = $(common_sources) $(llvm_sources) $(llvm_runtime_sources) $(interp_sources) $(arch_sources) $(os_sources)
623 libmini_la_CFLAGS = $(mono_CFLAGS)
625 libmonoboehm_2_0_la_SOURCES =
626 libmonoboehm_2_0_la_CFLAGS = $(mono_boehm_CFLAGS)
627 libmonoboehm_2_0_la_LIBADD = libmini.la $(boehm_libs) $(LIBMONO_DTRACE_OBJECT) $(LLVMMONOF)
628 libmonoboehm_2_0_la_LDFLAGS = $(libmonoldflags) $(monobin_platform_ldflags)
630 libmonosgen_2_0_la_SOURCES =
631 libmonosgen_2_0_la_CFLAGS = $(mono_sgen_CFLAGS)
632 libmonosgen_2_0_la_LIBADD = libmini.la $(sgen_libs) $(LIBMONO_DTRACE_OBJECT) $(LLVMMONOF)
633 libmonosgen_2_0_la_LDFLAGS = $(libmonoldflags) $(monobin_platform_ldflags)
636 # This library is shared between mono and mono-sgen, since the code in mini/ doesn't contain
637 # compile time dependencies on boehm/sgen.
639 libmini_static_la_SOURCES = $(libmini_la_SOURCES)
640 libmini_static_la_CFLAGS = $(AM_CFLAGS)
641 libmini_static_la_LDFLAGS = -static
642 libmini_static_la_LIBADD = $(MONO_DTRACE_OBJECT)
644 libmonoincludedir = $(includedir)/mono-$(API_VER)/mono/jit
646 libmonoinclude_HEADERS = jit.h
648 CSFLAGS = -unsafe -nowarn:0219,0169,0414,0649,0618
650 basic-simd.exe: basic-simd.cs TestDriver.dll
651 $(MCS) -out:$@ $(CSFLAGS) $< -r:TestDriver.dll -r:$(CLASS)/Mono.Simd.dll
653 basic-vectors.exe: basic-vectors.cs TestDriver.dll
654 $(MCS) -out:$@ $(CSFLAGS) $< -r:TestDriver.dll -r:$(CLASS)/System.Numerics.dll -r:$(CLASS)/System.Numerics.Vectors.dll
656 builtin-types.exe: builtin-types.cs TestDriver.dll
657 $(MCS) -out:$@ $(CSFLAGS) -define:ARCH_$(shell echo $$((8 * $(SIZEOF_VOID_P)))) $< -r:TestDriver.dll
659 nacl.exe: nacl.cs TestDriver.dll
660 $(MCS) -out:$@ $(CSFLAGS) $< -r:TestDriver.dll -r:$(CLASS)/Mono.Simd.dll
662 generics.exe: generics.cs TestDriver.dll generics-variant-types.dll
663 $(MCS) -out:$@ $(CSFLAGS) $< -r:TestDriver.dll -r:generics-variant-types.dll -r:$(CLASS)/System.Core.dll
665 unaligned.exe: unaligned.cs TestDriver.dll MemoryIntrinsics.dll
666 $(MCS) -out:$@ $(CSFLAGS) $< -r:TestDriver.dll -r:MemoryIntrinsics.dll
668 %.exe: %.cs TestDriver.dll
669 $(MCS) -out:$@ $(CSFLAGS) $< -r:TestDriver.dll
672 $(ILASM) -output=$@ $<
674 TestDriver.dll: $(srcdir)/TestDriver.cs $(srcdir)/TestHelpers.cs
675 $(MCS) -out:$@ -target:library $^
677 generics-variant-types.dll: generics-variant-types.il
678 $(ILASM) -dll -output=$@ $<
680 MemoryIntrinsics.dll: MemoryIntrinsics.il
681 $(ILASM) -dll -output=$@ $<
685 # we don't always use the perl impl because it's an additional
686 # build dependency for the poor windows users
687 # $(arch_define) is the preprocessor symbol that enables all the opcodes
688 # for the specific platform in mini-ops.h
690 GENMDESC_PRG=perl $(srcdir)/genmdesc.pl $(arch_define) $(srcdir) $(GENMDESC_OPTS)
691 else !CROSS_COMPILING
692 GENMDESC_PRG=./genmdesc $(GENMDESC_OPTS)
693 endif !CROSS_COMPILING
695 cpu-x86.h: cpu-x86.md genmdesc$(EXEEXT)
696 $(GENMDESC_PRG) cpu-x86.h x86_desc $(srcdir)/cpu-x86.md
698 cpu-amd64.h: cpu-amd64.md genmdesc$(EXEEXT)
699 $(GENMDESC_PRG) cpu-amd64.h amd64_desc $(srcdir)/cpu-amd64.md
701 cpu-ppc.h: cpu-ppc.md genmdesc$(EXEEXT)
702 $(GENMDESC_PRG) cpu-ppc.h ppcg4 $(srcdir)/cpu-ppc.md
704 cpu-ppc64.h: cpu-ppc64.md genmdesc$(EXEEXT)
705 $(GENMDESC_PRG) cpu-ppc64.h ppc64_cpu_desc $(srcdir)/cpu-ppc64.md
707 cpu-arm.h: cpu-arm.md genmdesc$(EXEEXT)
708 $(GENMDESC_PRG) cpu-arm.h arm_cpu_desc $(srcdir)/cpu-arm.md
710 cpu-arm64.h: cpu-arm64.md genmdesc$(EXEEXT)
711 $(GENMDESC_PRG) cpu-arm64.h arm64_cpu_desc $(srcdir)/cpu-arm64.md
713 cpu-sparc.h: cpu-sparc.md genmdesc$(EXEEXT)
714 $(GENMDESC_PRG) cpu-sparc.h sparc_desc $(srcdir)/cpu-sparc.md
716 cpu-s390x.h: cpu-s390x.md genmdesc$(EXEEXT)
717 $(GENMDESC_PRG) cpu-s390x.h s390x_cpu_desc $(srcdir)/cpu-s390x.md
719 cpu-mips.h: cpu-mips.md genmdesc$(EXEEXT)
720 $(GENMDESC_PRG) cpu-mips.h mips_desc $(srcdir)/cpu-mips.md
723 $(MINI_RUNTIME) -v -v --ncompile 1 --compile Test:$(mtest) test.exe
725 # ensure the tests are actually correct
726 checktests: $(regtests)
727 for i in $(regtests); do $(MINI_RUNTIME) $$i; done
729 rcheck-nunit: mono $(regtests)
730 $(MINI_RUNTIME) --regression $(regtests) > regressiontests.out 2>&1; cat regressiontests.out; \
731 if grep -q "100% pass" regressiontests.out; then successbool=True; failurescount=0; else successbool=False; failurescount=1; fi; \
732 echo "<?xml version='1.0' encoding='utf-8'?>\
733 <test-results failures='$$failurescount' total='1' not-run='0' name='regression-tests.dummy' date='$$(date +%F)' time='$$(date +%T)'>\
734 <test-suite name='regression-tests.dummy' success='$$successbool' time='0'>\
735 <results><test-case name='MonoTests.regressions.100percentsuccess' executed='True' success='$$successbool' time='0'>" > TestResult-regression.xml; \
736 if [ "$$successbool" = "False" ]; then echo "<failure><message><![CDATA[$$(cat regressiontests.out)]]></message><stack-trace></stack-trace></failure>" >> TestResult-regression.xml; fi; \
737 echo "</test-case></results>\
739 </test-results>" >> TestResult-regression.xml; exit $$failurescount
741 rcheck: mono $(regtests)
742 $(MINI_RUNTIME) --regression $(regtests)
744 richeck: mono $(regtests)
745 $(INTERP_RUNTIME) --regression $(regtests)
747 mixedcheck: mono mixed.exe
748 $(MINI_RUNTIME) --interp=jit=JitClass mixed.exe
753 check-seq-points: mono $(regtests)
754 rm -f TestResult-op_il_seq_point.xml
755 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
756 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
757 $(srcdir)/test_op_il_seq_point_headerfooter.sh
760 gctest: mono gc-test.exe
761 MONO_DEBUG_OPTIONS=clear-nursery-at-gc $(MINI_RUNTIME) --regression gc-test.exe
763 LLVM_AOT_RUNTIME_OPTS=$(if $(LLVM),--llvm,)
764 GSHAREDVT_RUNTIME_OPTS=$(if $(GSHAREDVT),-O=gsharedvt,)
766 aotcheck: mono $(regtests)
767 rm -rf *.exe.so *.exe.dylib *.exe.dylib.dSYM
768 $(MINI_RUNTIME) $(LLVM_AOT_RUNTIME_OPTS) --aot $(regtests) || exit 1
769 for i in $(regtests); do $(RUNTIME_AOTCHECK) --regression $$i || exit 1; done
770 rm -rf *.exe.so *.exe.dylib *.exe.dylib.dSYM
773 $(MAKE) aotcheck LLVM=1
776 $(MAKE) fullaotcheck GSHAREDVT=1
778 fullaot_regtests = $(regtests) aot-tests.exe $(if $(GSHAREDVT),gshared.exe)
779 fullaot_testing_deps = generics-variant-types.dll TestDriver.dll MemoryIntrinsics.dll
781 FULLAOT_LIBS_UNIVERSAL = \
786 System.Security.dll \
789 System.Numerics.dll \
790 System.Numerics.Vectors.dll \
792 System.Configuration.dll
794 FULLAOT_LIBS_DISABLED =
797 # Skip aoting the tests that aren't compiled
798 # on the full aot profiles because they're skipped
800 FULLAOT_LIBS_DISABLED += \
802 System.Configuration.dll
806 FULLAOT_LIBS = $(filter-out $(FULLAOT_LIBS_DISABLED),$(FULLAOT_LIBS_UNIVERSAL))
808 FULLAOT_TMP_DIR=$(top_builddir)/mono/mini/fullaot-tmp
810 # This currently only works on amd64/arm
811 fullaotcheck: $(mono) $(fullaot_regtests) $(fullaot_testing_deps)
812 rm -rf $(FULLAOT_TMP_DIR)
813 mkdir $(FULLAOT_TMP_DIR)
814 $(MAKE) fullaot-libs AOT_FLAGS="full,$(MONO_FULLAOT_ADDITIONAL_ARGS)$(INVARIANT_AOT_OPTIONS)" GSHAREDVT=$(GSHAREDVT)
815 cp $(regtests) $(fullaot_regtests) $(fullaot_testing_deps) $(FULLAOT_TMP_DIR)/
816 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
817 ln -s $(if $(MONO_EXECUTABLE),$(MONO_EXECUTABLE),$$PWD/mono) $(FULLAOT_TMP_DIR)/
818 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
820 # This can run in parallel
821 fullaot-libs: $(patsubst %,fullaot-tmp/%.dylib,$(FULLAOT_LIBS))
823 fullaot-tmp/%.dylib: $(CLASS)/%
824 cp $(CLASS)/$* fullaot-tmp/
825 mkdir fullaot-tmp/$*-tmp
826 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/$*
827 rm -rf fullaot-tmp/$*-tmp
830 $(MAKE) fullaotcheck LLVM=1
832 llvmonly_regtests = $(fullaot_regtests) gshared.exe
834 llvmonlycheck: mono $(llvmonly_regtests)
837 $(MAKE) fullaot-libs AOT_FLAGS="llvmonly,$(MONO_FULLAOT_ADDITIONAL_ARGS)$(INVARIANT_AOT_OPTIONS)"
838 cp $(llvmonly_regtests) $(fullaot_testing_deps) fullaot-tmp/
839 MONO_PATH=fullaot-tmp $(top_builddir)/runtime/mono-wrapper $(MOBILE_RUNTIME_ARG) --aot=llvmonly fullaot-tmp/{*.dll,*.exe} || exit 1
840 ln -s $$PWD/mono fullaot-tmp/
841 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
844 MONO_GC_PARAMS=stack-mark=precise MONO_GC_DEBUG=clear-at-gc ./mono-sgen gc-test.exe
847 time env $(MINI_RUNTIME) --ncompile $(count) --compile Test:$(mtest) test.exe
850 time $(monodir)/mono/jit/mono --ncompile $(count) --compile Test:$(mtest) test.exe
852 stat1: mono bench.exe
853 $(MINI_RUNTIME) --verbose --statfile stats.pl --regression bench.exe
854 perl viewstat.pl stats.pl
856 stat2: mono basic.exe
857 $(MINI_RUNTIME) --verbose --statfile stats.pl --regression basic.exe
858 perl viewstat.pl -e stats.pl
860 stat3: mono bench.exe
861 $(MINI_RUNTIME) --statfile stats.pl --ncompile 1000 --compile Tests:test_0_many_nested_loops bench.exe
862 perl viewstat.pl stats.pl
867 # We need these because automake can't process normal make conditionals
868 check_local_targets = $(if $(EMIT_NUNIT), rcheck-nunit, rcheck)
870 check-local: $(check_local_targets)
873 rm -f mono a.out gmon.out *.o buildver-boehm.h buildver-sgen.h test.exe regressionexitcode.out TestResult-op_il_seq_point.xml*
875 pkgconfigdir = $(libdir)/pkgconfig
877 BUILT_SOURCES = version.h $(arch_built)
879 CLEANFILES= $(BUILT_SOURCES) *.exe *.dll
880 EXTRA_DIST = TestDriver.cs \
884 $(x86_sources) cpu-x86.md \
885 $(amd64_sources) cpu-amd64.md \
886 $(ppc_sources) cpu-ppc.md cpu-ppc64.md \
887 $(arm_sources) cpu-arm.md \
888 $(arm64_sources) cpu-arm64.md \
889 $(mips_sources) cpu-mips.md \
890 $(sparc_sources) cpu-sparc.md \
891 $(s390x_sources) cpu-s390x.md \
893 $(darwin_sources) Info.plist \
895 test_op_il_seq_point.sh \
896 test_op_il_seq_point_headerfooter.sh \
900 if test -d $(top_srcdir)/.git; then \
902 LANG=C; export LANG; \
903 if test -z "$$ghprbPullId"; then \
904 branch=`git branch | grep '^\*' | sed 's/(detached from .*/explicit/' | cut -d ' ' -f 2`; \
906 branch="pull-request-$$ghprbPullId"; \
908 version=`git log --no-color --first-parent -n1 --pretty=format:%h`; \
909 echo "#define FULL_VERSION \"$$branch/$$version\""; \
912 echo "#define FULL_VERSION \"tarball\""; \
915 # Utility target for patching libtool to speed up linking
917 sed -e 's,if (for obj in $$oldobjs,if (for obj in "",g' < ../../libtool > 2; mv 2 ../../libtool
918 chmod a+x ../../libtool
920 # Utility target for patching libtool to get rid of the 'ranlib: file <file> has no symbols" warnings
922 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
923 chmod a+x ../../libtool
925 # Utility target to patch automake to generate the same format silent output as the old mono silent build did
927 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
930 etags -o TAGS `find .. -name "*.h" -o -name "*.c"`
932 if HAS_EXTENSION_MODULE
934 Makefile.am: Makefile.am.in