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 \
136 mempool-internals.h \
139 metadata-internals.h \
149 mono-debug-debugger.h \
150 mono-debug-debugger.c \
156 mono-perfcounters.c \
157 mono-perfcounters.h \
158 mono-perfcounters-def.h \
164 normalization-tables.h \
179 security-core-clr.c \
180 security-core-clr.h \
192 threadpool-internals.h \
196 reflection-internals.h \
198 file-mmap-windows.c \
202 metadata-cross-helpers.c
205 # These source files have compile time dependencies on GC code
206 gc_dependent_sources = \
231 sgen-tarjan-bridge.c \
239 sgen-pointer-queue.c \
240 sgen-pointer-queue.h \
243 sgen-pinning-stats.c \
248 sgen-major-copy-object.h \
249 sgen-minor-copy-object.h \
251 sgen-major-scan-object.h \
252 sgen-minor-scan-object.h \
255 sgen-nursery-allocator.c \
262 sgen-simple-nursery.c \
263 sgen-split-nursery.c \
264 sgen-memory-governor.c \
265 sgen-memory-governor.h \
267 sgen-fin-weak-hash.c \
268 sgen-layout-stats.c \
269 sgen-layout-stats.h \
272 sgen-tagged-pointer.h
274 libmonoruntime_la_SOURCES = $(common_sources) $(gc_dependent_sources) $(null_gc_sources) $(boehm_sources)
275 libmonoruntime_la_CFLAGS = $(BOEHM_DEFINES)
277 libmonoruntimesgen_la_SOURCES = $(common_sources) $(gc_dependent_sources) $(sgen_sources)
278 libmonoruntimesgen_la_CFLAGS = $(SGEN_DEFINES)
280 libmonoruntime_static_la_SOURCES = $(libmonoruntime_la_SOURCES)
281 libmonoruntime_static_la_LDFLAGS = -static
282 libmonoruntime_static_la_CFLAGS = $(BOEHM_DEFINES)
284 libmonoruntimesgen_static_la_SOURCES = $(libmonoruntimesgen_la_SOURCES)
285 libmonoruntimesgen_static_la_LDFLAGS = -static
286 libmonoruntimesgen_static_la_CFLAGS = $(SGEN_DEFINES)
288 libmonoruntimeincludedir = $(includedir)/mono-$(API_VER)/mono/metadata
290 libmonoruntimeinclude_HEADERS = \
297 debug-mono-symfile.h \
318 PEDUMP_DTRACE_OBJECT = pedump-dtrace.$(OBJEXT)
320 pedump-dtrace.$(OBJEXT): $(top_srcdir)/data/mono.d libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la
321 DTRACE="$(DTRACE)" DTRACEFLAGS="$(DTRACEFLAGS)" AR="$(AR)" $(SHELL) $(top_srcdir)/data/dtrace-prelink.sh \
322 --pic pedump-dtrace.$(OBJEXT) $(top_srcdir)/data/mono.d libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la
325 PEDUMP_DTRACE_OBJECT =
333 pedump_LDADD = libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la \
334 $(LIBGC_LIBS) $(GLIB_LIBS) -lm $(LIBICONV) $(PEDUMP_DTRACE_OBJECT)
337 pedump_LDFLAGS=-framework CoreFoundation -framework Foundation
342 EXTRA_DIST = make-bundle.pl sample-bundle $(win32_sources) $(unix_sources) $(null_sources) runtime.h \
343 tpool-poll.c tpool-epoll.c tpool-kqueue.c