8 platform_sources = $(win32_sources)
10 # Use -m here. This will use / as directory separator (C:/WINNT).
11 # The files that use MONO_ASSEMBLIES and/or MONO_CFG_DIR replace the
12 # / by \ if running under WIN32.
14 assembliesdir = ${libdir}
15 confdir = ${sysconfdir}
17 assembliesdir = `cygpath -m "${libdir}"`
18 confdir = `cygpath -m "${sysconfdir}"`
21 # The mingw math.h has "extern inline" functions that dont appear in libs, so
22 # optimisation is required to actually inline them
26 assembliesdir = $(exec_prefix)/lib
27 confdir = $(sysconfdir)
34 platform_sources = $(unix_sources)
38 platform_sources += ../../support/libm/complex.c
42 btls_file_list := $(shell cat ../btls/build-shared/mono-btls-shared-lo.txt)
43 btls_static_file_list := $(shell cat ../btls/build-static/mono-btls-static-lo.txt)
44 btls_libs = $(btls_file_list)
45 btls_static_libs = $(btls_static_file_list)
46 btls_cflags = -I$(top_srcdir)/external/boringssl/include -I$(top_srcdir)/mono/btls
50 # libtool is not capable of creating static/shared versions of the same
51 # convenience lib, so we have to do it ourselves
54 if DISABLE_EXECUTABLES
55 shared_sgen_libraries = libmonoruntimesgen.la
58 shared_sgen_libraries = libmonoruntimesgen.la
61 sgen_libraries = $(shared_sgen_libraries) libmonoruntimesgen-static.la
65 if DISABLE_EXECUTABLES
66 shared_boehm_libraries = libmonoruntime.la
69 shared_boehm_libraries = libmonoruntime.la
72 boehm_libraries = $(shared_boehm_libraries) libmonoruntime-static.la
75 if DISABLE_EXECUTABLES
76 noinst_LTLIBRARIES = libmonoruntime-config.la $(shared_sgen_libraries) $(shared_boehm_libraries)
78 noinst_LTLIBRARIES = libmonoruntime-config.la $(boehm_libraries) $(sgen_libraries)
81 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/mono $(LIBGC_CPPFLAGS) $(GLIB_CFLAGS) $(SHARED_CFLAGS) $(btls_cflags)
84 # Make sure any prefix changes are updated in the binaries too.
86 # This won't result in many more false positives than AC_DEFINEing them
89 mono-config-dirs.lo: Makefile
92 # This library is used to localize the usage of MONO_BINDIR etc. to just one source file, thus enabling
93 # ccache to work even if the value of these defines change. We need to use a convenience library since automake
94 # doesn't support per file cflags.
96 libmonoruntime_config_la_SOURCES = \
99 libmonoruntime_config_la_CPPFLAGS = $(AM_CPPFLAGS) -DMONO_BINDIR=\"$(bindir)/\" -DMONO_ASSEMBLIES=\"$(assembliesdir)\" -DMONO_CFG_DIR=\"$(confdir)\"
101 CLEANFILES = mono-bundle.stamp
110 $(platform_sources) \
112 assembly-internals.h \
124 culture-info-tables.h \
126 debug-mono-symfile.h \
127 debug-mono-symfile.c \
137 exception-internals.h \
157 mempool-internals.h \
160 metadata-internals.h \
168 mono-debug-debugger.h \
174 mono-perfcounters.c \
175 mono-perfcounters.h \
176 mono-perfcounters-def.h \
182 normalization-tables.h \
201 security-core-clr.c \
202 security-core-clr.h \
219 dynamic-image-internals.h \
221 dynamic-stream-internals.h \
223 custom-attrs-internals.h \
225 reflection-internals.h \
227 file-mmap-windows.c \
231 metadata-cross-helpers.c \
239 w32handle-namespace.h \
240 w32handle-namespace.c
242 # These source files have compile time dependencies on GC code
243 gc_dependent_sources = \
269 sgen-bridge-internals.h \
272 sgen-tarjan-bridge.c \
279 libmonoruntime_la_SOURCES = $(common_sources) $(gc_dependent_sources) $(null_gc_sources) $(boehm_sources)
280 libmonoruntime_la_CFLAGS = $(BOEHM_DEFINES)
281 libmonoruntime_la_LIBADD = libmonoruntime-config.la $(btls_libs)
283 libmonoruntimesgen_la_SOURCES = $(common_sources) $(gc_dependent_sources) $(sgen_sources)
284 libmonoruntimesgen_la_CFLAGS = $(SGEN_DEFINES)
285 libmonoruntimesgen_la_LIBADD = libmonoruntime-config.la $(btls_libs)
287 libmonoruntime_static_la_SOURCES = $(libmonoruntime_la_SOURCES)
288 libmonoruntime_static_la_LDFLAGS = -static
289 libmonoruntime_static_la_CFLAGS = $(BOEHM_DEFINES)
290 libmonoruntime_static_la_LIBADD = $(bundle_obj) libmonoruntime-config.la $(btls_static_libs)
292 libmonoruntimesgen_static_la_SOURCES = $(libmonoruntimesgen_la_SOURCES)
293 libmonoruntimesgen_static_la_LDFLAGS = -static
294 libmonoruntimesgen_static_la_CFLAGS = $(SGEN_DEFINES)
295 libmonoruntimesgen_static_la_LIBADD = libmonoruntime-config.la $(btls_static_libs)
297 libmonoruntimeincludedir = $(includedir)/mono-$(API_VER)/mono/metadata
299 libmonoruntimeinclude_HEADERS = \
306 debug-mono-symfile.h \
325 EXTRA_DIST = $(win32_sources) $(unix_sources) $(null_sources) runtime.h \
326 threadpool-ms-io-poll.c threadpool-ms-io-epoll.c threadpool-ms-io-kqueue.c sgen-dynarray.h