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
64 moonlight_libraries = libmonoruntimemoon.la
65 moon-do-build: libmonoruntime-static.la libmonoruntimemoon.la
67 -test -z "libmonoruntime-static.la" || rm -f libmonoruntime-static.la
68 -test -z "libmonoruntimemoon.la" || rm -f libmonoruntimemoon.la
71 if DISABLE_EXECUTABLES
72 noinst_LTLIBRARIES = $(shared_sgen_libraries) $(shared_boehm_libraries)
74 noinst_LTLIBRARIES = $(boehm_libraries) $(sgen_libraries) $(moonlight_libraries)
77 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/mono $(LIBGC_CPPFLAGS) $(GLIB_CFLAGS) -DMONO_BINDIR=\"$(bindir)/\" -DMONO_ASSEMBLIES=\"$(assembliesdir)\" -DMONO_CFG_DIR=\"$(confdir)\"
80 # Make sure any prefix changes are updated in the binaries too.
82 # assembly.c uses MONO_ASSEMBLIES
83 # mono-config.c uses MONO_CFG_DIR
85 # This won't result in many more false positives than AC_DEFINEing them
88 assembly.lo mono-config.lo: Makefile
90 CLEANFILES = mono-bundle.stamp
92 libmonoruntime_static_la_LIBADD = $(bundle_obj) $(libmonoruntime_la_LIBADD)
112 culture-info-tables.h \
114 debug-mono-symfile.h \
115 debug-mono-symfile.c \
140 mempool-internals.h \
143 metadata-internals.h \
153 mono-debug-debugger.h \
154 mono-debug-debugger.c \
160 mono-perfcounters.c \
161 mono-perfcounters.h \
162 mono-perfcounters-def.h \
168 normalization-tables.h \
184 security-core-clr.c \
185 security-core-clr.h \
197 threadpool-internals.h \
202 # These source files have compile time dependencies on GC code
203 gc_dependent_sources = \
221 sgen-pinned-allocator.c \
223 sgen-marksweep-fixed.c \
224 sgen-marksweep-par.c \
225 sgen-marksweep-fixed-par.c \
226 sgen-major-copying.c \
242 sgen-pinning-stats.c \
247 sgen-major-copy-object.h \
248 sgen-minor-copy-object.h \
250 sgen-major-scan-object.h \
251 sgen-minor-scan-object.h \
254 sgen-nursery-allocator.c \
261 sgen-simple-nursery.c \
262 sgen-split-nursery.c \
263 sgen-memory-governor.c \
264 sgen-memory-governor.h \
268 libmonoruntime_la_SOURCES = $(common_sources) $(gc_dependent_sources) $(boehm_sources)
269 libmonoruntime_la_CFLAGS = $(BOEHM_DEFINES)
272 libmonoruntimemoon_la_SOURCES = $(libmonoruntime_la_SOURCES)
274 libmonoruntimemoon_la_CFLAGS = $(MOONLIGHT_DEFINES) $(BOEHM_DEFINES)
276 libmonoruntimemoon_la_CFLAGS = $(MOONLIGHT_DEFINES) $(SGEN_DEFINES)
280 libmonoruntimesgen_la_SOURCES = $(common_sources) $(gc_dependent_sources) $(sgen_sources)
281 libmonoruntimesgen_la_CFLAGS = $(SGEN_DEFINES)
283 libmonoruntime_static_la_SOURCES = $(libmonoruntime_la_SOURCES)
284 libmonoruntime_static_la_LDFLAGS = -static
285 libmonoruntime_static_la_CFLAGS = $(BOEHM_DEFINES)
287 libmonoruntimesgen_static_la_SOURCES = $(libmonoruntimesgen_la_SOURCES)
288 libmonoruntimesgen_static_la_LDFLAGS = -static
289 libmonoruntimesgen_static_la_CFLAGS = $(SGEN_DEFINES)
291 libmonoruntimeincludedir = $(includedir)/mono-$(API_VER)/mono/metadata
293 libmonoruntimeinclude_HEADERS = \
300 debug-mono-symfile.h \
321 PEDUMP_DTRACE_OBJECT = pedump-dtrace.$(OBJEXT)
323 pedump-dtrace.$(OBJEXT): $(top_srcdir)/data/mono.d libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la
324 DTRACE="$(DTRACE)" DTRACEFLAGS="$(DTRACEFLAGS)" AR="$(AR)" $(SHELL) $(top_srcdir)/data/dtrace-prelink.sh \
325 --pic pedump-dtrace.$(OBJEXT) $(top_srcdir)/data/mono.d libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la
328 PEDUMP_DTRACE_OBJECT =
336 pedump_LDADD = libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la \
337 $(LIBGC_LIBS) $(GLIB_LIBS) -lm $(LIBICONV) $(PEDUMP_DTRACE_OBJECT)
340 pedump_LDFLAGS=-framework CoreFoundation
345 EXTRA_DIST = make-bundle.pl sample-bundle $(win32_sources) $(unix_sources) $(null_sources) runtime.h \
346 tpool-poll.c tpool-epoll.c tpool-kqueue.c