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 \
195 # These source files have compile time dependencies on GC code
196 gc_dependent_sources = \
215 sgen-marksweep-fixed.c \
216 sgen-marksweep-par.c \
217 sgen-marksweep-fixed-par.c \
231 sgen-pinning-stats.c \
236 sgen-major-copy-object.h \
237 sgen-minor-copy-object.h \
239 sgen-major-scan-object.h \
240 sgen-minor-scan-object.h \
243 sgen-nursery-allocator.c \
250 sgen-simple-nursery.c \
251 sgen-split-nursery.c \
252 sgen-memory-governor.c \
253 sgen-memory-governor.h \
255 sgen-fin-weak-hash.c \
256 sgen-layout-stats.c \
257 sgen-layout-stats.h \
260 libmonoruntime_la_SOURCES = $(common_sources) $(gc_dependent_sources) $(boehm_sources)
261 libmonoruntime_la_CFLAGS = $(BOEHM_DEFINES)
263 libmonoruntimesgen_la_SOURCES = $(common_sources) $(gc_dependent_sources) $(sgen_sources)
264 libmonoruntimesgen_la_CFLAGS = $(SGEN_DEFINES)
266 libmonoruntime_static_la_SOURCES = $(libmonoruntime_la_SOURCES)
267 libmonoruntime_static_la_LDFLAGS = -static
268 libmonoruntime_static_la_CFLAGS = $(BOEHM_DEFINES)
270 libmonoruntimesgen_static_la_SOURCES = $(libmonoruntimesgen_la_SOURCES)
271 libmonoruntimesgen_static_la_LDFLAGS = -static
272 libmonoruntimesgen_static_la_CFLAGS = $(SGEN_DEFINES)
274 libmonoruntimeincludedir = $(includedir)/mono-$(API_VER)/mono/metadata
276 libmonoruntimeinclude_HEADERS = \
283 debug-mono-symfile.h \
304 PEDUMP_DTRACE_OBJECT = pedump-dtrace.$(OBJEXT)
306 pedump-dtrace.$(OBJEXT): $(top_srcdir)/data/mono.d libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la
307 DTRACE="$(DTRACE)" DTRACEFLAGS="$(DTRACEFLAGS)" AR="$(AR)" $(SHELL) $(top_srcdir)/data/dtrace-prelink.sh \
308 --pic pedump-dtrace.$(OBJEXT) $(top_srcdir)/data/mono.d libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la
311 PEDUMP_DTRACE_OBJECT =
319 pedump_LDADD = libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la \
320 $(LIBGC_LIBS) $(GLIB_LIBS) -lm $(LIBICONV) $(PEDUMP_DTRACE_OBJECT)
323 pedump_LDFLAGS=-framework CoreFoundation
328 EXTRA_DIST = make-bundle.pl sample-bundle $(win32_sources) $(unix_sources) $(null_sources) runtime.h \
329 tpool-poll.c tpool-epoll.c tpool-kqueue.c Makefile.am.in
331 if HAS_EXTENSION_MODULE
333 Makefile.am: Makefile.am.in
340 test_sgen_qsort_SOURCES = test-sgen-qsort.c
341 test_sgen_qsort_CFLAGS = $(SGEN_DEFINES)
342 test_sgen_qsort_LDADD = libmonoruntimesgen.la ../io-layer/libwapi.la ../utils/libmonoutils.la \
343 $(LIBGC_LIBS) $(GLIB_LIBS) -lm $(LIBICONV)
345 test_sgen_qsort_LDFLAGS=-framework CoreFoundation
348 test_gc_memfuncs_SOURCES = test-gc-memfuncs.c
349 test_gc_memfuncs_CFLAGS = $(SGEN_DEFINES)
350 test_gc_memfuncs_LDADD = libmonoruntimesgen.la ../io-layer/libwapi.la ../utils/libmonoutils.la \
351 $(LIBGC_LIBS) $(GLIB_LIBS) -lm $(LIBICONV)
353 test_gc_memfuncs_LDFLAGS=-framework CoreFoundation
356 noinst_PROGRAMS = test-sgen-qsort test-gc-memfuncs
358 TESTS = test-sgen-qsort test-gc-memfuncs