9 platform_sources = $(win32_sources)
11 # Use -m here. This will use / as directory separator (C:/WINNT).
12 # The files that use MONO_ASSEMBLIES and/or MONO_CFG_DIR replace the
13 # / by \ if running under WIN32.
15 assembliesdir = ${libdir}
16 confdir = ${sysconfdir}
18 assembliesdir = `cygpath -m "${libdir}"`
19 confdir = `cygpath -m "${sysconfdir}"`
22 # The mingw math.h has "extern inline" functions that dont appear in libs, so
23 # optimisation is required to actually inline them
27 assembliesdir = $(exec_prefix)/lib
28 confdir = $(sysconfdir)
35 platform_sources = $(unix_sources)
39 platform_sources += ../../support/libm/complex.c
43 btls_file_list := $(shell cat ../btls/build-shared/mono-btls-shared-lo.txt)
44 btls_static_file_list := $(shell cat ../btls/build-static/mono-btls-static-lo.txt)
45 btls_libs = $(btls_file_list)
46 btls_static_libs = $(btls_static_file_list)
47 btls_cflags = -I$(top_srcdir)/external/boringssl/include -I$(top_srcdir)/mono/btls
51 # libtool is not capable of creating static/shared versions of the same
52 # convenience lib, so we have to do it ourselves
55 if DISABLE_EXECUTABLES
56 shared_sgen_libraries = libmonoruntimesgen.la
59 shared_sgen_libraries = libmonoruntimesgen.la
62 sgen_libraries = $(shared_sgen_libraries) libmonoruntimesgen-static.la
66 if DISABLE_EXECUTABLES
67 shared_boehm_libraries = libmonoruntime.la
70 shared_boehm_libraries = libmonoruntime.la
73 boehm_libraries = $(shared_boehm_libraries) libmonoruntime-static.la
76 if DISABLE_EXECUTABLES
77 noinst_LTLIBRARIES = libmonoruntime-config.la $(shared_sgen_libraries) $(shared_boehm_libraries)
79 noinst_LTLIBRARIES = libmonoruntime-config.la $(boehm_libraries) $(sgen_libraries)
82 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/mono $(LIBGC_CPPFLAGS) $(GLIB_CFLAGS) $(SHARED_CFLAGS) $(btls_cflags)
85 # Make sure any prefix changes are updated in the binaries too.
87 # This won't result in many more false positives than AC_DEFINEing them
90 mono-config-dirs.lo: Makefile
93 # This library is used to localize the usage of MONO_BINDIR etc. to just one source file, thus enabling
94 # ccache to work even if the value of these defines change. We need to use a convenience library since automake
95 # doesn't support per file cflags.
97 libmonoruntime_config_la_SOURCES = \
100 libmonoruntime_config_la_CPPFLAGS = $(AM_CPPFLAGS) -DMONO_BINDIR=\"$(bindir)/\" -DMONO_ASSEMBLIES=\"$(assembliesdir)\" -DMONO_CFG_DIR=\"$(confdir)\"
102 CLEANFILES = mono-bundle.stamp
111 $(platform_sources) \
113 assembly-internals.h \
125 culture-info-tables.h \
127 debug-mono-symfile.h \
128 debug-mono-symfile.c \
138 exception-internals.h \
158 mempool-internals.h \
161 metadata-internals.h \
169 mono-debug-debugger.h \
175 mono-perfcounters.c \
176 mono-perfcounters.h \
177 mono-perfcounters-def.h \
183 normalization-tables.h \
202 security-core-clr.c \
203 security-core-clr.h \
220 dynamic-image-internals.h \
222 dynamic-stream-internals.h \
224 custom-attrs-internals.h \
226 reflection-internals.h \
228 file-mmap-windows.c \
232 metadata-cross-helpers.c \
240 w32handle-namespace.h \
241 w32handle-namespace.c
243 # These source files have compile time dependencies on GC code
244 gc_dependent_sources = \
270 sgen-bridge-internals.h \
273 sgen-tarjan-bridge.c \
280 libmonoruntime_la_SOURCES = $(common_sources) $(gc_dependent_sources) $(null_gc_sources) $(boehm_sources)
281 libmonoruntime_la_CFLAGS = $(BOEHM_DEFINES)
282 libmonoruntime_la_LIBADD = libmonoruntime-config.la $(btls_libs)
284 libmonoruntimesgen_la_SOURCES = $(common_sources) $(gc_dependent_sources) $(sgen_sources)
285 libmonoruntimesgen_la_CFLAGS = $(SGEN_DEFINES)
286 libmonoruntimesgen_la_LIBADD = libmonoruntime-config.la $(btls_libs)
288 libmonoruntime_static_la_SOURCES = $(libmonoruntime_la_SOURCES)
289 libmonoruntime_static_la_LDFLAGS = -static
290 libmonoruntime_static_la_CFLAGS = $(BOEHM_DEFINES)
291 libmonoruntime_static_la_LIBADD = $(bundle_obj) libmonoruntime-config.la $(btls_static_libs)
293 libmonoruntimesgen_static_la_SOURCES = $(libmonoruntimesgen_la_SOURCES)
294 libmonoruntimesgen_static_la_LDFLAGS = -static
295 libmonoruntimesgen_static_la_CFLAGS = $(SGEN_DEFINES)
296 libmonoruntimesgen_static_la_LIBADD = libmonoruntime-config.la $(btls_static_libs)
298 libmonoruntimeincludedir = $(includedir)/mono-$(API_VER)/mono/metadata
300 libmonoruntimeinclude_HEADERS = \
307 debug-mono-symfile.h \
326 EXTRA_DIST = $(win32_sources) $(unix_sources) $(null_sources) runtime.h \
327 threadpool-ms-io-poll.c threadpool-ms-io-epoll.c threadpool-ms-io-kqueue.c sgen-dynarray.h