[monodis] Attempt to fix the Cygwin build.
[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 else
10 metadata_lib=$(top_builddir)/mono/metadata/libmonoruntime-static.a
11 gc_lib=$(LIBGC_STATIC_LIBS)
12 endif
13
14 runtime_lib=    \
15         ../mini/$(LIBMONO_LA) \
16         $(top_builddir)/mono/io-layer/libwapi.la        \
17         $(top_builddir)/mono/utils/libmonoutils.la \
18         $(GLIB_LIBS) $(LIBICONV) \
19         $(gc_lib)
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         $(GLIB_LIBS)                    \
54         $(LIBICONV)
55
56 if PLATFORM_DARWIN
57 monodis_LDFLAGS=-framework CoreFoundation -framework Foundation
58 endif
59
60 man_MANS = monodis.1
61
62 EXTRA_DIST = $(man_MANS)