Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / dis / Makefile.am
1 AM_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir)
2
3 if HOST_WIN32
4 export HOST_CC
5 endif
6
7 if SUPPORT_SGEN
8 metadata_lib=$(top_builddir)/mono/metadata/libmonoruntimesgen-static.la
9 gc_lib=$(top_builddir)/mono/sgen/libmonosgen-static.la
10 else
11 metadata_lib=$(top_builddir)/mono/metadata/libmonoruntime-static.la
12 gc_lib=$(LIBGC_STATIC_LIBS)
13 endif
14
15 runtime_lib=    \
16         $(metadata_lib) \
17         $(gc_lib)       \
18         $(top_builddir)/mono/utils/libmonoutils.la \
19         $(GLIB_LIBS) $(LIBICONV)
20
21 if DISABLE_EXECUTABLES
22 bin_PROGRAMS =
23 else
24 if DISABLE_LIBRARIES
25 bin_PROGRAMS =
26 else
27 bin_PROGRAMS = monodis
28 endif
29 endif
30
31 noinst_LIBRARIES = libmonodis.a
32
33 libmonodis_a_SOURCES =  \
34         get.c           \
35         get.h           \
36         dis-cil.c       \
37         dis-cil.h       \
38         util.c          \
39         util.h
40
41 monodis_SOURCES =       \
42         dump.c          \
43         dump.h          \
44         main.c          \
45         meta.h          \
46         declsec.c       \
47         declsec.h
48
49 monodis_LDADD =                         \
50         libmonodis.a                    \
51         $(runtime_lib)                  \
52         $(LLVM_LIBS)                    \
53         $(LLVM_LDFLAGS)                 \
54         $(GLIB_LIBS)                    \
55         $(LIBICONV)
56
57 if HOST_DARWIN
58 monodis_LDFLAGS=-framework CoreFoundation -framework Foundation
59 endif
60
61 man_MANS = monodis.1
62
63 EXTRA_DIST = $(man_MANS)