[corlib] Fixed performance regression in qsort() functions
[mono.git] / mono / dis / Makefile.am
index 7cf51142868d63eff9056f097ea318c8c872d65c..9c397f4e41bb1c6c689dc5efe2ee8404efc33aaa 100644 (file)
@@ -1,8 +1,24 @@
 INCLUDES = $(GLIB_CFLAGS) -I$(top_srcdir)
 
+if HOST_WIN32
+export HOST_CC
+endif
+
+if JIT_SUPPORTED
+runtime_lib=../mini/$(LIBMONO_LA)
+else
+runtime_lib=../interpreter/libmint.la
+endif
+
+if DISABLE_EXECUTABLES
+bin_PROGRAMS =
+else
+if SUPPORT_BOEHM
 bin_PROGRAMS = monodis
+endif
+endif
 
-lib_LIBRARIES = libmonodis.a
+noinst_LIBRARIES = libmonodis.a
 
 libmonodis_a_SOURCES = \
        get.c           \
@@ -16,15 +32,20 @@ monodis_SOURCES =   \
        dump.c          \
        dump.h          \
        main.c          \
-       meta.h
+       meta.h          \
+       declsec.c       \
+       declsec.h
 
 monodis_LDADD =                        \
        libmonodis.a                    \
-       ../metadata/libmetadata.a       \
-       ../io-layer/libwapi.a           \
-       ../utils/libmonoutils.a         \
-       $(GMODULE_LIBS)                 \
-       $(GLIB_LIBS) 
+       $(runtime_lib)                  \
+       $(LLVM_LIBS)                    \
+       $(GLIB_LIBS)                    \
+       $(LIBICONV)
+
+if PLATFORM_DARWIN
+monodis_LDFLAGS=-framework CoreFoundation
+endif
 
 man_MANS = monodis.1