55 lines
986 B
Makefile
Raw Normal View History

if HOST_WIN32
export HOST_CC
endif
if DISABLE_EXECUTABLES
runtime_lib=$(top_builddir)/mono/mini/$(LIBMONO_LA) $(static_libs)
else
static_libs= \
$(top_builddir)/mono/metadata/libmonoruntimesgen-static.la \
$(top_builddir)/mono/utils/libmonoutils.la \
$(GLIB_LIBS) $(LIBICONV) \
$(LIBGC_STATIC_LIBS)
runtime_lib=$(top_builddir)/mono/mini/$(LIBMONO_LA) $(static_libs)
endif
if DISABLE_EXECUTABLES
bin_PROGRAMS =
else
if DISABLE_LIBRARIES
bin_PROGRAMS =
else
if SUPPORT_SGEN
bin_PROGRAMS = monograph
endif
endif
endif
AM_CPPFLAGS = \
-I$(top_srcdir) \
$(GLIB_CFLAGS)
monograph_LDADD = \
$(runtime_lib) \
$(GLIB_LIBS) \
$(LLVM_LIBS) \
$(LIBICONV) \
-lm
if HOST_DARWIN
monograph_LDFLAGS=-framework CoreFoundation
endif
GRAPHS=System.Object System.Enum System.Attribute System.ValueType System.Reflection.MemberInfo
OUT=$(GRAPHS:=.jpeg)
graphs: $(OUT)
%.jpeg: monograph
./monograph -n -o $*.png corlib.dll $*
convert -geometry '480x360>' $*.png $*.jpeg