Bump xsp to get correct version number
[mono-project.git] / tools / pedump / Makefile.am
blobd05b053f848b992548148be51577ba6f8881da90
1 if !ENABLE_MSVC_ONLY
3 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/mono $(LIBGC_CPPFLAGS) $(GLIB_CFLAGS) $(SHARED_CFLAGS)
5 glib_libs = $(top_builddir)/mono/eglib/libeglib.la
7 if DISABLE_EXECUTABLES
8 bin_PROGRAMS =
9 else
10 if DISABLE_LIBRARIES
11 bin_PROGRAMS =
12 else
13 if SUPPORT_SGEN
14 bin_PROGRAMS = pedump
15 noinst_LIBRARIES = libpedump.a
16 endif
17 endif
18 endif
20 endif # !ENABLE_MSVC_ONLY
22 CFLAGS = $(filter-out @CXX_REMOVE_CFLAGS@, @CFLAGS@)
24 if !ENABLE_MSVC_ONLY
26 libpedump_a_CFLAGS = @CXX_ADD_CFLAGS@
28 pedump_SOURCES =
29 libpedump_a_SOURCES = pedump.c
30 pedump_LDADD =                  \
31         libpedump_a-pedump.$(OBJEXT) \
32         $(top_builddir)/mono/metadata/libmonoruntimesgen.la \
33         $(top_builddir)/mono/sgen/libmonosgen.la \
34         $(top_builddir)/mono/utils/libmonoutils.la \
35         $(LLVM_LIBS)                    \
36         $(LLVM_LDFLAGS)                 \
37         $(glib_libs)
39 if HOST_DARWIN
40 pedump_LDFLAGS=-framework CoreFoundation -framework Foundation
41 endif
43 endif # !ENABLE_MSVC_ONLY
45 if ENABLE_MSVC_ONLY
47 if SUPPORT_SGEN
48 mono_bin_suffix = sgen
49 else
50 mono_bin_suffix =
51 endif
53 all-local:
55         make -C $(top_srcdir)/msvc pedump
56         cp -f $(mono_msvc_build_bin_dir)/pedump-$(mono_bin_suffix)$(EXEEXT) ./pedump$(EXEEXT)
58 clean-local:
60         make -C $(top_srcdir)/msvc clean-pedump
61         rm ./pedump$(EXEEXT)
63 endif # ENABLE_MSVC_ONLY
65 #Helper target to rebuild metadata as well, it's useful when working on the verifier as its source still on metadata
66 md:
67         make -C ../../mono/metadata all
68         make -C . all