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/io-layer/libwapi.la \
19 $(monodir)/mono/utils/libmonoutils.la \
20 $(GLIB_LIBS) $(LIBICONV) \
24 $(monodir)/mono/metadata/libmonoruntimesgen.la \
25 $(monodir)/mono/sgen/libmonosgen.la \
26 $(monodir)/mono/io-layer/libwapi.la \
27 $(monodir)/mono/utils/libmonoutils.la \
28 $(GLIB_LIBS) $(LIBICONV)
31 $(monodir)/mono/metadata/libmonoruntime-static.la \
32 $(monodir)/mono/io-layer/libwapi.la \
33 $(monodir)/mono/utils/libmonoutils.la \
34 $(GLIB_LIBS) $(LIBICONV) \
38 $(monodir)/mono/metadata/libmonoruntimesgen-static.la \
39 $(monodir)/mono/sgen/libmonosgen-static.la \
40 $(monodir)/mono/io-layer/libwapi.la \
41 $(monodir)/mono/utils/libmonoutils.la \
42 $(GLIB_LIBS) $(LIBICONV)
44 CLASS=$(mcs_topdir)/class/lib/$(DEFAULT_PROFILE)
46 RUNTIME_EXECUTABLE = $(if $(BOEHM),$(top_builddir)/mono/mini/mono-boehm,$(top_builddir)/runtime/mono-wrapper)
48 MINI_RUNTIME = MONO_PATH=$(CLASS) $(RUNTIME_EXECUTABLE)
49 RUNTIME_AOTCHECK = MONO_PATH="$(CLASS)$(PLATFORM_PATH_SEPARATOR)." $(RUNTIME_EXECUTABLE)
51 CSC = $(mcs_topdir)/class/lib/build/mcs.exe
52 MCS = CSC_SDK_PATH_DISABLED= $(MINI_RUNTIME) $(CSC) -unsafe -nowarn:0162 -nologo -noconfig -r:$(CLASS)/mscorlib.dll -r:$(CLASS)/System.dll -r:$(CLASS)/System.Core.dll
53 ILASM = $(MINI_RUNTIME) $(CLASS)/ilasm.exe
59 $(PLATFORM_CFLAGS) $(ARCH_CFLAGS) $(SHARED_CFLAGS)
61 AM_CXXFLAGS = $(LLVM_CXXFLAGS) $(GLIB_CFLAGS)
65 # The mingw math.h has "extern inline" functions that dont appear in libs, so
66 # optimisation is required to actually inline them
70 # hack for automake to have the same source file in a library and a bin
71 genmdesc_CFLAGS = $(AM_CFLAGS)
73 monoldflags=$(export_ldflags)
74 monobinldflags=$(export_ldflags) $(extra_runtime_ldflags)
77 libmonoldflags=-no-undefined -avoid-version -Wl,--kill-at $(monoldflags)
80 libmonoldflags= -avoid-version $(monoldflags)
82 libmonoldflags=$(monoldflags) -version-info 1:0:0
87 sgen_binaries = mono-sgen
88 sgen_libraries = libmonosgen-2.0.la
89 sgen_static_libraries = libmini-static.la $(sgen_static_libs)
93 boehm_libraries = libmonoboehm-2.0.la
94 boehm_static_libraries = libmini-static.la $(boehm_static_libs)
95 boehm_binaries = mono-boehm
99 mono_bin_suffix = sgen
100 libmono_suffix = sgen
102 mono_bin_suffix = boehm
103 libmono_suffix = boehm
106 if DISABLE_EXECUTABLES
108 mono: mono-$(mono_bin_suffix)
111 mono.exe: mono-$(mono_bin_suffix).exe
115 (cd $(DESTDIR)$(bindir) && ln -sf mono-$(mono_bin_suffix) mono)
116 (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)
119 if DISABLE_EXECUTABLES
122 bin_PROGRAMS = $(boehm_binaries) $(sgen_binaries) monow
124 bin_PROGRAMS = $(boehm_binaries) $(sgen_binaries)
128 if DISABLE_EXECUTABLES
129 noinst_PROGRAMS = genmdesc
131 noinst_PROGRAMS = genmdesc mono
134 if DISABLE_EXECUTABLES
135 shared_libraries = $(boehm_libraries) $(sgen_libraries)
138 shared_libraries = $(boehm_libraries) $(sgen_libraries)
142 lib_LTLIBRARIES = $(shared_libraries)
145 mini_common_lib = libmini.la
150 if DISABLE_EXECUTABLES
151 noinst_LTLIBRARIES = $(mini_common_lib)
153 noinst_LTLIBRARIES = $(mini_common_lib) libmini-static.la
157 lib_LTLIBRARIES += libmono-llvm.la
158 libmono_llvm_la_SOURCES = mini-llvm.c mini-llvm-cpp.cpp llvm-jit.cpp
159 libmono_llvm_la_LIBADD = $(GLIB_LIBS) $(LLVM_LIBS) $(LLVM_LDFLAGS)
161 libmono_llvm_la_LDFLAGS=-Wl,-undefined -Wl,suppress -Wl,-flat_namespace
163 libmono_llvm_la_LIBADD += $(top_builddir)/mono/mini/libmonoboehm-$(API_VER).la $(boehm_libs)
167 mono_boehm_SOURCES = \
170 mono_CFLAGS = $(AM_CFLAGS)
172 mono_boehm_CFLAGS = $(AM_CFLAGS)
174 AM_CPPFLAGS = $(LIBGC_CPPFLAGS)
176 mono_sgen_SOURCES = \
182 mono_sgen_CFLAGS = $(AM_CFLAGS)
184 # We build this after libmono was built so it contains the date when the final
187 if DISABLE_EXECUTABLES
188 buildver-boehm.h: libmini-static.la $(monodir)/mono/metadata/libmonoruntime.la
190 buildver-boehm.h: libmini-static.la $(monodir)/mono/metadata/libmonoruntime-static.la
192 @echo "const char *build_date = \"`date`\";" > buildver-boehm.h
193 mono_boehm-main.$(OBJEXT): buildver-boehm.h
196 if DISABLE_EXECUTABLES
197 buildver-sgen.h: libmini-static.la $(monodir)/mono/metadata/libmonoruntimesgen.la $(monodir)/mono/sgen/libmonosgen.la
199 buildver-sgen.h: libmini-static.la $(monodir)/mono/metadata/libmonoruntimesgen-static.la $(monodir)/mono/sgen/libmonosgen-static.la
201 @echo "const char *build_date = \"`date`\";" > buildver-sgen.h
202 mono_sgen-main-sgen.$(OBJEXT): buildver-sgen.h
203 main-sgen.$(OBJEXT): buildver-sgen.h
206 LIBMONO_DTRACE_OBJECT = .libs/mono-dtrace.$(OBJEXT)
208 MONO_DTRACE_OBJECT = mono-dtrace.$(OBJEXT)
214 LIBMONO_DTRACE_OBJECT =
218 # Link libmono into mono statically
219 # This leads to higher performance, especially with TLS
220 MONO_LIB=$(boehm_static_libraries)
221 MONO_SGEN_LIB=$(sgen_static_libraries)
223 MONO_LIB=libmonoboehm-2.0.la
224 MONO_SGEN_LIB=libmonosgen-2.0.la
230 LLVMMONOF=$(LLVM_LIBS) $(LLVM_LDFLAGS)
239 $(MONO_DTRACE_OBJECT)
241 mono_boehm_LDFLAGS = \
242 $(static_flags) -export-dynamic $(monobinldflags) $(monobin_platform_ldflags)
250 $(MONO_DTRACE_OBJECT)
252 mono_sgen_LDFLAGS = $(static_flags) -export-dynamic $(monobinldflags) $(monobin_platform_ldflags)
255 libmonoldflags += -no-undefined
260 # mono_LDADD = $(mono_sgen_LDADD)
261 # mono_LDFLAGS = $(mono_sgen_LDFLAGS)
268 mono-dtrace.$(OBJEXT): $(top_srcdir)/data/mono.d mini.lo $(monodir)/mono/metadata/libmonoruntime-static.la
269 DTRACE="$(DTRACE)" DTRACEFLAGS="$(DTRACEFLAGS)" AR="$(AR)" $(SHELL) $(top_srcdir)/data/dtrace-prelink.sh \
270 $@ $(top_srcdir)/data/mono.d $(monodir)/mono/metadata/libmonoruntime-static.la mini.lo
272 .libs/mono-dtrace.$(OBJEXT): $(top_srcdir)/data/mono.d mini.lo $(monodir)/mono/metadata/libmonoruntime.la
273 DTRACE="$(DTRACE)" DTRACEFLAGS="$(DTRACEFLAGS)" AR="$(AR)" $(SHELL) $(top_srcdir)/data/dtrace-prelink.sh \
274 --pic $@ $(top_srcdir)/data/mono.d $(monodir)/mono/metadata/libmonoruntime.la mini.lo
278 # Create monow.exe, linked for the 'windows' subsystem
281 monow_LDADD = $(mono_boehm_LDADD)
282 monow_LDFLAGS = $(mono_boehm_LDFLAGS) -mwindows
283 monow_SOURCES = $(mono_boehm_SOURCES)
285 monow_LDADD = $(mono_sgen_LDADD)
286 monow_LDFLAGS = $(mono_sgen_LDFLAGS) -mwindows
287 monow_SOURCES = $(mono_sgen_SOURCES)
296 ../metadata/opcodes.c
298 # Don't link this against libmonoruntime to speed up rebuilds
300 $(monodir)/mono/utils/libmonoutils.la -lm \
309 mini-x86-gsharedvt.c \
310 tramp-x86-gsharedvt.c
317 mini-amd64-gsharedvt.c \
318 mini-amd64-gsharedvt.h \
319 tramp-amd64-gsharedvt.c
334 mini-arm-gsharedvt.c \
335 tramp-arm-gsharedvt.c
342 mini-arm64-gsharedvt.c \
343 mini-arm64-gsharedvt.h \
344 tramp-arm64-gsharedvt.c
394 llvm_runtime_sources = \
397 if ENABLE_LLVM_RUNTIME
398 llvm_runtime_sources = \
431 local-propagation.c \
441 mini-exceptions-native-unwinder.c \
444 mini-generic-sharing.c \
449 mini-native-types.c \
465 mini-cross-helpers.c \
479 devirtualization.cs \
483 generics-variant-types.il\
489 regtests=basic.exe basic-float.exe basic-long.exe basic-calls.exe objects.exe arrays.exe basic-math.exe exceptions.exe iltests.exe devirtualization.exe generics.exe basic-simd.exe
491 test_sources += nacl.cs
496 arch_sources = $(x86_sources)
502 arch_sources = $(amd64_sources)
503 arch_built=cpu-amd64.h
504 arch_define=__x86_64__
505 ARCH_FULLAOT_EXCLUDE=
509 arch_sources = $(ppc_sources)
515 arch_sources = $(ppc_sources)
516 arch_built=cpu-ppc64.h
517 arch_define=__ppc64__
521 arch_sources = $(mips_sources)
522 arch_built=cpu-mips.h
527 # pick up arm_dpimacros.h
528 ARCH_CFLAGS = -I../arch/arm
529 arch_sources = $(arm_sources)
535 arch_sources = $(arm64_sources)
536 arch_built=cpu-arm64.h
537 arch_define=__aarch64__
541 arch_sources = $(sparc_sources)
542 arch_built=cpu-sparc.h
543 arch_define=__sparc__
547 arch_sources = $(sparc_sources)
548 arch_built=cpu-sparc.h
549 arch_define=__sparc__
553 arch_sources = $(s390x_sources)
554 arch_built=cpu-s390x.h
559 arch_sources = $(ia64_sources)
560 arch_built = cpu-ia64.h
565 os_sources = $(windows_sources)
566 monobin_platform_ldflags=
570 os_sources = $(posix_sources)
571 monobin_platform_ldflags=
575 os_sources = $(darwin_sources) $(posix_sources)
576 #monobin_platform_ldflags=-sectcreate __TEXT __info_plist $(top_srcdir)/mono/mini/Info.plist -framework CoreFoundation -framework Foundation
577 monobin_platform_ldflags=-framework CoreFoundation -framework Foundation
580 libmini_la_SOURCES = $(common_sources) $(llvm_sources) $(llvm_runtime_sources) $(arch_sources) $(os_sources)
581 libmini_la_CFLAGS = $(mono_CFLAGS)
583 libmonoboehm_2_0_la_SOURCES =
584 libmonoboehm_2_0_la_CFLAGS = $(mono_boehm_CFLAGS)
585 libmonoboehm_2_0_la_LIBADD = libmini.la $(boehm_libs) $(LIBMONO_DTRACE_OBJECT) $(LLVMMONOF)
586 libmonoboehm_2_0_la_LDFLAGS = $(libmonoldflags)
588 libmonosgen_2_0_la_SOURCES =
589 libmonosgen_2_0_la_CFLAGS = $(mono_sgen_CFLAGS)
590 libmonosgen_2_0_la_LIBADD = libmini.la $(sgen_libs) $(LIBMONO_DTRACE_OBJECT) $(LLVMMONOF)
591 libmonosgen_2_0_la_LDFLAGS = $(libmonoldflags)
594 # This library is shared between mono and mono-sgen, since the code in mini/ doesn't contain
595 # compile time dependencies on boehm/sgen.
597 libmini_static_la_SOURCES = $(libmini_la_SOURCES)
598 libmini_static_la_CFLAGS = $(AM_CFLAGS)
599 libmini_static_la_LDFLAGS = -static
600 libmini_static_la_LIBADD = $(MONO_DTRACE_OBJECT)
602 libmonoincludedir = $(includedir)/mono-$(API_VER)/mono/jit
604 libmonoinclude_HEADERS = jit.h
606 CSFLAGS = -unsafe -nowarn:0219,0169,0414,0649
608 basic-simd.exe: basic-simd.cs TestDriver.dll
609 $(MCS) -out:$@ $(CSFLAGS) $< -r:TestDriver.dll -r:$(CLASS)/Mono.Simd.dll
611 nacl.exe: nacl.cs TestDriver.dll
612 $(MCS) -out:$@ $(CSFLAGS) $< -r:TestDriver.dll -r:$(CLASS)/Mono.Simd.dll
614 generics.exe: generics.cs TestDriver.dll generics-variant-types.dll
615 $(MCS) -out:$@ $(CSFLAGS) $< -r:TestDriver.dll -r:generics-variant-types.dll -r:$(CLASS)/System.Core.dll
617 %.exe: %.cs TestDriver.dll
618 $(MCS) -out:$@ $(CSFLAGS) $< -r:TestDriver.dll
621 $(ILASM) -output=$@ $<
623 TestDriver.dll: $(srcdir)/TestDriver.cs
624 $(MCS) -out:$@ -target:library $<
626 generics-variant-types.dll: generics-variant-types.il
627 $(ILASM) -dll -output=$@ $<
635 # we don't always use the perl impl because it's an additional
636 # build dependency for the poor windows users
637 # $(arch_define) is the preprocessor symbol that enables all the opcodes
638 # for the specific platform in mini-ops.h
640 GENMDESC_PRG=perl $(srcdir)/genmdesc.pl $(arch_define) $(srcdir) $(GENMDESC_OPTS)
641 else !CROSS_COMPILING
643 GENMDESC_PRG=perl $(srcdir)/genmdesc.pl $(arch_define) $(srcdir) $(GENMDESC_OPTS)
645 GENMDESC_PRG=./genmdesc $(GENMDESC_OPTS)
647 endif !CROSS_COMPILING
649 cpu-x86.h: cpu-x86.md genmdesc$(EXEEXT)
650 $(GENMDESC_PRG) cpu-x86.h x86_desc $(srcdir)/cpu-x86.md
652 cpu-amd64.h: cpu-amd64.md genmdesc$(EXEEXT)
653 $(GENMDESC_PRG) cpu-amd64.h amd64_desc $(srcdir)/cpu-amd64.md
655 cpu-ppc.h: cpu-ppc.md genmdesc$(EXEEXT)
656 $(GENMDESC_PRG) cpu-ppc.h ppcg4 $(srcdir)/cpu-ppc.md
658 cpu-ppc64.h: cpu-ppc64.md genmdesc$(EXEEXT)
659 $(GENMDESC_PRG) cpu-ppc64.h ppc64_cpu_desc $(srcdir)/cpu-ppc64.md
661 cpu-arm.h: cpu-arm.md genmdesc$(EXEEXT)
662 $(GENMDESC_PRG) cpu-arm.h arm_cpu_desc $(srcdir)/cpu-arm.md
664 cpu-arm64.h: cpu-arm64.md genmdesc$(EXEEXT)
665 $(GENMDESC_PRG) cpu-arm64.h arm64_cpu_desc $(srcdir)/cpu-arm64.md
667 cpu-sparc.h: cpu-sparc.md genmdesc$(EXEEXT)
668 $(GENMDESC_PRG) cpu-sparc.h sparc_desc $(srcdir)/cpu-sparc.md
670 cpu-s390x.h: cpu-s390x.md genmdesc$(EXEEXT)
671 $(GENMDESC_PRG) cpu-s390x.h s390x_cpu_desc $(srcdir)/cpu-s390x.md
673 cpu-ia64.h: cpu-ia64.md genmdesc$(EXEEXT)
674 $(GENMDESC_PRG) cpu-ia64.h ia64_desc $(srcdir)/cpu-ia64.md
676 cpu-mips.h: cpu-mips.md genmdesc$(EXEEXT)
677 $(GENMDESC_PRG) cpu-mips.h mips_desc $(srcdir)/cpu-mips.md
680 $(MINI_RUNTIME) -v -v --ncompile 1 --compile Test:$(mtest) test.exe
682 # ensure the tests are actually correct
683 checktests: $(regtests)
684 for i in $(regtests); do $(MINI_RUNTIME) $$i; done
686 rcheck: mono $(regtests)
688 for i in $(regtests); do echo "running test $$i"; $(MINI_RUNTIME) $$i --exclude 'NaClDisable' || exit 1; done
690 -($(MINI_RUNTIME) --regression $(regtests); echo $$? > regressionexitcode.out) | $(srcdir)/emitnunit.pl
691 exit $$(cat regressionexitcode.out)
694 rcheck2: mono $(regtests)
695 $(MINI_RUNTIME) --regression $(regtests)
700 check-seq-points: mono $(regtests)
701 rm -f TestResult-op_il_seq_point.xml
702 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
703 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
704 $(srcdir)/test_op_il_seq_point_headerfooter.sh
707 gctest: mono gc-test.exe
708 MONO_DEBUG_OPTIONS=clear-nursery-at-gc $(MINI_RUNTIME) --regression gc-test.exe
710 LLVM_AOT_RUNTIME_OPTS=$(if $(LLVM),--llvm,)
711 GSHAREDVT_RUNTIME_OPTS=$(if $(GSHAREDVT),-O=gsharedvt,)
713 aotcheck: mono $(regtests)
714 rm -rf *.exe.so *.exe.dylib *.exe.dylib.dSYM
715 $(MINI_RUNTIME) $(LLVM_AOT_RUNTIME_OPTS) --aot $(regtests) || exit 1
716 for i in $(regtests); do $(RUNTIME_AOTCHECK) --regression $$i || exit 1; done
717 rm -rf *.exe.so *.exe.dylib *.exe.dylib.dSYM
720 $(MAKE) aotcheck LLVM=1
723 $(MAKE) fullaotcheck GSHAREDVT=1
725 fullaot_regtests = $(regtests) aot-tests.exe $(if $(GSHAREDVT),gshared.exe)
732 System.Configuration.dll \
733 System.Security.dll \
738 # This currently only works on amd64/arm
739 fullaotcheck: $(mono) $(fullaot_regtests)
742 $(MAKE) fullaot-libs AOT_FLAGS="full,$(MONO_FULLAOT_ADDITIONAL_ARGS)" GSHAREDVT=$(GSHAREDVT)
743 cp $(regtests) $(fullaot_regtests) generics-variant-types.dll TestDriver.dll fullaot-tmp/
744 MONO_PATH=fullaot-tmp $(top_builddir)/runtime/mono-wrapper $(LLVM_AOT_RUNTIME_OPTS) $(GSHAREDVT_RUNTIME_OPTS) --aot="full,$(MONO_FULLAOT_ADDITIONAL_ARGS)" fullaot-tmp/{generics-variant-types.dll,TestDriver.dll,*.exe} || exit 1
745 ln -s $(if $(MONO_EXECUTABLE),$(MONO_EXECUTABLE),$$PWD/mono) fullaot-tmp/
746 for i in $(fullaot_regtests); do echo $$i; MONO_PATH=fullaot-tmp $(top_builddir)/runtime/mono-wrapper --full-aot fullaot-tmp/$$i --exclude '!FULLAOT' $(ARCH_FULLAOT_EXCLUDE) || exit 1; done
748 # This can run in parallel
749 fullaot-libs: $(patsubst %,fullaot-tmp/%.dylib,$(FULLAOT_LIBS))
751 fullaot-tmp/%.dylib: $(CLASS)/%
752 cp $(CLASS)/$* fullaot-tmp/
753 mkdir fullaot-tmp/$*-tmp
754 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/$*
755 rm -rf fullaot-tmp/$*-tmp
758 $(MAKE) fullaotcheck LLVM=1
760 llvmonly_regtests = $(fullaot_regtests) gshared.exe
762 llvmonlycheck: mono $(llvmonly_regtests)
765 $(MAKE) fullaot-libs AOT_FLAGS="llvmonly,$(MONO_FULLAOT_ADDITIONAL_ARGS)"
766 cp $(llvmonly_regtests) generics-variant-types.dll TestDriver.dll fullaot-tmp/
767 MONO_PATH=fullaot-tmp $(top_builddir)/runtime/mono-wrapper --aot=llvmonly fullaot-tmp/{generics-variant-types.dll,TestDriver.dll,*.exe} || exit 1
768 ln -s $$PWD/mono fullaot-tmp/
769 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
772 MONO_GC_PARAMS=stack-mark=precise MONO_GC_DEBUG=clear-at-gc ./mono-sgen gc-test.exe
775 time env $(MINI_RUNTIME) --ncompile $(count) --compile Test:$(mtest) test.exe
778 time $(monodir)/mono/jit/mono --ncompile $(count) --compile Test:$(mtest) test.exe
780 stat1: mono bench.exe
781 $(MINI_RUNTIME) --verbose --statfile stats.pl --regression bench.exe
782 perl viewstat.pl stats.pl
784 stat2: mono basic.exe
785 $(MINI_RUNTIME) --verbose --statfile stats.pl --regression basic.exe
786 perl viewstat.pl -e stats.pl
788 stat3: mono bench.exe
789 $(MINI_RUNTIME) --statfile stats.pl --ncompile 1000 --compile Tests:test_0_many_nested_loops bench.exe
790 perl viewstat.pl stats.pl
795 check-local: rcheck check-seq-points
798 rm -f mono a.out gmon.out *.o buildver-boehm.h buildver-sgen.h test.exe regressionexitcode.out TestResult-op_il_seq_point.xml*
800 pkgconfigdir = $(libdir)/pkgconfig
802 BUILT_SOURCES = version.h $(arch_built)
804 CLEANFILES= $(BUILT_SOURCES) *.exe *.dll
805 EXTRA_DIST = TestDriver.cs \
809 $(x86_sources) cpu-x86.md \
810 $(amd64_sources) cpu-amd64.md \
811 $(ppc_sources) cpu-ppc.md cpu-ppc64.md \
812 $(arm_sources) cpu-arm.md \
813 $(arm64_sources) cpu-arm64.md \
814 $(mips_sources) cpu-mips.md \
815 $(sparc_sources) cpu-sparc.md \
816 $(s390x_sources) cpu-s390x.md \
817 $(ia64_sources) cpu-ia64.md \
819 $(darwin_sources) Info.plist \
821 test_op_il_seq_point.sh \
822 test_op_il_seq_point_headerfooter.sh \
826 if test -d $(top_srcdir)/.git; then \
828 LANG=C; export LANG; \
829 if test -z "$$ghprbPullId"; then \
830 branch=`git branch | grep '^\*' | sed 's/(detached from .*/explicit/' | cut -d ' ' -f 2`; \
832 branch="pull-request-$$ghprbPullId"; \
834 version=`git log --no-color --first-parent -n1 --pretty=format:%h`; \
835 echo "#define FULL_VERSION \"$$branch/$$version\""; \
838 echo "#define FULL_VERSION \"tarball\""; \
841 # Utility target for patching libtool to speed up linking
843 sed -e 's,if (for obj in $$oldobjs,if (for obj in "",g' < ../../libtool > 2; mv 2 ../../libtool
844 chmod a+x ../../libtool
846 # Utility target for patching libtool to get rid of the 'ranlib: file <file> has no symbols" warnings
848 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
849 chmod a+x ../../libtool
851 # Utility target to patch automake to generate the same format silent output as the old mono silent build did
853 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
856 etags -o TAGS `find .. -name "*.h" -o -name "*.c"`
858 if HAS_EXTENSION_MODULE
860 Makefile.am: Makefile.am.in