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