1include $(top_srcdir)/Makefile.tool.am 2 3EXTRA_DIST = \ 4 docs/hg-manual.xml \ 5 README_MSMProp2.txt \ 6 README_YARD.txt 7 8#---------------------------------------------------------------------------- 9# Headers, etc 10#---------------------------------------------------------------------------- 11 12pkginclude_HEADERS = helgrind.h 13 14noinst_HEADERS = \ 15 hg_addrdescr.h \ 16 hg_basics.h \ 17 hg_errors.h \ 18 hg_lock_n_thread.h \ 19 hg_wordset.h \ 20 libhb.h 21 22#---------------------------------------------------------------------------- 23# helgrind-<platform> 24#---------------------------------------------------------------------------- 25 26noinst_PROGRAMS = helgrind-@VGCONF_ARCH_PRI@-@VGCONF_OS@ 27if VGCONF_HAVE_PLATFORM_SEC 28noinst_PROGRAMS += helgrind-@VGCONF_ARCH_SEC@-@VGCONF_OS@ 29endif 30 31HELGRIND_SOURCES_COMMON = \ 32 hg_addrdescr.c \ 33 hg_basics.c \ 34 hg_errors.c \ 35 hg_lock_n_thread.c \ 36 hg_main.c \ 37 hg_wordset.c \ 38 libhb_core.c 39 40helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_SOURCES = \ 41 $(HELGRIND_SOURCES_COMMON) 42helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CPPFLAGS = \ 43 $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) 44helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS = \ 45 $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) -O2 46helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_DEPENDENCIES = \ 47 $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_PRI_CAPS@) 48helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD = \ 49 $(TOOL_LDADD_@VGCONF_PLATFORM_PRI_CAPS@) 50helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS = \ 51 $(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) 52helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \ 53 $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \ 54 @VALT_LOAD_ADDRESS_PRI@ \ 55 $(LINK) \ 56 $(helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \ 57 $(helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS) 58 59if VGCONF_HAVE_PLATFORM_SEC 60helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_SOURCES = \ 61 $(HELGRIND_SOURCES_COMMON) 62helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CPPFLAGS = \ 63 $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) 64helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS = \ 65 $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) -O2 66helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_DEPENDENCIES = \ 67 $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_SEC_CAPS@) 68helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD = \ 69 $(TOOL_LDADD_@VGCONF_PLATFORM_SEC_CAPS@) 70helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS = \ 71 $(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) 72helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \ 73 $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \ 74 @VALT_LOAD_ADDRESS_SEC@ \ 75 $(LINK) \ 76 $(helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \ 77 $(helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS) 78endif 79 80#---------------------------------------------------------------------------- 81# vgpreload_helgrind-<platform>.so 82#---------------------------------------------------------------------------- 83 84noinst_PROGRAMS += vgpreload_helgrind-@VGCONF_ARCH_PRI@-@VGCONF_OS@.so 85if VGCONF_HAVE_PLATFORM_SEC 86noinst_PROGRAMS += vgpreload_helgrind-@VGCONF_ARCH_SEC@-@VGCONF_OS@.so 87endif 88 89if VGCONF_OS_IS_DARWIN 90noinst_DSYMS = $(noinst_PROGRAMS) 91endif 92 93VGPRELOAD_HELGRIND_SOURCES_COMMON = hg_intercepts.c 94 95vgpreload_helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_SOURCES = \ 96 $(VGPRELOAD_HELGRIND_SOURCES_COMMON) 97vgpreload_helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_CPPFLAGS = \ 98 $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) 99vgpreload_helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_CFLAGS = \ 100 $(AM_CFLAGS_PSO_@VGCONF_PLATFORM_PRI_CAPS@) 101vgpreload_helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_DEPENDENCIES = \ 102 $(LIBREPLACEMALLOC_@VGCONF_PLATFORM_PRI_CAPS@) 103vgpreload_helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_LDFLAGS = \ 104 $(PRELOAD_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) \ 105 $(LIBREPLACEMALLOC_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) 106 107if VGCONF_HAVE_PLATFORM_SEC 108vgpreload_helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_SOURCES = \ 109 $(VGPRELOAD_HELGRIND_SOURCES_COMMON) 110vgpreload_helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_CPPFLAGS = \ 111 $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) 112vgpreload_helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_CFLAGS = \ 113 $(AM_CFLAGS_PSO_@VGCONF_PLATFORM_SEC_CAPS@) 114vgpreload_helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_DEPENDENCIES = \ 115 $(LIBREPLACEMALLOC_@VGCONF_PLATFORM_SEC_CAPS@) 116vgpreload_helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_LDFLAGS = \ 117 $(PRELOAD_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) \ 118 $(LIBREPLACEMALLOC_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) 119endif 120 121