[runtime] Avoid holding the init lock while calling the cctor in mono_runtime_class_i...
[mono-project.git] / tools / monograph / Makefile.am
blob1a53e3772b7a01686881710930f90104034ccfda
2 if HOST_WIN32
3 export HOST_CC
4 endif
6 if DISABLE_EXECUTABLES
7 runtime_lib=$(top_builddir)/mono/mini/$(LIBMONO_LA) $(static_libs)
8 else
9 static_libs=    \
10         $(top_builddir)/mono/metadata/libmonoruntimesgen-static.la      \
11         $(top_builddir)/mono/utils/libmonoutils.la \
12         $(GLIB_LIBS) $(LIBICONV) \
13         $(LIBGC_STATIC_LIBS)
15 runtime_lib=$(top_builddir)/mono/mini/$(LIBMONO_LA) $(static_libs)
16 endif
18 if DISABLE_EXECUTABLES
19 bin_PROGRAMS =
20 else
21 if DISABLE_LIBRARIES
22 bin_PROGRAMS =
23 else
24 if SUPPORT_SGEN
25 bin_PROGRAMS = monograph
26 endif
27 endif
28 endif
30 AM_CPPFLAGS =                           \
31         -I$(top_srcdir)                 \
32         $(GLIB_CFLAGS)
34 monograph_LDADD = \
35         $(runtime_lib)                  \
36         $(GLIB_LIBS)                    \
37         $(LLVM_LIBS)                    \
38         $(LIBICONV)                     \
39         -lm
41 if PLATFORM_DARWIN
42 monograph_LDFLAGS=-framework CoreFoundation
43 endif
45 GRAPHS=System.Object System.Enum System.Attribute System.ValueType System.Reflection.MemberInfo
46 OUT=$(GRAPHS:=.jpeg)
48 graphs: $(OUT)
50 %.jpeg: monograph
51         ./monograph -n -o $*.png corlib.dll $*
52         convert -geometry '480x360>' $*.png $*.jpeg