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)
40 CLASS=$(mcs_topdir)/class/lib/$(DEFAULT_PROFILE)
42 RUNTIME_EXECUTABLE = $(if $(BOEHM),$(top_builddir)/mono/mini/mono-boehm,$(top_builddir)/runtime/mono-wrapper)
44 MINI_RUNTIME = MONO_PATH=$(CLASS) $(RUNTIME_EXECUTABLE)
45 TOOLS_RUNTIME = MONO_PATH=$(mcs_topdir)/class/lib/build $(top_builddir)/runtime/mono-wrapper
46 INTERP_RUNTIME = $(MINI_RUNTIME) --interpreter
47 RUNTIME_AOTCHECK = MONO_PATH="$(CLASS)$(PLATFORM_PATH_SEPARATOR)." $(RUNTIME_EXECUTABLE)
49 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
50 ILASM = $(TOOLS_RUNTIME) $(mcs_topdir)/class/lib/build/ilasm.exe
56 $(PLATFORM_CFLAGS) $(ARCH_CFLAGS) $(SHARED_CFLAGS)
58 AM_CXXFLAGS = $(LLVM_CXXFLAGS) $(GLIB_CFLAGS)
62 # The mingw math.h has "extern inline" functions that dont appear in libs, so
63 # optimisation is required to actually inline them
67 # hack for automake to have the same source file in a library and a bin
68 genmdesc_CFLAGS = $(AM_CFLAGS)
70 monoldflags=$(export_ldflags)
71 monobinldflags=$(export_ldflags) $(extra_runtime_ldflags)
74 libmonoldflags=-no-undefined -avoid-version -Wl,--kill-at $(monoldflags)
77 libmonoldflags= -avoid-version $(monoldflags)
79 libmonoldflags=$(monoldflags) -version-info 1:0:0
84 sgen_binaries = mono-sgen
85 sgen_libraries = libmonosgen-2.0.la
86 sgen_static_libraries = libmini-static.la $(sgen_static_libs)
90 boehm_libraries = libmonoboehm-2.0.la
91 boehm_static_libraries = libmini-static.la $(boehm_static_libs)
92 boehm_binaries = mono-boehm
96 mono_bin_suffix = sgen
99 mono_bin_suffix = boehm
100 libmono_suffix = boehm
103 if DISABLE_EXECUTABLES
105 mono: mono-$(mono_bin_suffix)
108 mono.exe: mono-$(mono_bin_suffix).exe
112 (cd $(DESTDIR)$(bindir) && ln -sf mono-$(mono_bin_suffix) mono)
113 (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)
116 if DISABLE_EXECUTABLES
119 bin_PROGRAMS = $(boehm_binaries) $(sgen_binaries) monow
121 bin_PROGRAMS = $(boehm_binaries) $(sgen_binaries)
125 if DISABLE_EXECUTABLES
126 noinst_PROGRAMS = genmdesc
128 noinst_PROGRAMS = genmdesc mono
131 if DISABLE_EXECUTABLES
132 shared_libraries = $(boehm_libraries) $(sgen_libraries)
135 shared_libraries = $(boehm_libraries) $(sgen_libraries)
139 lib_LTLIBRARIES = $(shared_libraries)
142 mini_common_lib = libmini.la
147 if DISABLE_EXECUTABLES
148 noinst_LTLIBRARIES = $(mini_common_lib)
150 noinst_LTLIBRARIES = $(mini_common_lib) libmini-static.la
154 lib_LTLIBRARIES += libmono-llvm.la
155 libmono_llvm_la_SOURCES = mini-llvm.c mini-llvm-cpp.cpp llvm-jit.cpp
156 libmono_llvm_la_LIBADD = $(GLIB_LIBS) $(LLVM_LIBS) $(LLVM_LDFLAGS)
158 libmono_llvm_la_LDFLAGS=-Wl,-undefined -Wl,suppress -Wl,-flat_namespace
160 libmono_llvm_la_LIBADD += $(top_builddir)/mono/mini/libmonoboehm-$(API_VER).la $(boehm_libs)
164 mono_boehm_SOURCES = \
167 mono_CFLAGS = $(AM_CFLAGS)
169 mono_boehm_CFLAGS = $(AM_CFLAGS)
171 AM_CPPFLAGS = $(LIBGC_CPPFLAGS)
173 mono_sgen_SOURCES = \
179 mono_sgen_CFLAGS = $(AM_CFLAGS)
181 # We build this after libmono was built so it contains the date when the final
184 if DISABLE_EXECUTABLES
185 buildver-boehm.h: libmini-static.la $(monodir)/mono/metadata/libmonoruntime.la
187 buildver-boehm.h: libmini-static.la $(monodir)/mono/metadata/libmonoruntime-static.la
189 @echo "const char *build_date = \"`date`\";" > buildver-boehm.h
190 mono_boehm-main.$(OBJEXT): buildver-boehm.h
193 if DISABLE_EXECUTABLES
194 buildver-sgen.h: libmini-static.la $(monodir)/mono/metadata/libmonoruntimesgen.la $(monodir)/mono/sgen/libmonosgen.la
196 buildver-sgen.h: libmini-static.la $(monodir)/mono/metadata/libmonoruntimesgen-static.la $(monodir)/mono/sgen/libmonosgen-static.la
198 @echo "const char *build_date = \"`date`\";" > buildver-sgen.h
199 mono_sgen-main-sgen.$(OBJEXT): buildver-sgen.h
200 main-sgen.$(OBJEXT): buildver-sgen.h
203 LIBMONO_DTRACE_OBJECT = .libs/mono-dtrace.$(OBJEXT)
205 MONO_DTRACE_OBJECT = mono-dtrace.$(OBJEXT)
211 LIBMONO_DTRACE_OBJECT =
215 # Link libmono into mono statically
216 # This leads to higher performance, especially with TLS
217 MONO_LIB=$(boehm_static_libraries)
218 MONO_SGEN_LIB=$(sgen_static_libraries)
220 MONO_LIB=libmonoboehm-2.0.la
221 MONO_SGEN_LIB=libmonosgen-2.0.la
227 LLVMMONOF=$(LLVM_LIBS) $(LLVM_LDFLAGS)
236 $(MONO_DTRACE_OBJECT)
238 mono_boehm_LDFLAGS = \
239 $(static_flags) -export-dynamic $(monobinldflags) $(monobin_platform_ldflags)
247 $(MONO_DTRACE_OBJECT)
249 mono_sgen_LDFLAGS = $(static_flags) -export-dynamic $(monobinldflags) $(monobin_platform_ldflags)
252 libmonoldflags += -no-undefined
257 # mono_LDADD = $(mono_sgen_LDADD)
258 # mono_LDFLAGS = $(mono_sgen_LDFLAGS)
265 mono-dtrace.$(OBJEXT): $(top_srcdir)/data/mono.d mini.lo $(monodir)/mono/metadata/libmonoruntime-static.la
266 DTRACE="$(DTRACE)" DTRACEFLAGS="$(DTRACEFLAGS)" AR="$(AR)" $(SHELL) $(top_srcdir)/data/dtrace-prelink.sh \
267 $@ $(top_srcdir)/data/mono.d $(monodir)/mono/metadata/libmonoruntime-static.la mini.lo
269 .libs/mono-dtrace.$(OBJEXT): $(top_srcdir)/data/mono.d mini.lo $(monodir)/mono/metadata/libmonoruntime.la
270 DTRACE="$(DTRACE)" DTRACEFLAGS="$(DTRACEFLAGS)" AR="$(AR)" $(SHELL) $(top_srcdir)/data/dtrace-prelink.sh \
271 --pic $@ $(top_srcdir)/data/mono.d $(monodir)/mono/metadata/libmonoruntime.la mini.lo
275 # Create monow.exe, linked for the 'windows' subsystem
278 monow_LDADD = $(mono_boehm_LDADD)
279 monow_LDFLAGS = $(mono_boehm_LDFLAGS) -mwindows
280 monow_SOURCES = $(mono_boehm_SOURCES)
282 monow_LDADD = $(mono_sgen_LDADD)
283 monow_LDFLAGS = $(mono_sgen_LDFLAGS) -mwindows
284 monow_SOURCES = $(mono_sgen_SOURCES)
293 ../metadata/opcodes.c
295 # Don't link this against libmonoruntime to speed up rebuilds
297 $(monodir)/mono/utils/libmonoutils.la -lm \
306 mini-x86-gsharedvt.c \
307 tramp-x86-gsharedvt.c
314 mini-amd64-gsharedvt.c \
315 mini-amd64-gsharedvt.h \
316 tramp-amd64-gsharedvt.c
329 mini-arm-gsharedvt.c \
330 tramp-arm-gsharedvt.c
337 mini-arm64-gsharedvt.c \
338 mini-arm64-gsharedvt.h \
339 tramp-arm64-gsharedvt.c
372 mini-windows-dllmain.c
390 if ENABLE_INTERPRETER
394 interp/interp-internals.h \
403 llvm_runtime_sources = \
406 if ENABLE_LLVM_RUNTIME
407 llvm_runtime_sources = \
440 local-propagation.c \
452 mini-generic-sharing.c \
457 mini-native-types.c \
473 mini-cross-helpers.c \
490 devirtualization.cs \
494 generics-variant-types.il\
502 test_sources += nacl.cs
505 regtests_UNIVERSAL = \
515 devirtualization.exe \
521 regtests_UNIVERSAL += nacl.exe
530 regtests = $(filter-out $(regtests_DISABLED),$(regtests_UNIVERSAL))
541 devirtualization.exe \
547 arch_sources = $(x86_sources)
553 arch_sources = $(amd64_sources)
554 arch_built=cpu-amd64.h
555 arch_define=__x86_64__
556 ARCH_FULLAOT_EXCLUDE=
560 arch_sources = $(ppc_sources)
566 arch_sources = $(ppc_sources)
567 arch_built=cpu-ppc64.h
568 arch_define=__ppc64__
572 arch_sources = $(mips_sources)
573 arch_built=cpu-mips.h
578 # pick up arm_dpimacros.h
579 ARCH_CFLAGS = -I../arch/arm
580 arch_sources = $(arm_sources)
586 arch_sources = $(arm64_sources)
587 arch_built=cpu-arm64.h
588 arch_define=__aarch64__
592 arch_sources = $(sparc_sources)
593 arch_built=cpu-sparc.h
594 arch_define=__sparc__
598 arch_sources = $(sparc_sources)
599 arch_built=cpu-sparc.h
600 arch_define=__sparc__
604 arch_sources = $(s390x_sources)
605 arch_built=cpu-s390x.h
610 arch_sources = $(ia64_sources)
611 arch_built = cpu-ia64.h
616 os_sources = $(windows_sources)
617 monobin_platform_ldflags=
621 os_sources = $(posix_sources)
622 monobin_platform_ldflags=
626 os_sources = $(darwin_sources) $(posix_sources)
627 #monobin_platform_ldflags=-sectcreate __TEXT __info_plist $(top_srcdir)/mono/mini/Info.plist -framework CoreFoundation -framework Foundation
628 monobin_platform_ldflags=-framework CoreFoundation -framework Foundation
631 libmini_la_SOURCES = $(common_sources) $(llvm_sources) $(llvm_runtime_sources) $(interp_sources) $(arch_sources) $(os_sources)
632 libmini_la_CFLAGS = $(mono_CFLAGS)
634 libmonoboehm_2_0_la_SOURCES =
635 libmonoboehm_2_0_la_CFLAGS = $(mono_boehm_CFLAGS)
636 libmonoboehm_2_0_la_LIBADD = libmini.la $(boehm_libs) $(LIBMONO_DTRACE_OBJECT) $(LLVMMONOF)
637 libmonoboehm_2_0_la_LDFLAGS = $(libmonoldflags) $(monobin_platform_ldflags)
639 libmonosgen_2_0_la_SOURCES =
640 libmonosgen_2_0_la_CFLAGS = $(mono_sgen_CFLAGS)
641 libmonosgen_2_0_la_LIBADD = libmini.la $(sgen_libs) $(LIBMONO_DTRACE_OBJECT) $(LLVMMONOF)
642 libmonosgen_2_0_la_LDFLAGS = $(libmonoldflags) $(monobin_platform_ldflags)
645 # This library is shared between mono and mono-sgen, since the code in mini/ doesn't contain
646 # compile time dependencies on boehm/sgen.
648 libmini_static_la_SOURCES = $(libmini_la_SOURCES)
649 libmini_static_la_CFLAGS = $(AM_CFLAGS)
650 libmini_static_la_LDFLAGS = -static
651 libmini_static_la_LIBADD = $(MONO_DTRACE_OBJECT)
653 libmonoincludedir = $(includedir)/mono-$(API_VER)/mono/jit
655 libmonoinclude_HEADERS = jit.h
657 CSFLAGS = -unsafe -nowarn:0219,0169,0414,0649
659 basic-simd.exe: basic-simd.cs TestDriver.dll
660 $(MCS) -out:$@ $(CSFLAGS) $< -r:TestDriver.dll -r:$(CLASS)/Mono.Simd.dll
662 basic-vectors.exe: basic-vectors.cs TestDriver.dll
663 $(MCS) -out:$@ $(CSFLAGS) $< -r:TestDriver.dll -r:$(CLASS)/System.Numerics.dll -r:$(CLASS)/System.Numerics.Vectors.dll
665 nacl.exe: nacl.cs TestDriver.dll
666 $(MCS) -out:$@ $(CSFLAGS) $< -r:TestDriver.dll -r:$(CLASS)/Mono.Simd.dll
668 generics.exe: generics.cs TestDriver.dll generics-variant-types.dll
669 $(MCS) -out:$@ $(CSFLAGS) $< -r:TestDriver.dll -r:generics-variant-types.dll -r:$(CLASS)/System.Core.dll
671 %.exe: %.cs TestDriver.dll
672 $(MCS) -out:$@ $(CSFLAGS) $< -r:TestDriver.dll
675 $(ILASM) -output=$@ $<
677 TestDriver.dll: $(srcdir)/TestDriver.cs $(srcdir)/TestHelpers.cs
678 $(MCS) -out:$@ -target:library $^
680 generics-variant-types.dll: generics-variant-types.il
681 $(ILASM) -dll -output=$@ $<
689 # we don't always use the perl impl because it's an additional
690 # build dependency for the poor windows users
691 # $(arch_define) is the preprocessor symbol that enables all the opcodes
692 # for the specific platform in mini-ops.h
694 GENMDESC_PRG=perl $(srcdir)/genmdesc.pl $(arch_define) $(srcdir) $(GENMDESC_OPTS)
695 else !CROSS_COMPILING
697 GENMDESC_PRG=perl $(srcdir)/genmdesc.pl $(arch_define) $(srcdir) $(GENMDESC_OPTS)
699 GENMDESC_PRG=./genmdesc $(GENMDESC_OPTS)
701 endif !CROSS_COMPILING
703 cpu-x86.h: cpu-x86.md genmdesc$(EXEEXT)
704 $(GENMDESC_PRG) cpu-x86.h x86_desc $(srcdir)/cpu-x86.md
706 cpu-amd64.h: cpu-amd64.md genmdesc$(EXEEXT)
707 $(GENMDESC_PRG) cpu-amd64.h amd64_desc $(srcdir)/cpu-amd64.md
709 cpu-ppc.h: cpu-ppc.md genmdesc$(EXEEXT)
710 $(GENMDESC_PRG) cpu-ppc.h ppcg4 $(srcdir)/cpu-ppc.md
712 cpu-ppc64.h: cpu-ppc64.md genmdesc$(EXEEXT)
713 $(GENMDESC_PRG) cpu-ppc64.h ppc64_cpu_desc $(srcdir)/cpu-ppc64.md
715 cpu-arm.h: cpu-arm.md genmdesc$(EXEEXT)
716 $(GENMDESC_PRG) cpu-arm.h arm_cpu_desc $(srcdir)/cpu-arm.md
718 cpu-arm64.h: cpu-arm64.md genmdesc$(EXEEXT)
719 $(GENMDESC_PRG) cpu-arm64.h arm64_cpu_desc $(srcdir)/cpu-arm64.md
721 cpu-sparc.h: cpu-sparc.md genmdesc$(EXEEXT)
722 $(GENMDESC_PRG) cpu-sparc.h sparc_desc $(srcdir)/cpu-sparc.md
724 cpu-s390x.h: cpu-s390x.md genmdesc$(EXEEXT)
725 $(GENMDESC_PRG) cpu-s390x.h s390x_cpu_desc $(srcdir)/cpu-s390x.md
727 cpu-ia64.h: cpu-ia64.md genmdesc$(EXEEXT)
728 $(GENMDESC_PRG) cpu-ia64.h ia64_desc $(srcdir)/cpu-ia64.md
730 cpu-mips.h: cpu-mips.md genmdesc$(EXEEXT)
731 $(GENMDESC_PRG) cpu-mips.h mips_desc $(srcdir)/cpu-mips.md
734 $(MINI_RUNTIME) -v -v --ncompile 1 --compile Test:$(mtest) test.exe
736 # ensure the tests are actually correct
737 checktests: $(regtests)
738 for i in $(regtests); do $(MINI_RUNTIME) $$i; done
740 rcheck-nunit: mono $(regtests)
741 $(MINI_RUNTIME) --regression $(regtests) > regressiontests.out 2>&1; cat regressiontests.out; \
742 if grep -q "100% pass" regressiontests.out; then successbool=True; failurescount=0; else successbool=False; failurescount=1; fi; \
743 echo "<?xml version='1.0' encoding='utf-8'?>\
744 <test-results failures='$$failurescount' total='1' not-run='0' name='regression-tests.dummy' date='$$(date +%F)' time='$$(date +%T)'>\
745 <test-suite name='regression-tests.dummy' success='$$successbool' time='0'>\
746 <results><test-case name='MonoTests.regressions.100percentsuccess' executed='True' success='$$successbool' time='0'>" > TestResult-regression.xml; \
747 if [ "$$successbool" = "False" ]; then echo "<failure><message><![CDATA[$$(cat regressiontests.out)]]></message><stack-trace></stack-trace></failure>" >> TestResult-regression.xml; fi; \
748 echo "</test-case></results>\
750 </test-results>" >> TestResult-regression.xml; exit $$failurescount
752 rcheck: mono $(regtests)
753 $(MINI_RUNTIME) --regression $(regtests)
755 richeck: mono $(iregtests)
756 $(INTERP_RUNTIME) --regression $(iregtests)
761 check-seq-points: mono $(regtests)
762 rm -f TestResult-op_il_seq_point.xml
763 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
764 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
765 $(srcdir)/test_op_il_seq_point_headerfooter.sh
768 gctest: mono gc-test.exe
769 MONO_DEBUG_OPTIONS=clear-nursery-at-gc $(MINI_RUNTIME) --regression gc-test.exe
771 LLVM_AOT_RUNTIME_OPTS=$(if $(LLVM),--llvm,)
772 GSHAREDVT_RUNTIME_OPTS=$(if $(GSHAREDVT),-O=gsharedvt,)
774 aotcheck: mono $(regtests)
775 rm -rf *.exe.so *.exe.dylib *.exe.dylib.dSYM
776 $(MINI_RUNTIME) $(LLVM_AOT_RUNTIME_OPTS) --aot $(regtests) || exit 1
777 for i in $(regtests); do $(RUNTIME_AOTCHECK) --regression $$i || exit 1; done
778 rm -rf *.exe.so *.exe.dylib *.exe.dylib.dSYM
781 $(MAKE) aotcheck LLVM=1
784 $(MAKE) fullaotcheck GSHAREDVT=1
786 fullaot_regtests = $(regtests) aot-tests.exe $(if $(GSHAREDVT),gshared.exe)
788 FULLAOT_LIBS_UNIVERSAL = \
793 System.Security.dll \
796 System.Numerics.dll \
797 System.Numerics.Vectors.dll \
799 System.Configuration.dll
801 FULLAOT_LIBS_DISABLED =
804 # Skip aoting the tests that aren't compiled
805 # on the full aot profiles because they're skipped
807 FULLAOT_LIBS_DISABLED += \
809 System.Configuration.dll
812 FULLAOT_LIBS = $(filter-out $(FULLAOT_LIBS_DISABLED),$(FULLAOT_LIBS_UNIVERSAL))
814 FULLAOT_TMP_DIR=$(top_builddir)/mono/mini/fullaot-tmp
816 # This currently only works on amd64/arm
817 fullaotcheck: $(mono) $(fullaot_regtests)
818 rm -rf $(FULLAOT_TMP_DIR)
819 mkdir $(FULLAOT_TMP_DIR)
820 $(MAKE) fullaot-libs AOT_FLAGS="full,$(MONO_FULLAOT_ADDITIONAL_ARGS)$(INVARIANT_AOT_OPTIONS)" GSHAREDVT=$(GSHAREDVT)
821 cp $(regtests) $(fullaot_regtests) generics-variant-types.dll TestDriver.dll $(FULLAOT_TMP_DIR)/
822 MONO_PATH=$(FULLAOT_TMP_DIR) $(top_builddir)/runtime/mono-wrapper $(LLVM_AOT_RUNTIME_OPTS) $(GSHAREDVT_RUNTIME_OPTS) --aot="full,$(MONO_FULLAOT_ADDITIONAL_ARGS)$(INVARIANT_AOT_OPTIONS)" $(FULLAOT_TMP_DIR)/{generics-variant-types.dll,TestDriver.dll,*.exe} || exit 1
823 ln -s $(if $(MONO_EXECUTABLE),$(MONO_EXECUTABLE),$$PWD/mono) $(FULLAOT_TMP_DIR)/
824 for i in $(fullaot_regtests); do echo $$i; MONO_PATH=$(FULLAOT_TMP_DIR) $(top_builddir)/runtime/mono-wrapper --full-aot $(FULLAOT_TMP_DIR)/$$i --exclude '!FULLAOT' $(ARCH_FULLAOT_EXCLUDE) || exit 1; done
826 # This can run in parallel
827 fullaot-libs: $(patsubst %,fullaot-tmp/%.dylib,$(FULLAOT_LIBS))
829 fullaot-tmp/%.dylib: $(CLASS)/%
830 cp $(CLASS)/$* fullaot-tmp/
831 mkdir fullaot-tmp/$*-tmp
832 MONO_PATH="fullaot-tmp/$(PLATFORM_PATH_SEPARATOR)$(CLASS)" $(top_builddir)/runtime/mono-wrapper $(if $(GSHAREDVT),-O=gsharedvt) --aot=$(AOT_FLAGS),temp-path=fullaot-tmp/$*-tmp fullaot-tmp/$*
833 rm -rf fullaot-tmp/$*-tmp
836 $(MAKE) fullaotcheck LLVM=1
838 llvmonly_regtests = $(fullaot_regtests) gshared.exe
840 llvmonlycheck: mono $(llvmonly_regtests)
843 $(MAKE) fullaot-libs AOT_FLAGS="llvmonly,$(MONO_FULLAOT_ADDITIONAL_ARGS)$(INVARIANT_AOT_OPTIONS)"
844 cp $(llvmonly_regtests) generics-variant-types.dll TestDriver.dll fullaot-tmp/
845 MONO_PATH=fullaot-tmp $(top_builddir)/runtime/mono-wrapper --aot=llvmonly fullaot-tmp/{generics-variant-types.dll,TestDriver.dll,*.exe} || exit 1
846 ln -s $$PWD/mono fullaot-tmp/
847 for i in $(llvmonly_regtests); do echo $$i; MONO_PATH=fullaot-tmp $(top_builddir)/runtime/mono-wrapper --llvmonly fullaot-tmp/$$i --exclude '!BITCODE' || exit 1; done
850 MONO_GC_PARAMS=stack-mark=precise MONO_GC_DEBUG=clear-at-gc ./mono-sgen gc-test.exe
853 time env $(MINI_RUNTIME) --ncompile $(count) --compile Test:$(mtest) test.exe
856 time $(monodir)/mono/jit/mono --ncompile $(count) --compile Test:$(mtest) test.exe
858 stat1: mono bench.exe
859 $(MINI_RUNTIME) --verbose --statfile stats.pl --regression bench.exe
860 perl viewstat.pl stats.pl
862 stat2: mono basic.exe
863 $(MINI_RUNTIME) --verbose --statfile stats.pl --regression basic.exe
864 perl viewstat.pl -e stats.pl
866 stat3: mono bench.exe
867 $(MINI_RUNTIME) --statfile stats.pl --ncompile 1000 --compile Tests:test_0_many_nested_loops bench.exe
868 perl viewstat.pl stats.pl
873 # We need these because automake can't process normal make conditionals
874 check_local_targets = $(if $(EMIT_NUNIT), rcheck-nunit, rcheck)
876 check-local: $(check_local_targets)
879 rm -f mono a.out gmon.out *.o buildver-boehm.h buildver-sgen.h test.exe regressionexitcode.out TestResult-op_il_seq_point.xml*
881 pkgconfigdir = $(libdir)/pkgconfig
883 BUILT_SOURCES = version.h $(arch_built)
885 CLEANFILES= $(BUILT_SOURCES) *.exe *.dll
886 EXTRA_DIST = TestDriver.cs \
890 $(x86_sources) cpu-x86.md \
891 $(amd64_sources) cpu-amd64.md \
892 $(ppc_sources) cpu-ppc.md cpu-ppc64.md \
893 $(arm_sources) cpu-arm.md \
894 $(arm64_sources) cpu-arm64.md \
895 $(mips_sources) cpu-mips.md \
896 $(sparc_sources) cpu-sparc.md \
897 $(s390x_sources) cpu-s390x.md \
898 $(ia64_sources) cpu-ia64.md \
900 $(darwin_sources) Info.plist \
902 test_op_il_seq_point.sh \
903 test_op_il_seq_point_headerfooter.sh \
907 if test -d $(top_srcdir)/.git; then \
909 LANG=C; export LANG; \
910 if test -z "$$ghprbPullId"; then \
911 branch=`git branch | grep '^\*' | sed 's/(detached from .*/explicit/' | cut -d ' ' -f 2`; \
913 branch="pull-request-$$ghprbPullId"; \
915 version=`git log --no-color --first-parent -n1 --pretty=format:%h`; \
916 echo "#define FULL_VERSION \"$$branch/$$version\""; \
919 echo "#define FULL_VERSION \"tarball\""; \
922 # Utility target for patching libtool to speed up linking
924 sed -e 's,if (for obj in $$oldobjs,if (for obj in "",g' < ../../libtool > 2; mv 2 ../../libtool
925 chmod a+x ../../libtool
927 # Utility target for patching libtool to get rid of the 'ranlib: file <file> has no symbols" warnings
929 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
930 chmod a+x ../../libtool
932 # Utility target to patch automake to generate the same format silent output as the old mono silent build did
934 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
937 etags -o TAGS `find .. -name "*.h" -o -name "*.c"`
939 if HAS_EXTENSION_MODULE
941 Makefile.am: Makefile.am.in