2019-12-10 18:00:56 +00:00
|
|
|
if !ENABLE_MSVC_ONLY
|
2016-11-10 13:04:39 +00:00
|
|
|
|
|
|
|
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/mono $(LIBGC_CPPFLAGS) $(GLIB_CFLAGS) $(SHARED_CFLAGS)
|
|
|
|
|
2018-08-07 15:19:03 +00:00
|
|
|
glib_libs = $(top_builddir)/mono/eglib/libeglib.la
|
|
|
|
|
2016-11-10 13:04:39 +00:00
|
|
|
if DISABLE_EXECUTABLES
|
|
|
|
bin_PROGRAMS =
|
|
|
|
else
|
|
|
|
if DISABLE_LIBRARIES
|
|
|
|
bin_PROGRAMS =
|
|
|
|
else
|
|
|
|
if SUPPORT_SGEN
|
|
|
|
bin_PROGRAMS = pedump
|
2019-02-04 20:11:37 +00:00
|
|
|
noinst_LIBRARIES = libpedump.a
|
2016-11-10 13:04:39 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2019-12-10 18:00:56 +00:00
|
|
|
endif # !ENABLE_MSVC_ONLY
|
|
|
|
|
2019-02-04 20:11:37 +00:00
|
|
|
CFLAGS = $(filter-out @CXX_REMOVE_CFLAGS@, @CFLAGS@)
|
2019-12-10 18:00:56 +00:00
|
|
|
|
|
|
|
if !ENABLE_MSVC_ONLY
|
|
|
|
|
2019-02-04 20:11:37 +00:00
|
|
|
libpedump_a_CFLAGS = @CXX_ADD_CFLAGS@
|
2016-11-10 13:04:39 +00:00
|
|
|
|
2019-02-04 20:11:37 +00:00
|
|
|
pedump_SOURCES =
|
|
|
|
libpedump_a_SOURCES = pedump.c
|
2016-11-10 13:04:39 +00:00
|
|
|
pedump_LDADD = \
|
2019-02-04 20:11:37 +00:00
|
|
|
libpedump_a-pedump.$(OBJEXT) \
|
2018-04-24 09:31:23 +00:00
|
|
|
$(top_builddir)/mono/metadata/libmonoruntimesgen.la \
|
|
|
|
$(top_builddir)/mono/sgen/libmonosgen.la \
|
2016-11-10 13:04:39 +00:00
|
|
|
$(top_builddir)/mono/utils/libmonoutils.la \
|
|
|
|
$(LLVM_LIBS) \
|
|
|
|
$(LLVM_LDFLAGS) \
|
2018-08-07 15:19:03 +00:00
|
|
|
$(glib_libs)
|
2016-11-10 13:04:39 +00:00
|
|
|
|
2017-10-19 20:04:20 +00:00
|
|
|
if HOST_DARWIN
|
2016-11-10 13:04:39 +00:00
|
|
|
pedump_LDFLAGS=-framework CoreFoundation -framework Foundation
|
|
|
|
endif
|
2017-10-19 20:04:20 +00:00
|
|
|
|
2019-12-10 18:00:56 +00:00
|
|
|
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
|
|
|
|
|
2017-10-19 20:04:20 +00:00
|
|
|
#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
|
2018-08-07 15:19:03 +00:00
|
|
|
make -C . all
|