Merge pull request #271 from pruiz/xamarin-bug-4108
[mono.git] / mono / dis / Makefile.am
1 INCLUDES = $(GLIB_CFLAGS) -I$(top_srcdir)
2
3 if HOST_WIN32
4 export HOST_CC
5 endif
6
7 if JIT_SUPPORTED
8 runtime_lib=../mini/$(LIBMONO_LA)
9 else
10 runtime_lib=../interpreter/libmint.la
11 endif
12
13 if DISABLE_EXECUTABLES
14 bin_PROGRAMS =
15 else
16 if SUPPORT_BOEHM
17 bin_PROGRAMS = monodis
18 endif
19 endif
20
21 noinst_LIBRARIES = libmonodis.a
22
23 libmonodis_a_SOURCES =  \
24         get.c           \
25         get.h           \
26         dis-cil.c       \
27         dis-cil.h       \
28         util.c          \
29         util.h
30
31 monodis_SOURCES =       \
32         dump.c          \
33         dump.h          \
34         main.c          \
35         meta.h          \
36         declsec.c       \
37         declsec.h
38
39 monodis_LDADD =                         \
40         libmonodis.a                    \
41         $(runtime_lib)                  \
42         $(LLVM_LIBS)                    \
43         $(GLIB_LIBS)                    \
44         $(LIBICONV)
45
46 if PLATFORM_DARWIN
47 monodis_LDFLAGS=-framework CoreFoundation
48 endif
49
50 man_MANS = monodis.1
51
52 EXTRA_DIST = $(man_MANS)