1include $(top_srcdir)/Makefile.tool.am 2 3SUBDIRS += perf 4 5EXTRA_DIST = \ 6 docs/ms-manual.xml \ 7 docs/ms_print-manpage.xml 8 9#---------------------------------------------------------------------------- 10# Headers, etc 11#---------------------------------------------------------------------------- 12 13bin_SCRIPTS = ms_print 14 15#---------------------------------------------------------------------------- 16# massif-<platform> 17#---------------------------------------------------------------------------- 18 19noinst_PROGRAMS = massif-@VGCONF_ARCH_PRI@-@VGCONF_OS@ 20if VGCONF_HAVE_PLATFORM_SEC 21noinst_PROGRAMS += massif-@VGCONF_ARCH_SEC@-@VGCONF_OS@ 22endif 23 24MASSIF_SOURCES_COMMON = ms_main.c 25 26massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_SOURCES = \ 27 $(MASSIF_SOURCES_COMMON) 28massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CPPFLAGS = \ 29 $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) 30massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS = \ 31 $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) 32massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_DEPENDENCIES = \ 33 $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_PRI_CAPS@) 34massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD = \ 35 $(TOOL_LDADD_@VGCONF_PLATFORM_PRI_CAPS@) 36massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS = \ 37 $(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) 38massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \ 39 $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \ 40 @VALT_LOAD_ADDRESS_PRI@ \ 41 $(LINK) \ 42 $(massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \ 43 $(massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS) 44 45if VGCONF_HAVE_PLATFORM_SEC 46massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_SOURCES = \ 47 $(MASSIF_SOURCES_COMMON) 48massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CPPFLAGS = \ 49 $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) 50massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS = \ 51 $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) 52massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_DEPENDENCIES = \ 53 $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_SEC_CAPS@) 54massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD = \ 55 $(TOOL_LDADD_@VGCONF_PLATFORM_SEC_CAPS@) 56massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS = \ 57 $(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) 58massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \ 59 $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \ 60 @VALT_LOAD_ADDRESS_SEC@ \ 61 $(LINK) \ 62 $(massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \ 63 $(massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS) 64endif 65 66#---------------------------------------------------------------------------- 67# vgpreload_massif-<platform>.so 68#---------------------------------------------------------------------------- 69 70noinst_PROGRAMS += vgpreload_massif-@VGCONF_ARCH_PRI@-@VGCONF_OS@.so 71if VGCONF_HAVE_PLATFORM_SEC 72noinst_PROGRAMS += vgpreload_massif-@VGCONF_ARCH_SEC@-@VGCONF_OS@.so 73endif 74 75if VGCONF_OS_IS_DARWIN 76noinst_DSYMS = $(noinst_PROGRAMS) 77endif 78 79vgpreload_massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_SOURCES = 80vgpreload_massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_CPPFLAGS = \ 81 $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) 82vgpreload_massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_CFLAGS = \ 83 $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) $(AM_CFLAGS_PIC) 84vgpreload_massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_DEPENDENCIES = \ 85 $(LIBREPLACEMALLOC_@VGCONF_PLATFORM_PRI_CAPS@) 86vgpreload_massif_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_LDFLAGS = \ 87 $(PRELOAD_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) \ 88 $(LIBREPLACEMALLOC_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) 89 90if VGCONF_HAVE_PLATFORM_SEC 91vgpreload_massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_SOURCES = 92vgpreload_massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_CPPFLAGS = \ 93 $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) 94vgpreload_massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_CFLAGS = \ 95 $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) $(AM_CFLAGS_PIC) 96vgpreload_massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_DEPENDENCIES = \ 97 $(LIBREPLACEMALLOC_@VGCONF_PLATFORM_SEC_CAPS@) 98vgpreload_massif_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_LDFLAGS = \ 99 $(PRELOAD_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) \ 100 $(LIBREPLACEMALLOC_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) 101endif 102 103