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)
38 # libtool is not capable of creating static/shared versions of the same
39 # convenience lib, so we have to do it ourselves
42 if DISABLE_EXECUTABLES
43 shared_sgen_libraries = libmonoruntimesgen.la
46 shared_sgen_libraries = libmonoruntimesgen.la
49 sgen_libraries = $(shared_sgen_libraries) libmonoruntimesgen-static.la
53 if DISABLE_EXECUTABLES
54 shared_boehm_libraries = libmonoruntime.la
57 shared_boehm_libraries = libmonoruntime.la
60 boehm_libraries = $(shared_boehm_libraries) libmonoruntime-static.la
63 if DISABLE_EXECUTABLES
64 noinst_LTLIBRARIES = $(shared_sgen_libraries) $(shared_boehm_libraries)
66 noinst_LTLIBRARIES = $(boehm_libraries) $(sgen_libraries)
69 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/mono $(LIBGC_CPPFLAGS) $(GLIB_CFLAGS) -DMONO_BINDIR=\"$(bindir)/\" -DMONO_ASSEMBLIES=\"$(assembliesdir)\" -DMONO_CFG_DIR=\"$(confdir)\"
72 # Make sure any prefix changes are updated in the binaries too.
74 # assembly.c uses MONO_ASSEMBLIES
75 # mono-config.c uses MONO_CFG_DIR
77 # This won't result in many more false positives than AC_DEFINEing them
80 assembly.lo mono-config.lo: Makefile
82 CLEANFILES = mono-bundle.stamp
84 libmonoruntime_static_la_LIBADD = $(bundle_obj) $(libmonoruntime_la_LIBADD)
104 culture-info-tables.h \
106 debug-mono-symfile.h \
107 debug-mono-symfile.c \
133 mempool-internals.h \
136 metadata-internals.h \
146 mono-debug-debugger.h \
147 mono-debug-debugger.c \
153 mono-perfcounters.c \
154 mono-perfcounters.h \
155 mono-perfcounters-def.h \
161 normalization-tables.h \
177 security-core-clr.c \
178 security-core-clr.h \
190 threadpool-internals.h \
194 reflection-internals.h
196 # These source files have compile time dependencies on GC code
197 gc_dependent_sources = \
216 sgen-marksweep-fixed.c \
217 sgen-marksweep-par.c \
218 sgen-marksweep-fixed-par.c \
225 sgen-tarjan-bridge.c \
235 sgen-pinning-stats.c \
240 sgen-major-copy-object.h \
241 sgen-minor-copy-object.h \
243 sgen-major-scan-object.h \
244 sgen-minor-scan-object.h \
247 sgen-nursery-allocator.c \
254 sgen-simple-nursery.c \
255 sgen-split-nursery.c \
256 sgen-memory-governor.c \
257 sgen-memory-governor.h \
259 sgen-fin-weak-hash.c \
260 sgen-layout-stats.c \
261 sgen-layout-stats.h \
265 libmonoruntime_la_SOURCES = $(common_sources) $(gc_dependent_sources) $(boehm_sources)
266 libmonoruntime_la_CFLAGS = $(BOEHM_DEFINES)
268 libmonoruntimesgen_la_SOURCES = $(common_sources) $(gc_dependent_sources) $(sgen_sources)
269 libmonoruntimesgen_la_CFLAGS = $(SGEN_DEFINES)
271 libmonoruntime_static_la_SOURCES = $(libmonoruntime_la_SOURCES)
272 libmonoruntime_static_la_LDFLAGS = -static
273 libmonoruntime_static_la_CFLAGS = $(BOEHM_DEFINES)
275 libmonoruntimesgen_static_la_SOURCES = $(libmonoruntimesgen_la_SOURCES)
276 libmonoruntimesgen_static_la_LDFLAGS = -static
277 libmonoruntimesgen_static_la_CFLAGS = $(SGEN_DEFINES)
279 libmonoruntimeincludedir = $(includedir)/mono-$(API_VER)/mono/metadata
281 libmonoruntimeinclude_HEADERS = \
288 debug-mono-symfile.h \
309 PEDUMP_DTRACE_OBJECT = pedump-dtrace.$(OBJEXT)
311 pedump-dtrace.$(OBJEXT): $(top_srcdir)/data/mono.d libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la
312 DTRACE="$(DTRACE)" DTRACEFLAGS="$(DTRACEFLAGS)" AR="$(AR)" $(SHELL) $(top_srcdir)/data/dtrace-prelink.sh \
313 --pic pedump-dtrace.$(OBJEXT) $(top_srcdir)/data/mono.d libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la
316 PEDUMP_DTRACE_OBJECT =
324 pedump_LDADD = libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la \
325 $(LIBGC_LIBS) $(GLIB_LIBS) -lm $(LIBICONV) $(PEDUMP_DTRACE_OBJECT)
328 pedump_LDFLAGS=-framework CoreFoundation -framework Foundation
333 EXTRA_DIST = make-bundle.pl sample-bundle $(win32_sources) $(unix_sources) $(null_sources) runtime.h \
334 tpool-poll.c tpool-epoll.c tpool-kqueue.c Makefile.am.in
336 if HAS_EXTENSION_MODULE
338 Makefile.am: Makefile.am.in