Simplify building with the Android NDK.
[mono.git] / mono / dis / Makefile.am
index 9bec7ec8a3c8256a634f52a2c57e94035d874a06..78539b7b1bc926459b928ca04539188a9bf23393 100644 (file)
@@ -1,6 +1,18 @@
 INCLUDES = $(GLIB_CFLAGS) -I$(top_srcdir)
 
+if HOST_WIN32
+export HOST_CC
+endif
+
+if JIT_SUPPORTED
+runtime_lib=../mini/libmono-$(API_VER).la
+else
+runtime_lib=../interpreter/libmint.la
+endif
+
+if SUPPORT_BOEHM
 bin_PROGRAMS = monodis
+endif
 
 noinst_LIBRARIES = libmonodis.a
 
@@ -16,15 +28,20 @@ monodis_SOURCES =   \
        dump.c          \
        dump.h          \
        main.c          \
-       meta.h
+       meta.h          \
+       declsec.c       \
+       declsec.h
 
 monodis_LDADD =                        \
        libmonodis.a                    \
-       ../metadata/libmetadata.la      \
-       ../io-layer/libwapi.la          \
-       ../utils/libmonoutils.la        \
-       $(GMODULE_LIBS)                 \
-       $(GLIB_LIBS) 
+       $(runtime_lib)                  \
+       $(LLVM_LIBS)                    \
+       $(GLIB_LIBS)                    \
+       $(LIBICONV)
+
+if PLATFORM_DARWIN
+monodis_LDFLAGS=-framework CoreFoundation
+endif
 
 man_MANS = monodis.1