X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmetadata%2FMakefile.am;h=4eb70f7519666342c68e1d783c828ce272380483;hb=aae20b33d0f5235361bf19210c2a6f7d7ce88aa7;hp=aec39f267f683eb0b19714e781e67e4341b48990;hpb=04777121250bfa2c474dcb4ca13614aa0a7a9c9f;p=mono.git diff --git a/mono/metadata/Makefile.am b/mono/metadata/Makefile.am index aec39f267f6..4eb70f75196 100644 --- a/mono/metadata/Makefile.am +++ b/mono/metadata/Makefile.am @@ -8,41 +8,61 @@ confdir = `cygpath -m "${sysconfdir}"` # The mingw math.h has "extern inline" functions that dont appear in libs, so # optimisation is required to actually inline them AM_CFLAGS = -O +PLATFORM_LIB = ../os/libmonoos.la else -assembliesdir = $(libdir) +assembliesdir = $(exec_prefix)/lib confdir = $(sysconfdir) endif -bin_PROGRAMS = monosn pedump +bin_PROGRAMS = pedump monodiet -noinst_LTLIBRARIES = libmetadata.la libmonoruntime.la +# +# libtool is not capable of creating static/shared versions of the same +# convenience lib, so we have to do it ourselves +# +noinst_LTLIBRARIES = libmonoruntime.la libmonoruntime-static.la INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/mono $(LIBGC_CFLAGS) $(GLIB_CFLAGS) $(GMODULE_CFLAGS) $(ICU_CFLAGS) \ -DMONO_ASSEMBLIES=\"$(assembliesdir)\" -DMONO_CFG_DIR=\"$(confdir)\" -if WITH_BUNDLE -bundle_srcs = mono-bundle.s mono-bundle.h -mono-bundle.s mono-bundle.h: $(BUNDLE_FILE) $(srcdir)/make-bundle.pl - perl $(srcdir)/make-bundle.pl $(BUNDLE_FILE) mono-bundle.h mono-bundle.s -else -bundle_srcs = -endif +# +# Make sure any prefix changes are updated in the binaries too. +# +# assembly.c uses MONO_ASSEMBLIES +# mono-config.c uses MONO_CFG_DIR +# +# This won't result in many more false positives than AC_DEFINEing them +# in configure.in. +# +assembly.lo mono-config.lo: Makefile + +CLEANFILES = mono-bundle.stamp + +libmonoruntime_static_la_LIBADD = $(bundle_obj) $(PLATFORM_LIB) $(libmonoruntime_la_LIBADD) libmonoruntime_la_SOURCES = \ reflection.c \ object.c \ + object-internals.h \ icall.c \ + char-conversions.h \ decimal.c \ decimal.h \ + boehm-gc.c \ + null-gc.c \ gc.c \ gc-internal.h \ marshal.c \ marshal.h \ monitor.c \ monitor.h \ + tabledefs.h \ threads.c \ + threads-types.h \ threadpool.c \ + threadpool.h \ + threadpool-internals.h \ file-io.c \ file-io.h \ socket-io.c \ @@ -62,6 +82,8 @@ libmonoruntime_la_SOURCES = \ profiler-private.h \ rand.h \ rand.c \ + security.c \ + security.h \ string-icalls.c \ string-icalls.h \ sysmath.h \ @@ -71,54 +93,58 @@ libmonoruntime_la_SOURCES = \ environment.c \ environment.h \ locales.c \ - locales.h - -libmetadata_la_SOURCES = \ + locales.h \ + filewatcher.c \ + filewatcher.h \ + culture-info.h \ + culture-info-tables.h \ + security-manager.c \ + security-manager.h \ + console-io.c \ + console-io.h \ assembly.c \ domain.c \ + domain-internals.h \ opcodes.c \ image.c \ + cil-coff.h \ metadata.c \ + metadata-internals.h \ verify.c \ mono-endian.c \ + mono-endian.h \ mono-config.c \ mono-config.h \ - private.h \ rawbuffer.c \ + rawbuffer.h \ loader.c \ class.c \ + class-internals.h \ mempool.c \ - $(bundle_srcs) \ debug-helpers.c -libmetadataincludedir = $(includedir)/mono/metadata +libmonoruntime_static_la_SOURCES = $(libmonoruntime_la_SOURCES) + +libmonoruntime_static_la_LDFLAGS = -static + libmonoruntimeincludedir = $(includedir)/mono/metadata libmonoruntimeinclude_HEADERS = \ appdomain.h \ mono-debug.h \ + mono-gc.h \ mono-debug-debugger.h \ debug-mono-symfile.h \ - threadpool.h \ - threads-types.h \ threads.h \ environment.h \ - monitor.h \ - locales.h - -libmetadatainclude_HEADERS = \ assembly.h \ opcodes.h \ blob.h \ - cil-coff.h \ - mono-endian.h \ image.h \ metadata.h \ verify.h \ - rawbuffer.h \ reflection.h \ row-indexes.h \ - tabledefs.h \ tokentype.h \ loader.h \ class.h \ @@ -127,26 +153,27 @@ libmetadatainclude_HEADERS = \ profiler.h \ appdomain.h \ debug-helpers.h \ - mempool.h \ - rand.h + mempool.h pedump_SOURCES = \ pedump.c -pedump_LDADD = libmetadata.la ../io-layer/libwapi.la ../utils/libmonoutils.la \ +pedump_LDADD = libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la \ + $(PLATFORM_LIB) \ $(LIBGC_LIBS) $(GLIB_LIBS) $(GMODULE_LIBS) -lm +monodiet_SOURCES = monodiet.c -monosn_LDADD = \ - libmetadata.la \ +monodiet_LDADD = \ + libmonoruntime.la \ ../io-layer/libwapi.la \ ../utils/libmonoutils.la \ + $(PLATFORM_LIB) \ $(LIBGC_LIBS) \ $(GLIB_LIBS) \ $(GMODULE_LIBS) \ + $(ICU_LIBS) \ -lm -BUILT_SOURCES = $(bundle_srcs) - EXTRA_DIST = make-bundle.pl sample-bundle