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)
107 culture-info-tables.h \
109 debug-mono-symfile.h \
110 debug-mono-symfile.c \
137 mempool-internals.h \
140 metadata-internals.h \
150 mono-debug-debugger.h \
156 mono-perfcounters.c \
157 mono-perfcounters.h \
158 mono-perfcounters-def.h \
164 normalization-tables.h \
181 security-core-clr.c \
182 security-core-clr.h \
194 threadpool-internals.h \
198 reflection-internals.h \
200 file-mmap-windows.c \
204 metadata-cross-helpers.c
207 # These source files have compile time dependencies on GC code
208 gc_dependent_sources = \
233 sgen-tarjan-bridge.c \
241 sgen-pointer-queue.c \
242 sgen-pointer-queue.h \
245 sgen-pinning-stats.c \
250 sgen-major-copy-object.h \
251 sgen-minor-copy-object.h \
253 sgen-marksweep-scan-object-concurrent.h \
254 sgen-minor-scan-object.h \
255 sgen-marksweep-drain-gray-stack.h \
258 sgen-nursery-allocator.c \
265 sgen-simple-nursery.c \
266 sgen-split-nursery.c \
267 sgen-memory-governor.c \
268 sgen-memory-governor.h \
270 sgen-fin-weak-hash.c \
271 sgen-layout-stats.c \
272 sgen-layout-stats.h \
275 sgen-tagged-pointer.h
277 libmonoruntime_la_SOURCES = $(common_sources) $(gc_dependent_sources) $(null_gc_sources) $(boehm_sources)
278 libmonoruntime_la_CFLAGS = $(BOEHM_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 -framework Foundation
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