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