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