Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pedump/Makefile.am')
-rw-r--r--tools/pedump/Makefile.am28
1 files changed, 28 insertions, 0 deletions
diff --git a/tools/pedump/Makefile.am b/tools/pedump/Makefile.am
index f45fce5b1e1..d05b053f848 100644
--- a/tools/pedump/Makefile.am
+++ b/tools/pedump/Makefile.am
@@ -1,3 +1,4 @@
+if !ENABLE_MSVC_ONLY
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/mono $(LIBGC_CPPFLAGS) $(GLIB_CFLAGS) $(SHARED_CFLAGS)
@@ -16,7 +17,12 @@ endif
endif
endif
+endif # !ENABLE_MSVC_ONLY
+
CFLAGS = $(filter-out @CXX_REMOVE_CFLAGS@, @CFLAGS@)
+
+if !ENABLE_MSVC_ONLY
+
libpedump_a_CFLAGS = @CXX_ADD_CFLAGS@
pedump_SOURCES =
@@ -34,6 +40,28 @@ if HOST_DARWIN
pedump_LDFLAGS=-framework CoreFoundation -framework Foundation
endif
+endif # !ENABLE_MSVC_ONLY
+
+if ENABLE_MSVC_ONLY
+
+if SUPPORT_SGEN
+mono_bin_suffix = sgen
+else
+mono_bin_suffix =
+endif
+
+all-local:
+
+ make -C $(top_srcdir)/msvc pedump
+ cp -f $(mono_msvc_build_bin_dir)/pedump-$(mono_bin_suffix)$(EXEEXT) ./pedump$(EXEEXT)
+
+clean-local:
+
+ make -C $(top_srcdir)/msvc clean-pedump
+ rm ./pedump$(EXEEXT)
+
+endif # ENABLE_MSVC_ONLY
+
#Helper target to rebuild metadata as well, it's useful when working on the verifier as its source still on metadata
md:
make -C ../../mono/metadata all