Fix another case missed by 7e222739db7192eb0c5ec17cad18e309482e71b4.
[mono.git] / mono / monograph / Makefile.am
1
2 if HOST_WIN32
3 export HOST_CC
4 endif
5
6 if JIT_SUPPORTED
7 if DISABLE_EXECUTABLES
8 runtime_lib=../mini/$(LIBMONO_LA) $(static_libs)
9 else
10 if !SHARED_MONO
11 static_libs=    \
12         $(top_builddir)/mono/metadata/libmonoruntime-static.la  \
13         $(top_builddir)/mono/io-layer/libwapi.la        \
14         $(top_builddir)/mono/utils/libmonoutils.la \
15         $(GLIB_LIBS) $(LIBICONV) \
16         $(LIBGC_STATIC_LIBS)
17
18 runtime_lib=../mini/$(LIBMONO_LA) $(static_libs)
19 else
20 runtime_lib=../mini/$(LIBMONO_LA)
21 endif
22 endif
23 else
24 runtime_lib=../interpreter/libmint.la
25 endif
26
27 if DISABLE_LIBRARIES
28 else
29 bin_PROGRAMS = monograph
30 endif
31
32 AM_CPPFLAGS =                           \
33         -I$(top_srcdir)                 \
34         $(GLIB_CFLAGS)
35
36 monograph_LDADD = \
37         $(runtime_lib)                  \
38         $(GLIB_LIBS)                    \
39         $(LLVM_LIBS)                    \
40         $(LIBICONV)                     \
41         -lm
42
43 if PLATFORM_DARWIN
44 monograph_LDFLAGS=-framework CoreFoundation
45 endif
46
47 GRAPHS=System.Object System.Enum System.Attribute System.ValueType System.Reflection.MemberInfo
48 OUT=$(GRAPHS:=.jpeg)
49
50 graphs: $(OUT)
51
52 %.jpeg: monograph
53         ./monograph -n -o $*.png corlib.dll $*
54         convert -geometry '480x360>' $*.png $*.jpeg
55
56 EXTRA_DIST = ChangeLog
57