3 # Use -m here. This will use / as directory separator (C:/WINNT).
4 # The files that use MONO_ASSEMBLIES and/or MONO_CFG_DIR replace the
5 # / by \ if running under WIN32.
6 assembliesdir = `cygpath -m "${libdir}"`
7 confdir = `cygpath -m "${sysconfdir}"`
8 # The mingw math.h has "extern inline" functions that dont appear in libs, so
9 # optimisation is required to actually inline them
11 PLATFORM_LIB = ../os/libmonoos.la
13 assembliesdir = $(libdir)
14 confdir = $(sysconfdir)
20 # libtool is not capable of creating static/shared versions of the same
21 # convenience lib, so we have to do it ourselves
23 noinst_LTLIBRARIES = libmetadata.la libmonoruntime.la libmetadata-static.la libmonoruntime-static.la
26 INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/mono $(LIBGC_CFLAGS) $(GLIB_CFLAGS) $(GMODULE_CFLAGS) $(ICU_CFLAGS) \
27 -DMONO_ASSEMBLIES=\"$(assembliesdir)\" -DMONO_CFG_DIR=\"$(confdir)\"
30 bundle_srcs = mono-bundle.s mono-bundle.h
31 bundle_obj = mono-bundle.o
32 #BUILT_SOURCES = $(bundle_srcs)
34 $(bundle_obj): $(bundle_srcs)
35 $(bundle_srcs): mono-bundle.stamp
36 @if test -f $@; then :; else rm -f mono-bundle.stamp; $(MAKE) mono-bundle.stamp; fi
37 mono-bundle.stamp: $(BUNDLE_FILE) $(srcdir)/make-bundle.pl
39 perl $(srcdir)/make-bundle.pl $(BUNDLE_FILE) mono-bundle.h mono-bundle.s
44 CLEANFILES = mono-bundle.stamp
46 libmetadata_la_LIBADD = $(bundle_obj) $(PLATFORM_LIB)
48 libmonoruntime_static_la_LIBADD = $(libmonoruntime_la_LIBADD)
49 libmetadata_static_la_LIBADD = $(libmetadata_la_LIBADD)
51 libmonoruntime_la_SOURCES = \
78 debug-mono-symfile.h \
79 debug-mono-symfile.c \
82 mono-debug-debugger.h \
83 mono-debug-debugger.c \
103 culture-info-tables.h
105 libmetadata_la_SOURCES = \
114 metadata-internals.h \
129 libmetadata_static_la_SOURCES = $(libmetadata_la_SOURCES)
130 libmonoruntime_static_la_SOURCES = $(libmonoruntime_la_SOURCES)
132 libmetadata_static_la_LDFLAGS = -static
133 libmonoruntime_static_la_LDFLAGS = -static
135 libmetadataincludedir = $(includedir)/mono/metadata
136 libmonoruntimeincludedir = $(includedir)/mono/metadata
138 libmonoruntimeinclude_HEADERS = \
141 mono-debug-debugger.h \
142 debug-mono-symfile.h \
146 libmetadatainclude_HEADERS = \
168 pedump_LDADD = libmetadata.la ../io-layer/libwapi.la ../utils/libmonoutils.la \
169 $(LIBGC_LIBS) $(GLIB_LIBS) $(GMODULE_LIBS) -lm
171 EXTRA_DIST = make-bundle.pl sample-bundle