X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmini%2FMakefile.am.in;h=28fb9ee5b8d2fdbc6a19ed9ea8541ad4814c313b;hb=HEAD;hp=848f75d3fe1544ed2dedbd459355d7c30a563280;hpb=45d9cc1b5a7643b975608b680ed7dbe193543801;p=mono.git diff --git a/mono/mini/Makefile.am.in b/mono/mini/Makefile.am.in index 848f75d3fe1..28fb9ee5b8d 100755 --- a/mono/mini/Makefile.am.in +++ b/mono/mini/Makefile.am.in @@ -87,7 +87,7 @@ monobinldflags=$(export_ldflags) $(extra_runtime_ldflags) if HOST_WIN32 libmonoldflags=-no-undefined -avoid-version -Wl,--kill-at $(monoldflags) else -if PLATFORM_ANDROID +if HOST_ANDROID libmonoldflags= -avoid-version $(monoldflags) else libmonoldflags=$(monoldflags) -version-info 1:0:0 @@ -168,7 +168,7 @@ if LOADED_LLVM lib_LTLIBRARIES += libmono-llvm.la libmono_llvm_la_SOURCES = mini-llvm.c mini-llvm-cpp.cpp llvm-jit.cpp libmono_llvm_la_LIBADD = $(GLIB_LIBS) $(LLVM_LIBS) $(LLVM_LDFLAGS) -if PLATFORM_DARWIN +if HOST_DARWIN libmono_llvm_la_LDFLAGS=-Wl,-undefined -Wl,suppress -Wl,-flat_namespace else libmono_llvm_la_LIBADD += $(top_builddir)/mono/mini/libmonoboehm-$(API_VER).la $(boehm_libs) @@ -312,6 +312,12 @@ genmdesc_LDADD = \ $(GLIB_LIBS) \ $(LIBICONV) +wasm_sources = \ + mini-wasm.c \ + mini-wasm.h \ + exceptions-wasm.c \ + tramp-wasm.c + x86_sources = \ mini-x86.c \ mini-x86.h \ @@ -456,6 +462,7 @@ common_sources = \ aot-compiler.h \ aot-compiler.c \ aot-runtime.c \ + aot-runtime-wasm.c \ graph.c \ mini-codegen.c \ mini-exceptions.c \ @@ -541,6 +548,12 @@ endif regtests = $(filter-out $(regtests_DISABLED),$(regtests_UNIVERSAL)) +if WASM +arch_sources = $(wasm_sources) +arch_built=cpu-wasm.h +arch_define=__wasm__ +endif + if X86 arch_sources = $(x86_sources) arch_built=cpu-x86.h @@ -609,12 +622,12 @@ os_sources = $(windows_sources) monobin_platform_ldflags= endif -if PLATFORM_SIGPOSIX +if HOST_SIGPOSIX os_sources = $(posix_sources) monobin_platform_ldflags= endif -if PLATFORM_DARWIN +if HOST_DARWIN os_sources = $(darwin_sources) $(posix_sources) #monobin_platform_ldflags=-sectcreate __TEXT __info_plist $(top_srcdir)/mono/mini/Info.plist -framework CoreFoundation -framework Foundation monobin_platform_ldflags=-framework CoreFoundation -framework Foundation @@ -687,12 +700,20 @@ GENMDESC_OPTS= # build dependency for the poor windows users # $(arch_define) is the preprocessor symbol that enables all the opcodes # for the specific platform in mini-ops.h + if CROSS_COMPILING GENMDESC_PRG=perl $(srcdir)/genmdesc.pl $(arch_define) $(srcdir) $(GENMDESC_OPTS) -else !CROSS_COMPILING +else +if WASM +GENMDESC_PRG=perl $(srcdir)/genmdesc.pl $(arch_define) $(srcdir) $(GENMDESC_OPTS) +else GENMDESC_PRG=./genmdesc $(GENMDESC_OPTS) +endif endif !CROSS_COMPILING +cpu-wasm.h: cpu-wasm.md genmdesc$(EXEEXT) + $(GENMDESC_PRG) cpu-wasm.h wasm_desc $(srcdir)/cpu-wasm.md + cpu-x86.h: cpu-x86.md genmdesc$(EXEEXT) $(GENMDESC_PRG) cpu-x86.h x86_desc $(srcdir)/cpu-x86.md @@ -882,6 +903,7 @@ EXTRA_DIST = TestDriver.cs \ TestHelpers.cs \ genmdesc.pl \ $(test_sources) \ + $(wasm_sources) cpu-wasm.md \ $(x86_sources) cpu-x86.md \ $(amd64_sources) cpu-amd64.md \ $(ppc_sources) cpu-ppc.md cpu-ppc64.md \