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
38 sgen_libraries = libmonoruntimesgen.la libmonoruntimesgen-static.la
41 noinst_LTLIBRARIES = libmonoruntime.la libmonoruntime-static.la $(sgen_libraries)
43 INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/mono $(LIBGC_CFLAGS) $(GLIB_CFLAGS) -DMONO_BINDIR=\"$(bindir)/\" -DMONO_ASSEMBLIES=\"$(assembliesdir)\" -DMONO_CFG_DIR=\"$(confdir)\"
46 # Make sure any prefix changes are updated in the binaries too.
48 # assembly.c uses MONO_ASSEMBLIES
49 # mono-config.c uses MONO_CFG_DIR
51 # This won't result in many more false positives than AC_DEFINEing them
54 assembly.lo mono-config.lo: Makefile
56 CLEANFILES = mono-bundle.stamp
58 libmonoruntime_static_la_LIBADD = $(bundle_obj) $(libmonoruntime_la_LIBADD)
66 sgen-pinning-stats.c \
71 libmonoruntime_la_SOURCES = \
88 culture-info-tables.h \
90 debug-mono-symfile.h \
91 debug-mono-symfile.c \
118 mempool-internals.h \
121 metadata-internals.h \
129 mono-debug-debugger.h \
130 mono-debug-debugger.c \
137 mono-perfcounters.c \
138 mono-perfcounters.h \
139 mono-perfcounters-def.h \
145 normalization-tables.h \
163 security-core-clr.c \
164 security-core-clr.h \
183 threadpool-internals.h \
188 libmonoruntime_la_CFLAGS = $(BOEHM_DEFINES)
190 libmonoruntimesgen_la_SOURCES = $(libmonoruntime_la_SOURCES)
191 libmonoruntimesgen_la_CFLAGS = $(SGEN_DEFINES)
193 libmonoruntime_static_la_SOURCES = $(libmonoruntime_la_SOURCES)
194 libmonoruntime_static_la_LDFLAGS = -static
195 libmonoruntime_static_la_CFLAGS = $(BOEHM_DEFINES)
197 libmonoruntimesgen_static_la_SOURCES = $(libmonoruntime_la_SOURCES)
198 libmonoruntimesgen_static_la_LDFLAGS = -static
199 libmonoruntimesgen_static_la_CFLAGS = $(SGEN_DEFINES)
201 libmonoruntimeincludedir = $(includedir)/mono-$(API_VER)/mono/metadata
203 libmonoruntimeinclude_HEADERS = \
210 debug-mono-symfile.h \
230 PEDUMP_DTRACE_OBJECT = pedump-dtrace.$(OBJEXT)
232 pedump-dtrace.$(OBJEXT): $(top_srcdir)/data/mono.d libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la
233 DTRACE="$(DTRACE)" DTRACEFLAGS="$(DTRACEFLAGS)" AR="$(AR)" $(SHELL) $(top_srcdir)/data/dtrace-prelink.sh \
234 --pic pedump-dtrace.$(OBJEXT) $(top_srcdir)/data/mono.d libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la
237 PEDUMP_DTRACE_OBJECT =
243 pedump_LDADD = libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la \
244 $(LIBGC_LIBS) $(GLIB_LIBS) -lm $(PEDUMP_DTRACE_OBJECT)
247 pedump_LDFLAGS=-framework CoreFoundation
250 EXTRA_DIST = make-bundle.pl sample-bundle $(win32_sources) $(unix_sources) $(null_sources) $(sgen_sources) runtime.h