Use AM_CPPFLAGS instead of INCLUDES in Makefile.am files, as the later is no longer...
[mono.git] / mono / monograph / Makefile.am
index 9b636ee1f7f541f7a21937c293f34047f48fdfb2..d40e38b8470c561a6a2238e56c7ff442bb171294 100644 (file)
@@ -4,14 +4,25 @@ export HOST_CC
 endif
 
 if JIT_SUPPORTED
-runtime_lib=../mini/libmono-$(API_VER).la
+if !SHARED_MONO
+static_libs=   \
+       $(top_builddir)/mono/metadata/libmonoruntime-static.la  \
+       $(top_builddir)/mono/io-layer/libwapi.la        \
+       $(top_builddir)/mono/utils/libmonoutils.la \
+       $(GLIB_LIBS) $(LIBICONV) \
+       $(LIBGC_STATIC_LIBS)
+
+runtime_lib=../mini/$(LIBMONO_LA) $(static_libs)
+else
+runtime_lib=../mini/$(LIBMONO_LA)
+endif
 else
 runtime_lib=../interpreter/libmint.la
 endif
 
 bin_PROGRAMS = monograph
 
-INCLUDES =                             \
+AM_CPPFLAGS =                          \
        -I$(top_srcdir)                 \
        $(GLIB_CFLAGS)
 
@@ -22,6 +33,10 @@ monograph_LDADD = \
        $(LIBICONV)                     \
        -lm
 
+if PLATFORM_DARWIN
+monograph_LDFLAGS=-framework CoreFoundation
+endif
+
 GRAPHS=System.Object System.Enum System.Attribute System.ValueType System.Reflection.MemberInfo
 OUT=$(GRAPHS:=.jpeg)