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