4 console-win32-internals.h \
6 file-io-windows-internals.h \
8 icall-windows-internals.h \
10 marshal-windows-internals.h \
11 mono-security-windows.c \
12 mono-security-windows-internals.h \
14 process-windows-internals.h \
16 w32semaphore-win32.c \
20 platform_sources = $(win32_sources)
22 # Use -m here. This will use / as directory separator (C:/WINNT).
23 # The files that use MONO_ASSEMBLIES and/or MONO_CFG_DIR replace the
24 # / by \ if running under WIN32.
26 assembliesdir = ${libdir}
27 confdir = ${sysconfdir}
29 assembliesdir = `cygpath -m "${libdir}"`
30 confdir = `cygpath -m "${sysconfdir}"`
33 # The mingw math.h has "extern inline" functions that dont appear in libs, so
34 # optimisation is required to actually inline them
38 assembliesdir = $(exec_prefix)/lib
39 confdir = $(sysconfdir)
46 platform_sources = $(unix_sources)
50 platform_sources += ../../support/libm/complex.c
54 btls_file_list := $(shell cat ../btls/build-shared/mono-btls-shared-lo.txt)
55 btls_static_file_list := $(shell cat ../btls/build-static/mono-btls-static-lo.txt)
56 btls_libs = $(btls_file_list)
57 btls_static_libs = $(btls_static_file_list)
58 btls_cflags = -I$(top_srcdir)/external/boringssl/include -I$(top_srcdir)/mono/btls
62 # libtool is not capable of creating static/shared versions of the same
63 # convenience lib, so we have to do it ourselves
66 if DISABLE_EXECUTABLES
67 shared_sgen_libraries = libmonoruntimesgen.la
70 shared_sgen_libraries = libmonoruntimesgen.la
73 sgen_libraries = $(shared_sgen_libraries) libmonoruntimesgen-static.la
77 if DISABLE_EXECUTABLES
78 shared_boehm_libraries = libmonoruntime.la
81 shared_boehm_libraries = libmonoruntime.la
84 boehm_libraries = $(shared_boehm_libraries) libmonoruntime-static.la
87 if DISABLE_EXECUTABLES
88 noinst_LTLIBRARIES = libmonoruntime-config.la $(shared_sgen_libraries) $(shared_boehm_libraries)
90 noinst_LTLIBRARIES = libmonoruntime-config.la $(boehm_libraries) $(sgen_libraries)
93 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/mono $(LIBGC_CPPFLAGS) $(GLIB_CFLAGS) $(SHARED_CFLAGS) $(btls_cflags)
96 # Make sure any prefix changes are updated in the binaries too.
98 # This won't result in many more false positives than AC_DEFINEing them
101 mono-config-dirs.lo: Makefile
104 # This library is used to localize the usage of MONO_BINDIR etc. to just one source file, thus enabling
105 # ccache to work even if the value of these defines change. We need to use a convenience library since automake
106 # doesn't support per file cflags.
108 libmonoruntime_config_la_SOURCES = \
111 libmonoruntime_config_la_CPPFLAGS = $(AM_CPPFLAGS) -DMONO_BINDIR=\"$(bindir)/\" -DMONO_ASSEMBLIES=\"$(assembliesdir)\" -DMONO_CFG_DIR=\"$(confdir)\" -DMONO_RELOC_LIBDIR=\"../$(reloc_libdir)\"
113 CLEANFILES = mono-bundle.stamp
122 $(platform_sources) \
124 assembly-internals.h \
137 culture-info-tables.h \
139 debug-mono-symfile.h \
140 debug-mono-symfile.c \
150 exception-internals.h \
153 file-io-internals.h \
170 marshal-internals.h \
173 mempool-internals.h \
176 metadata-internals.h \
184 mono-debug-debugger.h \
190 mono-perfcounters.c \
191 mono-perfcounters.h \
192 mono-perfcounters-def.h \
198 normalization-tables.h \
208 process-internals.h \
218 security-core-clr.c \
219 security-core-clr.h \
236 dynamic-image-internals.h \
238 dynamic-stream-internals.h \
240 custom-attrs-internals.h \
242 reflection-internals.h \
244 file-mmap-windows.c \
248 metadata-cross-helpers.c \
256 w32handle-namespace.h \
257 w32handle-namespace.c
259 # These source files have compile time dependencies on GC code
260 gc_dependent_sources = \
286 sgen-bridge-internals.h \
289 sgen-tarjan-bridge.c \
296 libmonoruntime_la_SOURCES = $(common_sources) $(gc_dependent_sources) $(null_gc_sources) $(boehm_sources)
297 libmonoruntime_la_CFLAGS = $(BOEHM_DEFINES)
298 libmonoruntime_la_LIBADD = libmonoruntime-config.la $(btls_libs)
300 libmonoruntimesgen_la_SOURCES = $(common_sources) $(gc_dependent_sources) $(sgen_sources)
301 libmonoruntimesgen_la_CFLAGS = $(SGEN_DEFINES)
302 libmonoruntimesgen_la_LIBADD = libmonoruntime-config.la $(btls_libs)
304 libmonoruntime_static_la_SOURCES = $(libmonoruntime_la_SOURCES)
305 libmonoruntime_static_la_LDFLAGS = -static
306 libmonoruntime_static_la_CFLAGS = $(BOEHM_DEFINES)
307 libmonoruntime_static_la_LIBADD = $(bundle_obj) libmonoruntime-config.la $(btls_static_libs)
309 libmonoruntimesgen_static_la_SOURCES = $(libmonoruntimesgen_la_SOURCES)
310 libmonoruntimesgen_static_la_LDFLAGS = -static
311 libmonoruntimesgen_static_la_CFLAGS = $(SGEN_DEFINES)
312 libmonoruntimesgen_static_la_LIBADD = libmonoruntime-config.la $(btls_static_libs)
314 libmonoruntimeincludedir = $(includedir)/mono-$(API_VER)/mono/metadata
316 libmonoruntimeinclude_HEADERS = \
323 debug-mono-symfile.h \
342 EXTRA_DIST = $(win32_sources) $(unix_sources) $(null_sources) runtime.h \
343 threadpool-ms-io-poll.c threadpool-ms-io-epoll.c threadpool-ms-io-kqueue.c sgen-dynarray.h