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