Fix monodis on darwin
[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-$(API_VER).la
9 else
10 runtime_lib=../interpreter/libmint.la
11 endif
12
13 bin_PROGRAMS = monodis
14
15 noinst_LIBRARIES = libmonodis.a
16
17 libmonodis_a_SOURCES =  \
18         get.c           \
19         get.h           \
20         dis-cil.c       \
21         dis-cil.h       \
22         util.c          \
23         util.h
24
25 monodis_SOURCES =       \
26         dump.c          \
27         dump.h          \
28         main.c          \
29         meta.h          \
30         declsec.c       \
31         declsec.h
32
33 monodis_LDADD =                         \
34         libmonodis.a                    \
35         $(runtime_lib)                  \
36         $(LLVM_LIBS)                    \
37         $(GLIB_LIBS) 
38
39 if PLATFORM_DARWIN
40 monodis_LDFLAGS=-framework CoreFoundation
41 endif
42
43 man_MANS = monodis.1
44
45 EXTRA_DIST = $(man_MANS)