1 include $(top_srcdir)/Makefile.tool.am 2 3 EXTRA_DIST = \ 4 docs/hg-manual.xml \ 5 README_MSMProp2.txt \ 6 README_YARD.txt 7 8 #---------------------------------------------------------------------------- 9 # Headers, etc 10 #---------------------------------------------------------------------------- 11 12 pkginclude_HEADERS = helgrind.h 13 14 noinst_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 26 noinst_PROGRAMS = helgrind-@VGCONF_ARCH_PRI@-@VGCONF_OS@ 27 if VGCONF_HAVE_PLATFORM_SEC 28 noinst_PROGRAMS += helgrind-@VGCONF_ARCH_SEC@-@VGCONF_OS@ 29 endif 30 31 HELGRIND_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 40 helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_SOURCES = \ 41 $(HELGRIND_SOURCES_COMMON) 42 helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CPPFLAGS = \ 43 $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) 44 helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS = \ 45 $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) -O2 46 helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_DEPENDENCIES = \ 47 $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_PRI_CAPS@) 48 helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD = \ 49 $(TOOL_LDADD_@VGCONF_PLATFORM_PRI_CAPS@) 50 helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS = \ 51 $(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) 52 helgrind_@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 59 if VGCONF_HAVE_PLATFORM_SEC 60 helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_SOURCES = \ 61 $(HELGRIND_SOURCES_COMMON) 62 helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CPPFLAGS = \ 63 $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) 64 helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS = \ 65 $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) -O2 66 helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_DEPENDENCIES = \ 67 $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_SEC_CAPS@) 68 helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD = \ 69 $(TOOL_LDADD_@VGCONF_PLATFORM_SEC_CAPS@) 70 helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS = \ 71 $(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) 72 helgrind_@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) 78 endif 79 80 #---------------------------------------------------------------------------- 81 # vgpreload_helgrind-<platform>.so 82 #---------------------------------------------------------------------------- 83 84 noinst_PROGRAMS += vgpreload_helgrind-@VGCONF_ARCH_PRI@-@VGCONF_OS@.so 85 if VGCONF_HAVE_PLATFORM_SEC 86 noinst_PROGRAMS += vgpreload_helgrind-@VGCONF_ARCH_SEC@-@VGCONF_OS@.so 87 endif 88 89 if VGCONF_OS_IS_DARWIN 90 noinst_DSYMS = $(noinst_PROGRAMS) 91 endif 92 93 VGPRELOAD_HELGRIND_SOURCES_COMMON = hg_intercepts.c 94 95 vgpreload_helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_SOURCES = \ 96 $(VGPRELOAD_HELGRIND_SOURCES_COMMON) 97 vgpreload_helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_CPPFLAGS = \ 98 $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) 99 vgpreload_helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_CFLAGS = \ 100 $(AM_CFLAGS_PSO_@VGCONF_PLATFORM_PRI_CAPS@) 101 vgpreload_helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_DEPENDENCIES = \ 102 $(LIBREPLACEMALLOC_@VGCONF_PLATFORM_PRI_CAPS@) 103 vgpreload_helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_LDFLAGS = \ 104 $(PRELOAD_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) \ 105 $(LIBREPLACEMALLOC_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) 106 107 if VGCONF_HAVE_PLATFORM_SEC 108 vgpreload_helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_SOURCES = \ 109 $(VGPRELOAD_HELGRIND_SOURCES_COMMON) 110 vgpreload_helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_CPPFLAGS = \ 111 $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) 112 vgpreload_helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_CFLAGS = \ 113 $(AM_CFLAGS_PSO_@VGCONF_PLATFORM_SEC_CAPS@) 114 vgpreload_helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_DEPENDENCIES = \ 115 $(LIBREPLACEMALLOC_@VGCONF_PLATFORM_SEC_CAPS@) 116 vgpreload_helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_LDFLAGS = \ 117 $(PRELOAD_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) \ 118 $(LIBREPLACEMALLOC_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) 119 endif 120 121