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
36 # libtool is not capable of creating static/shared versions of the same
37 # convenience lib, so we have to do it ourselves
40 if DISABLE_EXECUTABLES
41 shared_sgen_libraries = libmonoruntimesgen.la
44 shared_sgen_libraries = libmonoruntimesgen.la
47 sgen_libraries = $(shared_sgen_libraries) libmonoruntimesgen-static.la
51 if DISABLE_EXECUTABLES
52 shared_boehm_libraries = libmonoruntime.la
55 shared_boehm_libraries = libmonoruntime.la
58 boehm_libraries = $(shared_boehm_libraries) libmonoruntime-static.la
61 if DISABLE_EXECUTABLES
62 noinst_LTLIBRARIES = libmonoruntime-config.la $(shared_sgen_libraries) $(shared_boehm_libraries)
64 noinst_LTLIBRARIES = libmonoruntime-config.la $(boehm_libraries) $(sgen_libraries)
67 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/mono $(LIBGC_CPPFLAGS) $(GLIB_CFLAGS) $(SHARED_CFLAGS)
70 # Make sure any prefix changes are updated in the binaries too.
72 # This won't result in many more false positives than AC_DEFINEing them
75 mono-config-dirs.lo: Makefile
78 # This library is used to localize the usage of MONO_BINDIR etc. to just one source file, thus enabling
79 # ccache to work even if the value of these defines change. We need to use a convenience library since automake
80 # doesn't support per file cflags.
82 libmonoruntime_config_la_SOURCES = \
85 libmonoruntime_config_la_CPPFLAGS = $(AM_CPPFLAGS) -DMONO_BINDIR=\"$(bindir)/\" -DMONO_ASSEMBLIES=\"$(assembliesdir)\" -DMONO_CFG_DIR=\"$(confdir)\"
87 CLEANFILES = mono-bundle.stamp
109 culture-info-tables.h \
111 debug-mono-symfile.h \
112 debug-mono-symfile.c \
122 exception-internals.h \
142 mempool-internals.h \
145 metadata-internals.h \
153 mono-debug-debugger.h \
159 mono-perfcounters.c \
160 mono-perfcounters.h \
161 mono-perfcounters-def.h \
167 normalization-tables.h \
186 security-core-clr.c \
187 security-core-clr.h \
204 dynamic-image-internals.h \
206 dynamic-stream-internals.h \
208 custom-attrs-internals.h \
210 reflection-internals.h \
212 file-mmap-windows.c \
216 metadata-cross-helpers.c \
223 # These source files have compile time dependencies on GC code
224 gc_dependent_sources = \
250 sgen-bridge-internals.h \
253 sgen-tarjan-bridge.c \
260 libmonoruntime_la_SOURCES = $(common_sources) $(gc_dependent_sources) $(null_gc_sources) $(boehm_sources)
261 libmonoruntime_la_CFLAGS = $(BOEHM_DEFINES)
262 libmonoruntime_la_LIBADD = libmonoruntime-config.la
264 libmonoruntimesgen_la_SOURCES = $(common_sources) $(gc_dependent_sources) $(sgen_sources)
265 libmonoruntimesgen_la_CFLAGS = $(SGEN_DEFINES)
266 libmonoruntimesgen_la_LIBADD = libmonoruntime-config.la
268 libmonoruntime_static_la_SOURCES = $(libmonoruntime_la_SOURCES)
269 libmonoruntime_static_la_LDFLAGS = -static
270 libmonoruntime_static_la_CFLAGS = $(BOEHM_DEFINES)
271 libmonoruntime_static_la_LIBADD = $(bundle_obj) $(libmonoruntime_la_LIBADD)
273 libmonoruntimesgen_static_la_SOURCES = $(libmonoruntimesgen_la_SOURCES)
274 libmonoruntimesgen_static_la_LDFLAGS = -static
275 libmonoruntimesgen_static_la_CFLAGS = $(SGEN_DEFINES)
276 libmonoruntimesgen_static_la_LIBADD = $(libmonoruntimesgen_la_LIBADD)
278 libmonoruntimeincludedir = $(includedir)/mono-$(API_VER)/mono/metadata
280 libmonoruntimeinclude_HEADERS = \
287 debug-mono-symfile.h \
306 EXTRA_DIST = $(win32_sources) $(unix_sources) $(null_sources) runtime.h \
307 threadpool-ms-io-poll.c threadpool-ms-io-epoll.c threadpool-ms-io-kqueue.c sgen-dynarray.h