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)
67 sgen-pinning-stats.c \
72 libmonoruntime_la_SOURCES = \
89 culture-info-tables.h \
91 debug-mono-symfile.h \
92 debug-mono-symfile.c \
119 mempool-internals.h \
122 metadata-internals.h \
130 mono-debug-debugger.h \
131 mono-debug-debugger.c \
138 mono-perfcounters.c \
139 mono-perfcounters.h \
140 mono-perfcounters-def.h \
147 normalization-tables.h \
165 security-core-clr.c \
166 security-core-clr.h \
174 sgen-marksweep-fixed.c \
175 sgen-marksweep-par.c \
176 sgen-marksweep-fixed-par.c \
177 sgen-major-copying.c \
180 sgen-major-copy-object.h \
181 sgen-major-scan-object.h \
193 threadpool-internals.h \
198 libmonoruntime_la_CFLAGS = $(BOEHM_DEFINES)
200 libmonoruntimesgen_la_SOURCES = $(libmonoruntime_la_SOURCES)
201 libmonoruntimesgen_la_CFLAGS = $(SGEN_DEFINES)
203 libmonoruntime_static_la_SOURCES = $(libmonoruntime_la_SOURCES)
204 libmonoruntime_static_la_LDFLAGS = -static
205 libmonoruntime_static_la_CFLAGS = $(BOEHM_DEFINES)
207 libmonoruntimesgen_static_la_SOURCES = $(libmonoruntime_la_SOURCES)
208 libmonoruntimesgen_static_la_LDFLAGS = -static
209 libmonoruntimesgen_static_la_CFLAGS = $(SGEN_DEFINES)
211 libmonoruntimeincludedir = $(includedir)/mono-$(API_VER)/mono/metadata
213 libmonoruntimeinclude_HEADERS = \
220 debug-mono-symfile.h \
240 PEDUMP_DTRACE_OBJECT = pedump-dtrace.$(OBJEXT)
242 pedump-dtrace.$(OBJEXT): $(top_srcdir)/data/mono.d libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la
243 DTRACE="$(DTRACE)" DTRACEFLAGS="$(DTRACEFLAGS)" AR="$(AR)" $(SHELL) $(top_srcdir)/data/dtrace-prelink.sh \
244 --pic pedump-dtrace.$(OBJEXT) $(top_srcdir)/data/mono.d libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la
247 PEDUMP_DTRACE_OBJECT =
253 pedump_LDADD = libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la \
254 $(LIBGC_LIBS) $(GLIB_LIBS) -lm $(PEDUMP_DTRACE_OBJECT)
257 pedump_LDFLAGS=-framework CoreFoundation
260 EXTRA_DIST = make-bundle.pl sample-bundle $(win32_sources) $(unix_sources) $(null_sources) $(sgen_sources) runtime.h