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)
38 # libtool is not capable of creating static/shared versions of the same
39 # convenience lib, so we have to do it ourselves
42 if DISABLE_EXECUTABLES
43 shared_sgen_libraries = libmonoruntimesgen.la
46 shared_sgen_libraries = libmonoruntimesgen.la
49 sgen_libraries = $(shared_sgen_libraries) libmonoruntimesgen-static.la
53 if DISABLE_EXECUTABLES
54 shared_boehm_libraries = libmonoruntime.la
57 shared_boehm_libraries = libmonoruntime.la
60 boehm_libraries = $(shared_boehm_libraries) libmonoruntime-static.la
63 if DISABLE_EXECUTABLES
64 noinst_LTLIBRARIES = libmonoruntime-config.la $(shared_sgen_libraries) $(shared_boehm_libraries)
66 noinst_LTLIBRARIES = libmonoruntime-config.la $(boehm_libraries) $(sgen_libraries)
69 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/mono $(LIBGC_CPPFLAGS) $(GLIB_CFLAGS) $(SHARED_CFLAGS)
72 # Make sure any prefix changes are updated in the binaries too.
74 # This won't result in many more false positives than AC_DEFINEing them
77 mono-config-dirs.lo: Makefile
80 # This library is used to localize the usage of MONO_BINDIR etc. to just one source file, thus enabling
81 # ccache to work even if the value of these defines change. We need to use a convenience library since automake
82 # doesn't support per file cflags.
84 libmonoruntime_config_la_SOURCES = \
87 libmonoruntime_config_la_CPPFLAGS = $(AM_CPPFLAGS) -DMONO_BINDIR=\"$(bindir)/\" -DMONO_ASSEMBLIES=\"$(assembliesdir)\" -DMONO_CFG_DIR=\"$(confdir)\"
89 CLEANFILES = mono-bundle.stamp
112 culture-info-tables.h \
114 debug-mono-symfile.h \
115 debug-mono-symfile.c \
142 mempool-internals.h \
145 metadata-internals.h \
155 mono-debug-debugger.h \
161 mono-perfcounters.c \
162 mono-perfcounters.h \
163 mono-perfcounters-def.h \
171 normalization-tables.h \
188 security-core-clr.c \
189 security-core-clr.h \
201 threadpool-internals.h \
202 threadpool-microsoft.c \
203 threadpool-microsoft.h \
208 reflection-internals.h \
210 file-mmap-windows.c \
214 metadata-cross-helpers.c \
219 # These source files have compile time dependencies on GC code
220 gc_dependent_sources = \
245 sgen-tarjan-bridge.c \
253 sgen-pointer-queue.c \
254 sgen-pointer-queue.h \
257 sgen-pinning-stats.c \
262 sgen-major-copy-object.h \
263 sgen-minor-copy-object.h \
265 sgen-marksweep-scan-object-concurrent.h \
266 sgen-minor-scan-object.h \
267 sgen-marksweep-drain-gray-stack.h \
269 sgen-protocol-def.h \
271 sgen-nursery-allocator.c \
278 sgen-simple-nursery.c \
279 sgen-split-nursery.c \
280 sgen-memory-governor.c \
281 sgen-memory-governor.h \
283 sgen-fin-weak-hash.c \
284 sgen-layout-stats.c \
285 sgen-layout-stats.h \
288 sgen-tagged-pointer.h
290 libmonoruntime_la_SOURCES = $(common_sources) $(gc_dependent_sources) $(null_gc_sources) $(boehm_sources)
291 libmonoruntime_la_CFLAGS = $(BOEHM_DEFINES)
292 libmonoruntime_la_LIBADD = libmonoruntime-config.la
294 libmonoruntimesgen_la_SOURCES = $(common_sources) $(gc_dependent_sources) $(sgen_sources)
295 libmonoruntimesgen_la_CFLAGS = $(SGEN_DEFINES)
296 libmonoruntimesgen_la_LIBADD = libmonoruntime-config.la
298 libmonoruntime_static_la_SOURCES = $(libmonoruntime_la_SOURCES)
299 libmonoruntime_static_la_LDFLAGS = -static
300 libmonoruntime_static_la_CFLAGS = $(BOEHM_DEFINES)
301 libmonoruntime_static_la_LIBADD = $(bundle_obj) $(libmonoruntime_la_LIBADD)
303 libmonoruntimesgen_static_la_SOURCES = $(libmonoruntimesgen_la_SOURCES)
304 libmonoruntimesgen_static_la_LDFLAGS = -static
305 libmonoruntimesgen_static_la_CFLAGS = $(SGEN_DEFINES)
306 libmonoruntimesgen_static_la_LIBADD = $(libmonoruntimesgen_la_LIBADD)
308 libmonoruntimeincludedir = $(includedir)/mono-$(API_VER)/mono/metadata
310 libmonoruntimeinclude_HEADERS = \
317 debug-mono-symfile.h \
338 PEDUMP_DTRACE_OBJECT = pedump-dtrace.$(OBJEXT)
340 pedump-dtrace.$(OBJEXT): $(top_srcdir)/data/mono.d libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la
341 DTRACE="$(DTRACE)" DTRACEFLAGS="$(DTRACEFLAGS)" AR="$(AR)" $(SHELL) $(top_srcdir)/data/dtrace-prelink.sh \
342 --pic pedump-dtrace.$(OBJEXT) $(top_srcdir)/data/mono.d libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la
345 PEDUMP_DTRACE_OBJECT =
353 pedump_LDADD = libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la \
354 $(LIBGC_LIBS) $(GLIB_LIBS) -lm $(LIBICONV) $(PEDUMP_DTRACE_OBJECT)
357 pedump_LDFLAGS=-framework CoreFoundation -framework Foundation
362 EXTRA_DIST = make-bundle.pl sample-bundle $(win32_sources) $(unix_sources) $(null_sources) runtime.h \
363 tpool-poll.c tpool-epoll.c tpool-kqueue.c