nethercote | 4388a40 | 2004-09-01 23:20:49 +0000 | [diff] [blame] | 1 | include $(top_srcdir)/Makefile.tool.am |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 2 | |
njn | 29a5c01 | 2009-05-06 06:15:55 +0000 | [diff] [blame] | 3 | SUBDIRS += perf |
| 4 | |
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 5 | noinst_PROGRAMS = |
njn | 7fd6d38 | 2009-01-22 21:56:32 +0000 | [diff] [blame] | 6 | if VGCONF_PLATFORMS_INCLUDE_X86_LINUX |
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 7 | noinst_PROGRAMS += memcheck-x86-linux vgpreload_memcheck-x86-linux.so |
| 8 | endif |
njn | 7fd6d38 | 2009-01-22 21:56:32 +0000 | [diff] [blame] | 9 | if VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX |
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 10 | noinst_PROGRAMS += memcheck-amd64-linux vgpreload_memcheck-amd64-linux.so |
| 11 | endif |
njn | 7fd6d38 | 2009-01-22 21:56:32 +0000 | [diff] [blame] | 12 | if VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX |
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 13 | noinst_PROGRAMS += memcheck-ppc32-linux vgpreload_memcheck-ppc32-linux.so |
| 14 | endif |
njn | 7fd6d38 | 2009-01-22 21:56:32 +0000 | [diff] [blame] | 15 | if VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX |
sewardj | 2c48c7b | 2005-11-29 13:05:56 +0000 | [diff] [blame] | 16 | noinst_PROGRAMS += memcheck-ppc64-linux vgpreload_memcheck-ppc64-linux.so |
| 17 | endif |
njn | 7fd6d38 | 2009-01-22 21:56:32 +0000 | [diff] [blame] | 18 | if VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5 |
sewardj | 1eff82b | 2006-10-17 00:56:43 +0000 | [diff] [blame] | 19 | noinst_PROGRAMS += memcheck-ppc32-aix5 vgpreload_memcheck-ppc32-aix5.so |
| 20 | endif |
njn | 7fd6d38 | 2009-01-22 21:56:32 +0000 | [diff] [blame] | 21 | if VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5 |
sewardj | 1eff82b | 2006-10-17 00:56:43 +0000 | [diff] [blame] | 22 | noinst_PROGRAMS += memcheck-ppc64-aix5 vgpreload_memcheck-ppc64-aix5.so |
| 23 | endif |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 24 | |
njn | 1d0825f | 2006-03-27 11:37:07 +0000 | [diff] [blame] | 25 | VGPRELOAD_MEMCHECK_SOURCES_COMMON = mc_replace_strmem.c |
fitzhardinge | 98abfc7 | 2003-12-16 02:05:15 +0000 | [diff] [blame] | 26 | |
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 27 | vgpreload_memcheck_x86_linux_so_SOURCES = $(VGPRELOAD_MEMCHECK_SOURCES_COMMON) |
| 28 | vgpreload_memcheck_x86_linux_so_CPPFLAGS = $(AM_CPPFLAGS_X86_LINUX) |
| 29 | vgpreload_memcheck_x86_linux_so_CFLAGS = $(AM_CFLAGS_X86_LINUX) $(AM_CFLAGS_PIC) -O2 |
| 30 | vgpreload_memcheck_x86_linux_so_CCASFLAGS = $(AM_CCASFLAGS_X86_LINUX) |
| 31 | vgpreload_memcheck_x86_linux_so_DEPENDENCIES = $(LIBREPLACEMALLOC_X86_LINUX) |
| 32 | vgpreload_memcheck_x86_linux_so_LDFLAGS = \ |
| 33 | $(PRELOAD_LDFLAGS_X86_LINUX) \ |
| 34 | $(LIBREPLACEMALLOC_LDFLAGS_X86_LINUX) |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 35 | |
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 36 | vgpreload_memcheck_amd64_linux_so_SOURCES = $(VGPRELOAD_MEMCHECK_SOURCES_COMMON) |
| 37 | vgpreload_memcheck_amd64_linux_so_CPPFLAGS = $(AM_CPPFLAGS_AMD64_LINUX) |
| 38 | vgpreload_memcheck_amd64_linux_so_CFLAGS = $(AM_CFLAGS_AMD64_LINUX) $(AM_CFLAGS_PIC) -O2 |
| 39 | vgpreload_memcheck_amd64_linux_so_CCASFLAGS = $(AM_CCASFLAGS_AMD64_LINUX) |
| 40 | vgpreload_memcheck_amd64_linux_so_DEPENDENCIES = $(LIBREPLACEMALLOC_AMD64_LINUX) |
| 41 | vgpreload_memcheck_amd64_linux_so_LDFLAGS = \ |
| 42 | $(PRELOAD_LDFLAGS_AMD64_LINUX) \ |
| 43 | $(LIBREPLACEMALLOC_LDFLAGS_AMD64_LINUX) |
| 44 | |
| 45 | vgpreload_memcheck_ppc32_linux_so_SOURCES = $(VGPRELOAD_MEMCHECK_SOURCES_COMMON) |
| 46 | vgpreload_memcheck_ppc32_linux_so_CPPFLAGS = $(AM_CPPFLAGS_PPC32_LINUX) |
| 47 | vgpreload_memcheck_ppc32_linux_so_CFLAGS = $(AM_CFLAGS_PPC32_LINUX) $(AM_CFLAGS_PIC) -O2 |
| 48 | vgpreload_memcheck_ppc32_linux_so_CCASFLAGS = $(AM_CCASFLAGS_PPC32_LINUX) |
| 49 | vgpreload_memcheck_ppc32_linux_so_DEPENDENCIES = $(LIBREPLACEMALLOC_PPC32_LINUX) |
| 50 | vgpreload_memcheck_ppc32_linux_so_LDFLAGS = \ |
| 51 | $(PRELOAD_LDFLAGS_PPC32_LINUX) \ |
| 52 | $(LIBREPLACEMALLOC_LDFLAGS_PPC32_LINUX) |
| 53 | |
sewardj | 2c48c7b | 2005-11-29 13:05:56 +0000 | [diff] [blame] | 54 | vgpreload_memcheck_ppc64_linux_so_SOURCES = $(VGPRELOAD_MEMCHECK_SOURCES_COMMON) |
| 55 | vgpreload_memcheck_ppc64_linux_so_CPPFLAGS = $(AM_CPPFLAGS_PPC64_LINUX) |
| 56 | vgpreload_memcheck_ppc64_linux_so_CFLAGS = $(AM_CFLAGS_PPC64_LINUX) $(AM_CFLAGS_PIC) -O2 |
| 57 | vgpreload_memcheck_ppc64_linux_so_CCASFLAGS = $(AM_CCASFLAGS_PPC64_LINUX) |
| 58 | vgpreload_memcheck_ppc64_linux_so_DEPENDENCIES = $(LIBREPLACEMALLOC_PPC64_LINUX) |
| 59 | vgpreload_memcheck_ppc64_linux_so_LDFLAGS = \ |
| 60 | $(PRELOAD_LDFLAGS_PPC64_LINUX) \ |
| 61 | $(LIBREPLACEMALLOC_LDFLAGS_PPC64_LINUX) |
| 62 | |
sewardj | 1eff82b | 2006-10-17 00:56:43 +0000 | [diff] [blame] | 63 | vgpreload_memcheck_ppc32_aix5_so_SOURCES = $(VGPRELOAD_MEMCHECK_SOURCES_COMMON) |
| 64 | vgpreload_memcheck_ppc32_aix5_so_CPPFLAGS = $(AM_CPPFLAGS_PPC32_AIX5) |
| 65 | vgpreload_memcheck_ppc32_aix5_so_CFLAGS = $(AM_CFLAGS_PPC32_AIX5) $(AM_CFLAGS_PIC) -O2 |
| 66 | vgpreload_memcheck_ppc32_aix5_so_CCASFLAGS = $(AM_CCASFLAGS_PPC32_AIX5) |
| 67 | vgpreload_memcheck_ppc32_aix5_so_DEPENDENCIES = $(LIBREPLACEMALLOC_PPC32_AIX5) |
| 68 | vgpreload_memcheck_ppc32_aix5_so_LDFLAGS = \ |
| 69 | $(PRELOAD_LDFLAGS_PPC32_AIX5) \ |
| 70 | $(LIBREPLACEMALLOC_LDFLAGS_PPC32_AIX5) |
| 71 | |
| 72 | vgpreload_memcheck_ppc64_aix5_so_SOURCES = $(VGPRELOAD_MEMCHECK_SOURCES_COMMON) |
| 73 | vgpreload_memcheck_ppc64_aix5_so_CPPFLAGS = $(AM_CPPFLAGS_PPC64_AIX5) |
| 74 | vgpreload_memcheck_ppc64_aix5_so_CFLAGS = $(AM_CFLAGS_PPC64_AIX5) $(AM_CFLAGS_PIC) -O2 |
| 75 | vgpreload_memcheck_ppc64_aix5_so_CCASFLAGS = $(AM_CCASFLAGS_PPC64_AIX5) |
| 76 | vgpreload_memcheck_ppc64_aix5_so_DEPENDENCIES = $(LIBREPLACEMALLOC_PPC64_AIX5) |
| 77 | vgpreload_memcheck_ppc64_aix5_so_LDFLAGS = \ |
| 78 | $(PRELOAD_LDFLAGS_PPC64_AIX5) \ |
| 79 | $(LIBREPLACEMALLOC_LDFLAGS_PPC64_AIX5) |
| 80 | |
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 81 | MEMCHECK_SOURCES_COMMON = \ |
njn | 1d0825f | 2006-03-27 11:37:07 +0000 | [diff] [blame] | 82 | mc_leakcheck.c \ |
| 83 | mc_malloc_wrappers.c \ |
njn | 86f12dc | 2005-03-14 01:16:05 +0000 | [diff] [blame] | 84 | mc_main.c \ |
sewardj | 7cf4e6b | 2008-05-01 20:24:26 +0000 | [diff] [blame] | 85 | mc_translate.c \ |
sewardj | 7ce7166 | 2008-05-02 10:33:15 +0000 | [diff] [blame] | 86 | mc_machine.c \ |
| 87 | mc_errors.c |
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 88 | |
| 89 | memcheck_x86_linux_SOURCES = $(MEMCHECK_SOURCES_COMMON) |
| 90 | memcheck_x86_linux_CPPFLAGS = $(AM_CPPFLAGS_X86_LINUX) |
| 91 | memcheck_x86_linux_CFLAGS = $(AM_CFLAGS_X86_LINUX) -O2 |
| 92 | memcheck_x86_linux_CCASFLAGS = $(AM_CCASFLAGS_X86_LINUX) |
| 93 | memcheck_x86_linux_DEPENDENCIES = $(COREGRIND_LIBS_X86_LINUX) |
| 94 | memcheck_x86_linux_LDADD = $(TOOL_LDADD_X86_LINUX) |
| 95 | memcheck_x86_linux_LDFLAGS = $(TOOL_LDFLAGS_X86_LINUX) |
| 96 | |
| 97 | memcheck_amd64_linux_SOURCES = $(MEMCHECK_SOURCES_COMMON) |
| 98 | memcheck_amd64_linux_CPPFLAGS = $(AM_CPPFLAGS_AMD64_LINUX) |
| 99 | memcheck_amd64_linux_CFLAGS = $(AM_CFLAGS_AMD64_LINUX) -O2 |
| 100 | memcheck_amd64_linux_CCASFLAGS = $(AM_CCASFLAGS_AMD64_LINUX) |
| 101 | memcheck_amd64_linux_DEPENDENCIES = $(COREGRIND_LIBS_AMD64_LINUX) |
| 102 | memcheck_amd64_linux_LDADD = $(TOOL_LDADD_AMD64_LINUX) |
| 103 | memcheck_amd64_linux_LDFLAGS = $(TOOL_LDFLAGS_AMD64_LINUX) |
| 104 | |
| 105 | memcheck_ppc32_linux_SOURCES = $(MEMCHECK_SOURCES_COMMON) |
| 106 | memcheck_ppc32_linux_CPPFLAGS = $(AM_CPPFLAGS_PPC32_LINUX) |
| 107 | memcheck_ppc32_linux_CFLAGS = $(AM_CFLAGS_PPC32_LINUX) -O2 |
| 108 | memcheck_ppc32_linux_CCASFLAGS = $(AM_CCASFLAGS_PPC32_LINUX) |
| 109 | memcheck_ppc32_linux_DEPENDENCIES = $(COREGRIND_LIBS_PPC32_LINUX) |
| 110 | memcheck_ppc32_linux_LDADD = $(TOOL_LDADD_PPC32_LINUX) |
| 111 | memcheck_ppc32_linux_LDFLAGS = $(TOOL_LDFLAGS_PPC32_LINUX) |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 112 | |
sewardj | 2c48c7b | 2005-11-29 13:05:56 +0000 | [diff] [blame] | 113 | memcheck_ppc64_linux_SOURCES = $(MEMCHECK_SOURCES_COMMON) |
| 114 | memcheck_ppc64_linux_CPPFLAGS = $(AM_CPPFLAGS_PPC64_LINUX) |
| 115 | memcheck_ppc64_linux_CFLAGS = $(AM_CFLAGS_PPC64_LINUX) -O2 |
| 116 | memcheck_ppc64_linux_CCASFLAGS = $(AM_CCASFLAGS_PPC64_LINUX) |
| 117 | memcheck_ppc64_linux_DEPENDENCIES = $(COREGRIND_LIBS_PPC64_LINUX) |
| 118 | memcheck_ppc64_linux_LDADD = $(TOOL_LDADD_PPC64_LINUX) |
| 119 | memcheck_ppc64_linux_LDFLAGS = $(TOOL_LDFLAGS_PPC64_LINUX) |
| 120 | |
sewardj | 1eff82b | 2006-10-17 00:56:43 +0000 | [diff] [blame] | 121 | memcheck_ppc32_aix5_SOURCES = $(MEMCHECK_SOURCES_COMMON) |
| 122 | memcheck_ppc32_aix5_CPPFLAGS = $(AM_CPPFLAGS_PPC32_AIX5) |
| 123 | memcheck_ppc32_aix5_CFLAGS = $(AM_CFLAGS_PPC32_AIX5) -O2 |
| 124 | memcheck_ppc32_aix5_CCASFLAGS = $(AM_CCASFLAGS_PPC32_AIX5) |
| 125 | memcheck_ppc32_aix5_DEPENDENCIES = $(COREGRIND_LIBS_PPC32_AIX5) |
| 126 | memcheck_ppc32_aix5_LDADD = $(TOOL_LDADD_PPC32_AIX5) |
| 127 | memcheck_ppc32_aix5_LDFLAGS = $(TOOL_LDFLAGS_PPC32_AIX5) |
| 128 | |
| 129 | memcheck_ppc64_aix5_SOURCES = $(MEMCHECK_SOURCES_COMMON) |
| 130 | memcheck_ppc64_aix5_CPPFLAGS = $(AM_CPPFLAGS_PPC64_AIX5) |
| 131 | memcheck_ppc64_aix5_CFLAGS = $(AM_CFLAGS_PPC64_AIX5) -O2 |
| 132 | memcheck_ppc64_aix5_CCASFLAGS = $(AM_CCASFLAGS_PPC64_AIX5) |
| 133 | memcheck_ppc64_aix5_DEPENDENCIES = $(COREGRIND_LIBS_PPC64_AIX5) |
| 134 | memcheck_ppc64_aix5_LDADD = $(TOOL_LDADD_PPC64_AIX5) |
| 135 | memcheck_ppc64_aix5_LDFLAGS = $(TOOL_LDFLAGS_PPC64_AIX5) |
| 136 | |
njn | 683c6ee | 2002-11-12 10:53:31 +0000 | [diff] [blame] | 137 | mcincludedir = $(includedir)/valgrind |
| 138 | |
| 139 | mcinclude_HEADERS = \ |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 140 | memcheck.h |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 141 | |
sewardj | b4db402 | 2002-12-08 22:19:04 +0000 | [diff] [blame] | 142 | noinst_HEADERS = \ |
njn | 683c6ee | 2002-11-12 10:53:31 +0000 | [diff] [blame] | 143 | mc_include.h |
| 144 | |
njn | 1d0825f | 2006-03-27 11:37:07 +0000 | [diff] [blame] | 145 | mc_replace_strmem.o: CFLAGS += -fno-omit-frame-pointer |
njn | 3e88418 | 2003-04-15 13:03:23 +0000 | [diff] [blame] | 146 | |
sewardj | 23eb2fd | 2005-04-22 16:29:19 +0000 | [diff] [blame] | 147 | mc_main.o: CFLAGS += -fomit-frame-pointer |