[io-layer] Extract error (#4279)
[mono.git] / tools / monograph / Makefile.am
1
2 if HOST_WIN32
3 export HOST_CC
4 endif
5
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)
14
15 runtime_lib=$(top_builddir)/mono/mini/$(LIBMONO_LA) $(static_libs)
16 endif
17
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
29
30 AM_CPPFLAGS =                           \
31         -I$(top_srcdir)                 \
32         $(GLIB_CFLAGS)
33
34 monograph_LDADD = \
35         $(runtime_lib)                  \
36         $(GLIB_LIBS)                    \
37         $(LLVM_LIBS)                    \
38         $(LIBICONV)                     \
39         -lm
40
41 if PLATFORM_DARWIN
42 monograph_LDFLAGS=-framework CoreFoundation
43 endif
44
45 GRAPHS=System.Object System.Enum System.Attribute System.ValueType System.Reflection.MemberInfo
46 OUT=$(GRAPHS:=.jpeg)
47
48 graphs: $(OUT)
49
50 %.jpeg: monograph
51         ./monograph -n -o $*.png corlib.dll $*
52         convert -geometry '480x360>' $*.png $*.jpeg
53
54