# libtool is not capable of creating static/shared versions of the same
# convenience lib, so we have to do it ourselves
#
-noinst_LTLIBRARIES = libmonoruntime.la libmonoruntime-static.la
+if SUPPORT_SGEN
+sgen_libraries = libmonoruntimesgen.la libmonoruntimesgen-static.la
+endif
+
+noinst_LTLIBRARIES = libmonoruntime.la libmonoruntime-static.la $(sgen_libraries)
INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/mono $(LIBGC_CFLAGS) $(GLIB_CFLAGS) -DMONO_BINDIR=\"$(bindir)/\" -DMONO_ASSEMBLIES=\"$(assembliesdir)\" -DMONO_CFG_DIR=\"$(confdir)\"
sgen-gray.c \
sgen-pinning.c \
sgen-pinning-stats.c \
- sgen-marksweep.c
+ sgen-marksweep.c \
+ sgen-los.c \
+ sgen-protocol.c
libmonoruntime_la_SOURCES = \
$(platform_sources) \
mono-debug-debugger.c \
mono-endian.c \
mono-endian.h \
+ mono-hash.c \
+ mono-hash.h \
mono-mlist.c \
mono-mlist.h \
mono-perfcounters.c \
verify-internals.h \
wrapper-types.h
-libmonoruntime_static_la_SOURCES = $(libmonoruntime_la_SOURCES)
+libmonoruntime_la_CFLAGS = $(BOEHM_DEFINES)
+libmonoruntimesgen_la_SOURCES = $(libmonoruntime_la_SOURCES)
+libmonoruntimesgen_la_CFLAGS = $(SGEN_DEFINES)
+
+libmonoruntime_static_la_SOURCES = $(libmonoruntime_la_SOURCES)
libmonoruntime_static_la_LDFLAGS = -static
+libmonoruntime_static_la_CFLAGS = $(BOEHM_DEFINES)
+
+libmonoruntimesgen_static_la_SOURCES = $(libmonoruntime_la_SOURCES)
+libmonoruntimesgen_static_la_LDFLAGS = -static
+libmonoruntimesgen_static_la_CFLAGS = $(SGEN_DEFINES)
libmonoruntimeincludedir = $(includedir)/mono-$(API_VER)/mono/metadata