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)
32 platform_sources += ../../support/libm/complex.c
42 # libtool is not capable of creating static/shared versions of the same
43 # convenience lib, so we have to do it ourselves
46 if DISABLE_EXECUTABLES
47 shared_sgen_libraries = libmonoruntimesgen.la
50 shared_sgen_libraries = libmonoruntimesgen.la
53 sgen_libraries = $(shared_sgen_libraries) libmonoruntimesgen-static.la
57 if DISABLE_EXECUTABLES
58 shared_boehm_libraries = libmonoruntime.la
61 shared_boehm_libraries = libmonoruntime.la
64 boehm_libraries = $(shared_boehm_libraries) libmonoruntime-static.la
67 if DISABLE_EXECUTABLES
68 noinst_LTLIBRARIES = libmonoruntime-config.la $(shared_sgen_libraries) $(shared_boehm_libraries)
70 noinst_LTLIBRARIES = libmonoruntime-config.la $(boehm_libraries) $(sgen_libraries)
73 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/mono $(LIBGC_CPPFLAGS) $(GLIB_CFLAGS) $(SHARED_CFLAGS)
76 # Make sure any prefix changes are updated in the binaries too.
78 # This won't result in many more false positives than AC_DEFINEing them
81 mono-config-dirs.lo: Makefile
84 # This library is used to localize the usage of MONO_BINDIR etc. to just one source file, thus enabling
85 # ccache to work even if the value of these defines change. We need to use a convenience library since automake
86 # doesn't support per file cflags.
88 libmonoruntime_config_la_SOURCES = \
91 libmonoruntime_config_la_CPPFLAGS = $(AM_CPPFLAGS) -DMONO_BINDIR=\"$(bindir)/\" -DMONO_ASSEMBLIES=\"$(assembliesdir)\" -DMONO_CFG_DIR=\"$(confdir)\"
93 CLEANFILES = mono-bundle.stamp
102 $(platform_sources) \
116 culture-info-tables.h \
118 debug-mono-symfile.h \
119 debug-mono-symfile.c \
146 mempool-internals.h \
149 metadata-internals.h \
159 mono-debug-debugger.h \
165 mono-perfcounters.c \
166 mono-perfcounters.h \
167 mono-perfcounters-def.h \
175 normalization-tables.h \
192 security-core-clr.c \
193 security-core-clr.h \
205 threadpool-internals.h \
214 reflection-internals.h \
216 file-mmap-windows.c \
220 metadata-cross-helpers.c \
225 # These source files have compile time dependencies on GC code
226 gc_dependent_sources = \
251 sgen-tarjan-bridge.c \
259 sgen-pointer-queue.c \
260 sgen-pointer-queue.h \
263 sgen-pinning-stats.c \
268 sgen-major-copy-object.h \
269 sgen-minor-copy-object.h \
271 sgen-marksweep-scan-object-concurrent.h \
272 sgen-minor-scan-object.h \
273 sgen-marksweep-drain-gray-stack.h \
275 sgen-protocol-def.h \
277 sgen-nursery-allocator.c \
284 sgen-simple-nursery.c \
285 sgen-split-nursery.c \
286 sgen-memory-governor.c \
287 sgen-memory-governor.h \
289 sgen-fin-weak-hash.c \
290 sgen-layout-stats.c \
291 sgen-layout-stats.h \
296 sgen-tagged-pointer.h
298 libmonoruntime_la_SOURCES = $(common_sources) $(gc_dependent_sources) $(null_gc_sources) $(boehm_sources)
299 libmonoruntime_la_CFLAGS = $(BOEHM_DEFINES)
300 libmonoruntime_la_LIBADD = libmonoruntime-config.la
302 libmonoruntimesgen_la_SOURCES = $(common_sources) $(gc_dependent_sources) $(sgen_sources)
303 libmonoruntimesgen_la_CFLAGS = $(SGEN_DEFINES)
304 libmonoruntimesgen_la_LIBADD = libmonoruntime-config.la
306 libmonoruntime_static_la_SOURCES = $(libmonoruntime_la_SOURCES)
307 libmonoruntime_static_la_LDFLAGS = -static
308 libmonoruntime_static_la_CFLAGS = $(BOEHM_DEFINES)
309 libmonoruntime_static_la_LIBADD = $(bundle_obj) $(libmonoruntime_la_LIBADD)
311 libmonoruntimesgen_static_la_SOURCES = $(libmonoruntimesgen_la_SOURCES)
312 libmonoruntimesgen_static_la_LDFLAGS = -static
313 libmonoruntimesgen_static_la_CFLAGS = $(SGEN_DEFINES)
314 libmonoruntimesgen_static_la_LIBADD = $(libmonoruntimesgen_la_LIBADD)
316 libmonoruntimeincludedir = $(includedir)/mono-$(API_VER)/mono/metadata
318 libmonoruntimeinclude_HEADERS = \
325 debug-mono-symfile.h \
346 PEDUMP_DTRACE_OBJECT = pedump-dtrace.$(OBJEXT)
348 pedump-dtrace.$(OBJEXT): $(top_srcdir)/data/mono.d libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la
349 DTRACE="$(DTRACE)" DTRACEFLAGS="$(DTRACEFLAGS)" AR="$(AR)" $(SHELL) $(top_srcdir)/data/dtrace-prelink.sh \
350 --pic pedump-dtrace.$(OBJEXT) $(top_srcdir)/data/mono.d libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la
353 PEDUMP_DTRACE_OBJECT =
361 pedump_LDADD = libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la \
362 $(LIBGC_LIBS) $(GLIB_LIBS) -lm $(LIBICONV) $(PEDUMP_DTRACE_OBJECT)
365 pedump_LDFLAGS=-framework CoreFoundation -framework Foundation
370 EXTRA_DIST = $(win32_sources) $(unix_sources) $(null_sources) runtime.h \
371 tpool-poll.c tpool-epoll.c tpool-kqueue.c