X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmini%2FMakefile.am;h=4485b35c2c0268141c6a6e9cd3470d0216d29398;hb=4fbb1621b23a5179df69243f7c2bfc3fbda1e5fc;hp=96c6412380eed0bda8c7ced5b6f6d0960ec3fb64;hpb=7a36b81b54254fb47419e6ef7c53c4068b09dc3c;p=mono.git diff --git a/mono/mini/Makefile.am b/mono/mini/Makefile.am index 96c6412380e..4485b35c2c0 100644 --- a/mono/mini/Makefile.am +++ b/mono/mini/Makefile.am @@ -36,12 +36,13 @@ ILASM = $(RUNTIME) $(CLASS)/ilasm.exe AM_CFLAGS = \ -I$(top_srcdir) \ $(LIBGC_CFLAGS) \ - $(GLIB_CFLAGS) + $(GLIB_CFLAGS) \ + $(LLVM_CFLAGS) \ $(PLATFORM_CFLAGS) $(ARCH_CFLAGS) -AM_CXXFLAGS = $(LLVM_CXXFLAGS) +AM_CXXFLAGS = $(LLVM_CXXFLAGS) $(GLIB_CFLAGS) -if PLATFORM_WIN32 +if HOST_WIN32 export HOST_CC # The mingw math.h has "extern inline" functions that dont appear in libs, so # optimisation is required to actually inline them @@ -59,7 +60,7 @@ monoldflags=-Wl,-version-script=$(srcdir)/ldscript $(export_ldflags) monobinldflags=-Wl,-version-script=$(srcdir)/ldscript.mono $(export_ldflags) endif -if PLATFORM_WIN32 +if HOST_WIN32 libmono_la_LDFLAGS=-no-undefined -avoid-version -Wl,--kill-at $(monoldflags) else libmono_la_LDFLAGS=$(monoldflags) @@ -67,7 +68,7 @@ endif if JIT_SUPPORTED -if PLATFORM_WIN32 +if HOST_WIN32 bin_PROGRAMS = mono monow else bin_PROGRAMS = mono @@ -114,10 +115,11 @@ mono_LDADD = \ $(GLIB_LIBS) \ $(LLVM_LIBS) \ -lm \ - $(MONO_DTRACE_OBJECT) + $(MONO_DTRACE_OBJECT) \ + $(LLVM_LDFLAGS) mono_LDFLAGS = \ - $(static_flags) -export-dynamic $(monobinldflags) + $(static_flags) -export-dynamic $(monobinldflags) $(monobin_platform_ldflags) if DTRACE_G_REQUIRED @@ -132,7 +134,7 @@ mono-dtrace.$(OBJEXT): $(top_srcdir)/data/mono.d mini.lo $(monodir)/mono/metadat endif # Create monow.exe, linked for the 'windows' subsystem -if PLATFORM_WIN32 +if HOST_WIN32 monow_LDADD = $(mono_LDADD) monow_LDFLAGS = $(mono_LDFLAGS) -mwindows monow_SOURCES = $(mono_SOURCES) @@ -224,9 +226,9 @@ posix_sources = \ mini-posix.c if ENABLE_LLVM -#llvm_sources = \ -# mini-llvm.c \ -# mini-llvm-cpp.cpp +llvm_sources = \ + mini-llvm.c \ + mini-llvm-cpp.cpp endif common_sources = \ @@ -273,13 +275,19 @@ common_sources = \ mini-generic-sharing.c \ regalloc2.c \ simd-methods.h \ + tasklets.c \ + tasklets.h \ simd-intrinsics.c \ - unwind.h \ + mini-unwind.h \ unwind.c \ image-writer.h \ image-writer.c \ dwarfwriter.h \ - dwarfwriter.c + dwarfwriter.c \ + mini-gc.h \ + mini-gc.c \ + debugger-agent.h \ + debugger-agent.c test_sources = \ basic-calls.cs \ @@ -299,6 +307,9 @@ test_sources = \ basic-simd.cs if MONO_DEBUGGER_SUPPORTED +if PLATFORM_DARWIN +mono_debugger_arch_sources = mdb-debug-info32-darwin.s +else if AMD64 mono_debugger_arch_sources = mdb-debug-info64.s else @@ -306,6 +317,7 @@ if X86 mono_debugger_arch_sources = mdb-debug-info32.s endif endif +endif mono_debugger_sources = debug-debugger.c debug-debugger.h $(mono_debugger_arch_sources) else mono_debugger_sources = @@ -365,7 +377,6 @@ endif if S390 arch_sources = $(s390_sources) -arch_BURGSRC= $(srcdir)/inssel-long32.brg $(srcdir)/inssel-s390.brg arch_built=cpu-s390.h arch_define=__s390__ endif @@ -395,16 +406,19 @@ arch_built = cpu-hppa.h arch_define=__hppa__ endif -if PLATFORM_WIN32 +if HOST_WIN32 os_sources = $(windows_sources) +monobin_platform_ldflags= endif if PLATFORM_SIGPOSIX os_sources = $(posix_sources) +monobin_platform_ldflags= endif if PLATFORM_DARWIN os_sources = $(darwin_sources) $(posix_sources) +monobin_platform_ldflags=-sectcreate __TEXT __info_plist $(top_srcdir)/mono/mini/Info.plist endif libmono_la_SOURCES = $(common_sources) $(llvm_sources) $(arch_sources) $(os_sources) @@ -456,40 +470,40 @@ GENMDESC_PRG=./genmdesc endif !CROSS_COMPILING cpu-x86.h: cpu-x86.md genmdesc$(EXEEXT) - $(GENMDESC_PRG) $(srcdir)/cpu-x86.md cpu-x86.h x86_desc + $(GENMDESC_PRG) cpu-x86.h x86_desc $(srcdir)/cpu-x86.md cpu-amd64.h: cpu-amd64.md genmdesc$(EXEEXT) - $(GENMDESC_PRG) $(srcdir)/cpu-amd64.md cpu-amd64.h amd64_desc + $(GENMDESC_PRG) cpu-amd64.h amd64_desc $(srcdir)/cpu-amd64.md cpu-ppc.h: cpu-ppc.md genmdesc$(EXEEXT) - $(GENMDESC_PRG) $(srcdir)/cpu-ppc.md cpu-ppc.h ppcg4 + $(GENMDESC_PRG) cpu-ppc.h ppcg4 $(srcdir)/cpu-ppc.md cpu-ppc64.h: cpu-ppc64.md genmdesc$(EXEEXT) - $(GENMDESC_PRG) $(srcdir)/cpu-ppc64.md cpu-ppc64.h ppc64_cpu_desc + $(GENMDESC_PRG) cpu-ppc64.h ppc64_cpu_desc $(srcdir)/cpu-ppc64.md cpu-arm.h: cpu-arm.md genmdesc$(EXEEXT) - $(GENMDESC_PRG) $(srcdir)/cpu-arm.md cpu-arm.h arm_cpu_desc + $(GENMDESC_PRG) cpu-arm.h arm_cpu_desc $(srcdir)/cpu-arm.md cpu-sparc.h: cpu-sparc.md genmdesc$(EXEEXT) - $(GENMDESC_PRG) $(srcdir)/cpu-sparc.md cpu-sparc.h sparc_desc + $(GENMDESC_PRG) cpu-sparc.h sparc_desc $(srcdir)/cpu-sparc.md cpu-s390.h: cpu-s390.md genmdesc$(EXEEXT) - $(GENMDESC_PRG) $(srcdir)/cpu-s390.md cpu-s390.h s390_cpu_desc + $(GENMDESC_PRG) cpu-s390.h s390_cpu_desc $(srcdir)/cpu-s390.md cpu-s390x.h: cpu-s390x.md genmdesc$(EXEEXT) - $(GENMDESC_PRG) $(srcdir)/cpu-s390x.md cpu-s390x.h s390x_cpu_desc + $(GENMDESC_PRG) cpu-s390x.h s390x_cpu_desc $(srcdir)/cpu-s390x.md cpu-ia64.h: cpu-ia64.md genmdesc$(EXEEXT) - $(GENMDESC_PRG) $(srcdir)/cpu-ia64.md cpu-ia64.h ia64_desc + $(GENMDESC_PRG) cpu-ia64.h ia64_desc $(srcdir)/cpu-ia64.md cpu-alpha.h: cpu-alpha.md genmdesc$(EXEEXT) - $(GENMDESC_PRG) $(srcdir)/cpu-alpha.md cpu-alpha.h alpha_desc + $(GENMDESC_PRG) cpu-alpha.h alpha_desc $(srcdir)/cpu-alpha.md cpu-hppa.h: cpu-hppa.md genmdesc$(EXEEXT) - $(GENMDESC_PRG) $(srcdir)/cpu-hppa.md cpu-hppa.h hppa_desc + $(GENMDESC_PRG) cpu-hppa.h hppa_desc $(srcdir)/cpu-hppa.md cpu-mips.h: cpu-mips.md genmdesc$(EXEEXT) - $(GENMDESC_PRG) $(srcdir)/cpu-mips.md cpu-mips.h mips_desc + $(GENMDESC_PRG) cpu-mips.h mips_desc $(srcdir)/cpu-mips.md testi: mono test.exe $(RUNTIME) -v -v --ncompile 1 --compile Test:$(mtest) test.exe @@ -507,14 +521,14 @@ aotcheck: mono $(regtests) for i in $(regtests); do $(RUNTIME_AOTCHECK) --regression $$i || exit 1; done rm -f *.exe.so -# This is not expected to run successfully +# This currently only works on amd64/arm fullaotcheck: mono $(regtests) rm -rf fullaot-tmp mkdir fullaot-tmp - cp $(CLASS)/mscorlib.dll $(CLASS)/Mono.Simd.dll $(regtests) generics-variant-types.dll TestDriver.dll fullaot-tmp/ + cp $(CLASS)/mscorlib.dll $(CLASS)/System.Core.dll $(CLASS)/System.dll $(CLASS)/Mono.Posix.dll $(CLASS)/System.Configuration.dll $(CLASS)/System.Security.dll $(CLASS)/System.Xml.dll $(CLASS)/Mono.Security.dll $(CLASS)/Mono.Simd.dll $(regtests) generics-variant-types.dll TestDriver.dll fullaot-tmp/ cp $(regtests) fullaot-tmp/ MONO_PATH=fullaot-tmp $(top_builddir)/runtime/mono-wrapper --aot=full fullaot-tmp/* || exit 1 - for i in $(regtests); do echo $$i; if [ $$i != generics.exe ]; then MONO_PATH=fullaot-tmp $(top_builddir)/runtime/mono-wrapper --full-aot fullaot-tmp/$$i || exit 1; fi; done + for i in $(regtests); do echo $$i; MONO_PATH=fullaot-tmp $(top_builddir)/runtime/mono-wrapper --full-aot fullaot-tmp/$$i --exclude '!FULLAOT' || exit 1; done bench: mono test.exe time env $(RUNTIME) --ncompile $(count) --compile Test:$(mtest) test.exe @@ -551,7 +565,7 @@ BUILT_SOURCES = version.h endif CLEANFILES= $(BUILT_SOURCES) *.exe *.dll -EXTRA_DIST = $(common_BURGSRC) cprop.c TestDriver.cs ldscript ldscript.mono \ +EXTRA_DIST = $(common_BURGSRC) TestDriver.cs ldscript ldscript.mono \ genmdesc.pl \ $(test_sources) \ $(x86_sources) cpu-x86.md \ @@ -566,17 +580,17 @@ EXTRA_DIST = $(common_BURGSRC) cprop.c TestDriver.cs ldscript ldscript.mono \ $(alpha_sources) cpu-alpha.md \ $(hppa_sources) cpu-hppa.md \ $(windows_sources) \ - $(darwin_sources) \ + $(darwin_sources) Info.plist \ $(posix_sources) version.h: Makefile - if test -d $(top_srcdir)/.git/svn; then svn_info='git svn info'; fi; \ + if test -d $(top_srcdir)/.git/svn; then svn_info="git log --no-color --first-parent -n1 --grep=git-svn-id: --pretty=format:%b | sed -n -e 's,git-svn-id: \(.*\)@\(.*\) .*,URL: \1 Revision: \2,p'"; fi; \ if test -d $(srcdir)/.svn; then svn_info='svn info'; fi; \ if test -n "$$svn_info"; then \ (cd $(top_srcdir); \ LANG=C; export LANG; \ - branch=`$$svn_info | grep URL | sed -e 's/.*source//' -e 's,mono/?$$,,'`; \ - version=`$$svn_info | grep Revision | sed 's/.*: //'`; \ + branch=`eval $$svn_info | sed -n -e '/URL/ s,.*source/\(.*\)/mono.*,/\1/mono,p'`; \ + version=`eval $$svn_info | sed -n -e '/Revision/ s/.*: //p'`; \ echo "#define FULL_VERSION \"$$branch r$$version\""; \ ); \ else \ @@ -587,3 +601,6 @@ version.h: Makefile patch-libtool: sed -e 's,if (for obj in $$oldobjs,if (for obj in "",g' < ../../libtool > 2; mv 2 ../../libtool chmod a+x ../../libtool + +tags: + etags -o TAGS `find .. -name "*.h" -o -name "*.c"`