Merge pull request #3678 from mono/seq-read
[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/io-layer/libwapi.la        \
12         $(top_builddir)/mono/utils/libmonoutils.la \
13         $(GLIB_LIBS) $(LIBICONV) \
14         $(LIBGC_STATIC_LIBS)
15
16 runtime_lib=$(top_builddir)/mono/mini/$(LIBMONO_LA) $(static_libs)
17 endif
18
19 if DISABLE_EXECUTABLES
20 bin_PROGRAMS =
21 else
22 if DISABLE_LIBRARIES
23 bin_PROGRAMS =
24 else
25 if SUPPORT_SGEN
26 bin_PROGRAMS = monograph
27 endif
28 endif
29 endif
30
31 AM_CPPFLAGS =                           \
32         -I$(top_srcdir)                 \
33         $(GLIB_CFLAGS)
34
35 monograph_LDADD = \
36         $(runtime_lib)                  \
37         $(GLIB_LIBS)                    \
38         $(LLVM_LIBS)                    \
39         $(LIBICONV)                     \
40         -lm
41
42 if PLATFORM_DARWIN
43 monograph_LDFLAGS=-framework CoreFoundation
44 endif
45
46 GRAPHS=System.Object System.Enum System.Attribute System.ValueType System.Reflection.MemberInfo
47 OUT=$(GRAPHS:=.jpeg)
48
49 graphs: $(OUT)
50
51 %.jpeg: monograph
52         ./monograph -n -o $*.png corlib.dll $*
53         convert -geometry '480x360>' $*.png $*.jpeg
54
55