Makefile.am 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. if !ENABLE_MSVC_ONLY
  2. AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/mono $(LIBGC_CPPFLAGS) $(GLIB_CFLAGS) $(SHARED_CFLAGS)
  3. glib_libs = $(top_builddir)/mono/eglib/libeglib.la
  4. if DISABLE_EXECUTABLES
  5. bin_PROGRAMS =
  6. else
  7. if DISABLE_LIBRARIES
  8. bin_PROGRAMS =
  9. else
  10. if SUPPORT_SGEN
  11. bin_PROGRAMS = pedump
  12. noinst_LIBRARIES = libpedump.a
  13. endif
  14. endif
  15. endif
  16. endif # !ENABLE_MSVC_ONLY
  17. CFLAGS = $(filter-out @CXX_REMOVE_CFLAGS@, @CFLAGS@)
  18. if !ENABLE_MSVC_ONLY
  19. libpedump_a_CFLAGS = @CXX_ADD_CFLAGS@
  20. pedump_SOURCES =
  21. libpedump_a_SOURCES = pedump.c
  22. pedump_LDADD = \
  23. libpedump_a-pedump.$(OBJEXT) \
  24. $(top_builddir)/mono/metadata/libmonoruntimesgen.la \
  25. $(top_builddir)/mono/sgen/libmonosgen.la \
  26. $(top_builddir)/mono/utils/libmonoutils.la \
  27. $(LLVM_LIBS) \
  28. $(LLVM_LDFLAGS) \
  29. $(glib_libs)
  30. if HOST_DARWIN
  31. pedump_LDFLAGS=-framework CoreFoundation -framework Foundation
  32. endif
  33. endif # !ENABLE_MSVC_ONLY
  34. if ENABLE_MSVC_ONLY
  35. if SUPPORT_SGEN
  36. mono_bin_suffix = sgen
  37. else
  38. mono_bin_suffix =
  39. endif
  40. all-local:
  41. make -C $(top_srcdir)/msvc pedump
  42. cp -f $(mono_msvc_build_bin_dir)/pedump-$(mono_bin_suffix)$(EXEEXT) ./pedump$(EXEEXT)
  43. clean-local:
  44. make -C $(top_srcdir)/msvc clean-pedump
  45. rm ./pedump$(EXEEXT)
  46. endif # ENABLE_MSVC_ONLY
  47. #Helper target to rebuild metadata as well, it's useful when working on the verifier as its source still on metadata
  48. md:
  49. make -C ../../mono/metadata all
  50. make -C . all