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
43 shared_sgen_libraries = libmonoruntimesgen.la
45 sgen_libraries = $(shared_sgen_libraries) libmonoruntimesgen-static.la
50 shared_boehm_libraries = libmonoruntime.la
52 boehm_libraries = $(shared_boehm_libraries) libmonoruntime-static.la
56 moonlight_libraries = libmonoruntimemoon.la
57 moon-do-build: libmonoruntime-static.la libmonoruntimemoon.la
59 -test -z "libmonoruntime-static.la" || rm -f libmonoruntime-static.la
60 -test -z "libmonoruntimemoon.la" || rm -f libmonoruntimemoon.la
63 noinst_LTLIBRARIES = $(boehm_libraries) $(sgen_libraries) $(moonlight_libraries)
65 INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/mono $(LIBGC_CPPFLAGS) $(GLIB_CFLAGS) -DMONO_BINDIR=\"$(bindir)/\" -DMONO_ASSEMBLIES=\"$(assembliesdir)\" -DMONO_CFG_DIR=\"$(confdir)\"
68 # Make sure any prefix changes are updated in the binaries too.
70 # assembly.c uses MONO_ASSEMBLIES
71 # mono-config.c uses MONO_CFG_DIR
73 # This won't result in many more false positives than AC_DEFINEing them
76 assembly.lo mono-config.lo: Makefile
78 CLEANFILES = mono-bundle.stamp
80 libmonoruntime_static_la_LIBADD = $(bundle_obj) $(libmonoruntime_la_LIBADD)
88 libmonoruntime_la_SOURCES = \
105 culture-info-tables.h \
107 debug-mono-symfile.h \
108 debug-mono-symfile.c \
135 mempool-internals.h \
138 metadata-internals.h \
148 mono-debug-debugger.h \
149 mono-debug-debugger.c \
156 mono-perfcounters.c \
157 mono-perfcounters.h \
158 mono-perfcounters-def.h \
165 normalization-tables.h \
183 security-core-clr.c \
184 security-core-clr.h \
192 sgen-pinned-allocator.c \
194 sgen-marksweep-fixed.c \
195 sgen-marksweep-par.c \
196 sgen-marksweep-fixed-par.c \
197 sgen-major-copying.c \
213 sgen-pinning-stats.c \
218 sgen-major-copy-object.h \
219 sgen-major-scan-object.h \
222 sgen-nursery-allocator.c \
237 threadpool-internals.h \
242 libmonoruntime_la_CFLAGS = $(BOEHM_DEFINES)
245 libmonoruntimemoon_la_SOURCES = $(libmonoruntime_la_SOURCES)
247 libmonoruntimemoon_la_CFLAGS = $(MOONLIGHT_DEFINES) $(BOEHM_DEFINES)
249 libmonoruntimemoon_la_CFLAGS = $(MOONLIGHT_DEFINES) $(SGEN_DEFINES)
253 libmonoruntimesgen_la_SOURCES = $(libmonoruntime_la_SOURCES)
254 libmonoruntimesgen_la_CFLAGS = $(SGEN_DEFINES)
256 libmonoruntime_static_la_SOURCES = $(libmonoruntime_la_SOURCES)
257 libmonoruntime_static_la_LDFLAGS = -static
258 libmonoruntime_static_la_CFLAGS = $(BOEHM_DEFINES)
260 libmonoruntimesgen_static_la_SOURCES = $(libmonoruntime_la_SOURCES)
261 libmonoruntimesgen_static_la_LDFLAGS = -static
262 libmonoruntimesgen_static_la_CFLAGS = $(SGEN_DEFINES)
264 libmonoruntimeincludedir = $(includedir)/mono-$(API_VER)/mono/metadata
266 libmonoruntimeinclude_HEADERS = \
273 debug-mono-symfile.h \
294 PEDUMP_DTRACE_OBJECT = pedump-dtrace.$(OBJEXT)
296 pedump-dtrace.$(OBJEXT): $(top_srcdir)/data/mono.d libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la
297 DTRACE="$(DTRACE)" DTRACEFLAGS="$(DTRACEFLAGS)" AR="$(AR)" $(SHELL) $(top_srcdir)/data/dtrace-prelink.sh \
298 --pic pedump-dtrace.$(OBJEXT) $(top_srcdir)/data/mono.d libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la
301 PEDUMP_DTRACE_OBJECT =
309 pedump_LDADD = libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la \
310 $(LIBGC_LIBS) $(GLIB_LIBS) -lm $(LIBICONV) $(PEDUMP_DTRACE_OBJECT)
313 pedump_LDFLAGS=-framework CoreFoundation
318 EXTRA_DIST = make-bundle.pl sample-bundle $(win32_sources) $(unix_sources) $(null_sources) $(sgen_sources) runtime.h \
319 tpool-poll.c tpool-epoll.c tpool-kqueue.c