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
55 btls_file_list := $(shell cat ../btls/build-shared/mono-btls-shared-lo.txt)
56 btls_static_file_list := $(shell cat ../btls/build-static/mono-btls-static-lo.txt)
57 btls_libs = $(btls_file_list)
58 btls_static_libs = $(btls_static_file_list)
59 btls_cflags = -I$(top_srcdir)/external/boringssl/include -I$(top_srcdir)/mono/btls
64 # libtool is not capable of creating static/shared versions of the same
65 # convenience lib, so we have to do it ourselves
68 if DISABLE_EXECUTABLES
69 shared_sgen_libraries = libmonoruntimesgen.la
72 shared_sgen_libraries = libmonoruntimesgen.la
75 sgen_libraries = $(shared_sgen_libraries) libmonoruntimesgen-static.la
79 if DISABLE_EXECUTABLES
80 shared_boehm_libraries = libmonoruntime.la
83 shared_boehm_libraries = libmonoruntime.la
86 boehm_libraries = $(shared_boehm_libraries) libmonoruntime-static.la
89 if DISABLE_EXECUTABLES
90 noinst_LTLIBRARIES = libmonoruntime-config.la $(shared_sgen_libraries) $(shared_boehm_libraries)
92 noinst_LTLIBRARIES = libmonoruntime-config.la $(boehm_libraries) $(sgen_libraries)
95 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/mono $(LIBGC_CPPFLAGS) $(GLIB_CFLAGS) $(SHARED_CFLAGS) $(btls_cflags)
98 # Make sure any prefix changes are updated in the binaries too.
100 # This won't result in many more false positives than AC_DEFINEing them
103 mono-config-dirs.lo: Makefile
106 # This library is used to localize the usage of MONO_BINDIR etc. to just one source file, thus enabling
107 # ccache to work even if the value of these defines change. We need to use a convenience library since automake
108 # doesn't support per file cflags.
110 libmonoruntime_config_la_SOURCES = \
113 libmonoruntime_config_la_CPPFLAGS = $(AM_CPPFLAGS) -DMONO_BINDIR=\"$(bindir)/\" -DMONO_ASSEMBLIES=\"$(assembliesdir)\" -DMONO_CFG_DIR=\"$(confdir)\" -DMONO_RELOC_LIBDIR=\"../$(reloc_libdir)\"
115 CLEANFILES = mono-bundle.stamp
124 $(platform_sources) \
126 assembly-internals.h \
139 culture-info-tables.h \
141 debug-mono-symfile.h \
142 debug-mono-symfile.c \
152 exception-internals.h \
155 file-io-internals.h \
172 marshal-internals.h \
175 mempool-internals.h \
178 metadata-internals.h \
186 mono-debug-debugger.h \
192 mono-perfcounters.c \
193 mono-perfcounters.h \
194 mono-perfcounters-def.h \
200 normalization-tables.h \
210 process-internals.h \
220 security-core-clr.c \
221 security-core-clr.h \
238 dynamic-image-internals.h \
240 dynamic-stream-internals.h \
242 custom-attrs-internals.h \
244 reflection-internals.h \
246 file-mmap-windows.c \
250 metadata-cross-helpers.c \
258 w32handle-namespace.h \
259 w32handle-namespace.c
261 # These source files have compile time dependencies on GC code
262 gc_dependent_sources = \
284 sgen-bridge-internals.h \
287 sgen-tarjan-bridge.c \
294 libmonoruntime_la_SOURCES = $(common_sources) $(gc_dependent_sources) $(null_gc_sources) $(boehm_sources)
295 libmonoruntime_la_CFLAGS = $(BOEHM_DEFINES)
296 libmonoruntime_la_LIBADD = libmonoruntime-config.la $(btls_libs)
298 libmonoruntimesgen_la_SOURCES = $(common_sources) $(gc_dependent_sources) $(sgen_sources)
299 libmonoruntimesgen_la_CFLAGS = $(SGEN_DEFINES)
300 libmonoruntimesgen_la_LIBADD = libmonoruntime-config.la $(btls_libs)
302 libmonoruntime_static_la_SOURCES = $(libmonoruntime_la_SOURCES)
303 libmonoruntime_static_la_LDFLAGS = -static
304 libmonoruntime_static_la_CFLAGS = $(BOEHM_DEFINES)
305 libmonoruntime_static_la_LIBADD = $(bundle_obj) libmonoruntime-config.la $(btls_static_libs)
307 libmonoruntimesgen_static_la_SOURCES = $(libmonoruntimesgen_la_SOURCES)
308 libmonoruntimesgen_static_la_LDFLAGS = -static
309 libmonoruntimesgen_static_la_CFLAGS = $(SGEN_DEFINES)
310 libmonoruntimesgen_static_la_LIBADD = libmonoruntime-config.la $(btls_static_libs)
312 libmonoruntimeincludedir = $(includedir)/mono-$(API_VER)/mono/metadata
314 libmonoruntimeinclude_HEADERS = \
321 debug-mono-symfile.h \
340 EXTRA_DIST = $(win32_sources) $(unix_sources) $(null_sources) runtime.h \
341 threadpool-ms-io-poll.c threadpool-ms-io-epoll.c threadpool-ms-io-kqueue.c sgen-dynarray.h