5 platform_sources = $(win32_sources)
7 # Use -m here. This will use / as directory separator (C:/WINNT).
8 # The files that use MONO_ASSEMBLIES and/or MONO_CFG_DIR replace the
9 # / by \ if running under WIN32.
11 assembliesdir = ${libdir}
12 confdir = ${sysconfdir}
14 assembliesdir = `cygpath -m "${libdir}"`
15 confdir = `cygpath -m "${sysconfdir}"`
18 # The mingw math.h has "extern inline" functions that dont appear in libs, so
19 # optimisation is required to actually inline them
23 assembliesdir = $(exec_prefix)/lib
24 confdir = $(sysconfdir)
28 platform_sources = $(unix_sources)
34 # libtool is not capable of creating static/shared versions of the same
35 # convenience lib, so we have to do it ourselves
37 noinst_LTLIBRARIES = libmonoruntime.la libmonoruntime-static.la
39 INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/mono $(LIBGC_CFLAGS) $(GLIB_CFLAGS) -DMONO_BINDIR=\"$(bindir)/\" -DMONO_ASSEMBLIES=\"$(assembliesdir)\" -DMONO_CFG_DIR=\"$(confdir)\"
42 # Make sure any prefix changes are updated in the binaries too.
44 # assembly.c uses MONO_ASSEMBLIES
45 # mono-config.c uses MONO_CFG_DIR
47 # This won't result in many more false positives than AC_DEFINEing them
50 assembly.lo mono-config.lo: Makefile
52 CLEANFILES = mono-bundle.stamp
54 libmonoruntime_static_la_LIBADD = $(bundle_obj) $(libmonoruntime_la_LIBADD)
62 sgen-pinning-stats.c \
65 libmonoruntime_la_SOURCES = \
82 culture-info-tables.h \
84 debug-mono-symfile.h \
85 debug-mono-symfile.c \
112 mempool-internals.h \
115 metadata-internals.h \
123 mono-debug-debugger.h \
124 mono-debug-debugger.c \
129 mono-perfcounters.c \
130 mono-perfcounters.h \
131 mono-perfcounters-def.h \
137 normalization-tables.h \
155 security-core-clr.c \
156 security-core-clr.h \
172 threadpool-internals.h \
177 libmonoruntime_static_la_SOURCES = $(libmonoruntime_la_SOURCES)
179 libmonoruntime_static_la_LDFLAGS = -static
181 libmonoruntimeincludedir = $(includedir)/mono-$(API_VER)/mono/metadata
183 libmonoruntimeinclude_HEADERS = \
190 debug-mono-symfile.h \
210 PEDUMP_DTRACE_OBJECT = pedump-dtrace.$(OBJEXT)
212 pedump-dtrace.$(OBJEXT): $(top_srcdir)/data/mono.d libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la
213 DTRACE="$(DTRACE)" DTRACEFLAGS="$(DTRACEFLAGS)" AR="$(AR)" $(SHELL) $(top_srcdir)/data/dtrace-prelink.sh \
214 --pic pedump-dtrace.$(OBJEXT) $(top_srcdir)/data/mono.d libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la
217 PEDUMP_DTRACE_OBJECT =
223 pedump_LDADD = libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la \
224 $(LIBGC_LIBS) $(GLIB_LIBS) -lm $(PEDUMP_DTRACE_OBJECT)
227 pedump_LDFLAGS=-framework CoreFoundation
230 EXTRA_DIST = make-bundle.pl sample-bundle $(win32_sources) $(unix_sources) $(null_sources) $(sgen_sources)