nethercote | 4388a40 | 2004-09-01 23:20:49 +0000 | [diff] [blame] | 1 | |
nethercote | 4388a40 | 2004-09-01 23:20:49 +0000 | [diff] [blame] | 2 | SUBDIRS = . tests docs |
| 3 | |
nethercote | b35a8b9 | 2004-09-11 16:45:27 +0000 | [diff] [blame] | 4 | include $(top_srcdir)/Makefile.all.am |
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 5 | include $(top_srcdir)/Makefile.install.am |
nethercote | b35a8b9 | 2004-09-11 16:45:27 +0000 | [diff] [blame] | 6 | include $(top_srcdir)/Makefile.tool-flags.am |
nethercote | 4388a40 | 2004-09-01 23:20:49 +0000 | [diff] [blame] | 7 | include $(top_srcdir)/Makefile.tool-inplace.am |
njn | 717cde5 | 2005-05-10 02:47:21 +0000 | [diff] [blame] | 8 | |
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 9 | LIBREPLACEMALLOC_X86_LINUX = \ |
| 10 | $(top_builddir)/coregrind/libreplacemalloc_toolpreload_x86_linux.a |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 11 | |
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 12 | LIBREPLACEMALLOC_AMD64_LINUX = \ |
| 13 | $(top_builddir)/coregrind/libreplacemalloc_toolpreload_amd64_linux.a |
| 14 | |
| 15 | LIBREPLACEMALLOC_PPC32_LINUX = \ |
| 16 | $(top_builddir)/coregrind/libreplacemalloc_toolpreload_ppc32_linux.a |
| 17 | |
sewardj | 2c48c7b | 2005-11-29 13:05:56 +0000 | [diff] [blame] | 18 | LIBREPLACEMALLOC_PPC64_LINUX = \ |
| 19 | $(top_builddir)/coregrind/libreplacemalloc_toolpreload_ppc64_linux.a |
| 20 | |
sewardj | 1eff82b | 2006-10-17 00:56:43 +0000 | [diff] [blame] | 21 | LIBREPLACEMALLOC_PPC32_AIX5 = \ |
| 22 | $(top_builddir)/coregrind/libreplacemalloc_toolpreload_ppc32_aix5.a |
| 23 | |
| 24 | LIBREPLACEMALLOC_PPC64_AIX5 = \ |
| 25 | $(top_builddir)/coregrind/libreplacemalloc_toolpreload_ppc64_aix5.a |
| 26 | |
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 27 | COREGRIND_LIBS_X86_LINUX = \ |
| 28 | $(top_builddir)/coregrind/libcoregrind_x86_linux.a \ |
| 29 | @VEX_DIR@/libvex_x86_linux.a |
| 30 | |
| 31 | COREGRIND_LIBS_AMD64_LINUX = \ |
| 32 | $(top_builddir)/coregrind/libcoregrind_amd64_linux.a \ |
| 33 | @VEX_DIR@/libvex_amd64_linux.a |
| 34 | |
| 35 | COREGRIND_LIBS_PPC32_LINUX = \ |
| 36 | $(top_builddir)/coregrind/libcoregrind_ppc32_linux.a \ |
| 37 | @VEX_DIR@/libvex_ppc32_linux.a |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 38 | |
sewardj | 2c48c7b | 2005-11-29 13:05:56 +0000 | [diff] [blame] | 39 | COREGRIND_LIBS_PPC64_LINUX = \ |
| 40 | $(top_builddir)/coregrind/libcoregrind_ppc64_linux.a \ |
| 41 | @VEX_DIR@/libvex_ppc64_linux.a |
| 42 | |
sewardj | 1eff82b | 2006-10-17 00:56:43 +0000 | [diff] [blame] | 43 | COREGRIND_LIBS_PPC32_AIX5 = \ |
| 44 | $(top_builddir)/coregrind/libcoregrind_ppc32_aix5.a \ |
| 45 | @VEX_DIR@/libvex_ppc32_aix5.a |
| 46 | |
| 47 | COREGRIND_LIBS_PPC64_AIX5 = \ |
| 48 | $(top_builddir)/coregrind/libcoregrind_ppc64_aix5.a \ |
| 49 | @VEX_DIR@/libvex_ppc64_aix5.a |
| 50 | |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 51 | ##.PHONY: @VEX_DIR@/libvex.a |
| 52 | |
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 53 | @VEX_DIR@/libvex_x86_linux.a: @VEX_DIR@/priv/main/vex_svnversion.h |
sewardj | 1eff82b | 2006-10-17 00:56:43 +0000 | [diff] [blame] | 54 | $(MAKE) -C @VEX_DIR@ CC="$(CC)" AR="$(AR)" \ |
| 55 | libvex_x86_linux.a \ |
sewardj | a72c26d | 2007-05-01 13:44:08 +0000 | [diff] [blame] | 56 | EXTRA_CFLAGS="$(AM_CFLAGS_X86_LINUX) @FLAG_WDECL_AFTER_STMT@ \ |
| 57 | @FLAG_FNO_STACK_PROTECTOR@" |
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 58 | |
| 59 | @VEX_DIR@/libvex_amd64_linux.a: @VEX_DIR@/priv/main/vex_svnversion.h |
sewardj | 1eff82b | 2006-10-17 00:56:43 +0000 | [diff] [blame] | 60 | $(MAKE) -C @VEX_DIR@ CC="$(CC)" AR="$(AR)" \ |
| 61 | libvex_amd64_linux.a \ |
sewardj | a72c26d | 2007-05-01 13:44:08 +0000 | [diff] [blame] | 62 | EXTRA_CFLAGS="$(AM_CFLAGS_AMD64_LINUX) @FLAG_WDECL_AFTER_STMT@ \ |
| 63 | @FLAG_FNO_STACK_PROTECTOR@" |
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 64 | |
| 65 | @VEX_DIR@/libvex_ppc32_linux.a: @VEX_DIR@/priv/main/vex_svnversion.h |
sewardj | 1eff82b | 2006-10-17 00:56:43 +0000 | [diff] [blame] | 66 | $(MAKE) -C @VEX_DIR@ CC="$(CC)" AR="$(AR)" \ |
| 67 | libvex_ppc32_linux.a \ |
sewardj | a72c26d | 2007-05-01 13:44:08 +0000 | [diff] [blame] | 68 | EXTRA_CFLAGS="$(AM_CFLAGS_PPC32_LINUX) @FLAG_WDECL_AFTER_STMT@ \ |
| 69 | @FLAG_FNO_STACK_PROTECTOR@" |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 70 | |
sewardj | 2c48c7b | 2005-11-29 13:05:56 +0000 | [diff] [blame] | 71 | @VEX_DIR@/libvex_ppc64_linux.a: @VEX_DIR@/priv/main/vex_svnversion.h |
sewardj | 1eff82b | 2006-10-17 00:56:43 +0000 | [diff] [blame] | 72 | $(MAKE) -C @VEX_DIR@ CC="$(CC)" AR="$(AR)" \ |
| 73 | libvex_ppc64_linux.a \ |
sewardj | a72c26d | 2007-05-01 13:44:08 +0000 | [diff] [blame] | 74 | EXTRA_CFLAGS="$(AM_CFLAGS_PPC64_LINUX) @FLAG_WDECL_AFTER_STMT@ \ |
| 75 | @FLAG_FNO_STACK_PROTECTOR@" |
sewardj | 2c48c7b | 2005-11-29 13:05:56 +0000 | [diff] [blame] | 76 | |
sewardj | 1eff82b | 2006-10-17 00:56:43 +0000 | [diff] [blame] | 77 | @VEX_DIR@/libvex_ppc32_aix5.a: @VEX_DIR@/priv/main/vex_svnversion.h |
| 78 | $(MAKE) -C @VEX_DIR@ CC="$(CC)" AR="$(AR) -X32" \ |
| 79 | libvex_ppc32_aix5.a \ |
sewardj | a72c26d | 2007-05-01 13:44:08 +0000 | [diff] [blame] | 80 | EXTRA_CFLAGS="$(AM_CFLAGS_PPC32_AIX5) @FLAG_WDECL_AFTER_STMT@ \ |
| 81 | @FLAG_FNO_STACK_PROTECTOR@" |
sewardj | 1eff82b | 2006-10-17 00:56:43 +0000 | [diff] [blame] | 82 | |
| 83 | @VEX_DIR@/libvex_ppc64_aix5.a: @VEX_DIR@/priv/main/vex_svnversion.h |
| 84 | $(MAKE) -C @VEX_DIR@ CC="$(CC)" AR="$(AR) -X64" \ |
| 85 | libvex_ppc64_aix5.a \ |
sewardj | a72c26d | 2007-05-01 13:44:08 +0000 | [diff] [blame] | 86 | EXTRA_CFLAGS="$(AM_CFLAGS_PPC64_AIX5) @FLAG_WDECL_AFTER_STMT@ \ |
| 87 | @FLAG_FNO_STACK_PROTECTOR@" |
sewardj | 1eff82b | 2006-10-17 00:56:43 +0000 | [diff] [blame] | 88 | |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 89 | @VEX_DIR@/priv/main/vex_svnversion.h: |
| 90 | $(MAKE) -C @VEX_DIR@ CC="$(CC)" version |
| 91 | |
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 92 | TOOL_LDADD_COMMON = -lgcc |
sewardj | 1eff82b | 2006-10-17 00:56:43 +0000 | [diff] [blame] | 93 | TOOL_LDFLAGS_COMMON_LINUX = -static \ |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 94 | -Wl,-defsym,valt_load_address=@VALT_LOAD_ADDRESS@ \ |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 95 | -nodefaultlibs -nostartfiles -u _start |
sewardj | 1eff82b | 2006-10-17 00:56:43 +0000 | [diff] [blame] | 96 | TOOL_LDFLAGS_COMMON_AIX5 = -static -Wl,-e_start_valgrind |
| 97 | |
njn | 717cde5 | 2005-05-10 02:47:21 +0000 | [diff] [blame] | 98 | |
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 99 | TOOL_LDADD_X86_LINUX = $(COREGRIND_LIBS_X86_LINUX) $(TOOL_LDADD_COMMON) |
| 100 | TOOL_LDFLAGS_X86_LINUX = \ |
sewardj | 1eff82b | 2006-10-17 00:56:43 +0000 | [diff] [blame] | 101 | $(TOOL_LDFLAGS_COMMON_LINUX) @FLAG_M32@ \ |
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 102 | -Wl,-T,$(top_builddir)/valt_load_address_x86_linux.lds |
| 103 | |
| 104 | TOOL_LDADD_AMD64_LINUX = $(COREGRIND_LIBS_AMD64_LINUX) $(TOOL_LDADD_COMMON) |
| 105 | TOOL_LDFLAGS_AMD64_LINUX = \ |
sewardj | 1eff82b | 2006-10-17 00:56:43 +0000 | [diff] [blame] | 106 | $(TOOL_LDFLAGS_COMMON_LINUX) @FLAG_M64@ \ |
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 107 | -Wl,-T,$(top_builddir)/valt_load_address_amd64_linux.lds |
| 108 | |
| 109 | TOOL_LDADD_PPC32_LINUX = $(COREGRIND_LIBS_PPC32_LINUX) $(TOOL_LDADD_COMMON) |
| 110 | TOOL_LDFLAGS_PPC32_LINUX = \ |
sewardj | 1eff82b | 2006-10-17 00:56:43 +0000 | [diff] [blame] | 111 | $(TOOL_LDFLAGS_COMMON_LINUX) @FLAG_M32@ \ |
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 112 | -Wl,-T,$(top_builddir)/valt_load_address_ppc32_linux.lds |
| 113 | |
sewardj | 2c48c7b | 2005-11-29 13:05:56 +0000 | [diff] [blame] | 114 | TOOL_LDADD_PPC64_LINUX = $(COREGRIND_LIBS_PPC64_LINUX) $(TOOL_LDADD_COMMON) |
| 115 | TOOL_LDFLAGS_PPC64_LINUX = \ |
sewardj | 1eff82b | 2006-10-17 00:56:43 +0000 | [diff] [blame] | 116 | $(TOOL_LDFLAGS_COMMON_LINUX) @FLAG_M64@ \ |
sewardj | 2c48c7b | 2005-11-29 13:05:56 +0000 | [diff] [blame] | 117 | -Wl,-T,$(top_builddir)/valt_load_address_ppc64_linux.lds |
| 118 | |
sewardj | 1eff82b | 2006-10-17 00:56:43 +0000 | [diff] [blame] | 119 | TOOL_LDADD_PPC32_AIX5 = $(COREGRIND_LIBS_PPC32_AIX5) $(TOOL_LDADD_COMMON) |
| 120 | TOOL_LDFLAGS_PPC32_AIX5 = \ |
| 121 | $(TOOL_LDFLAGS_COMMON_AIX5) @FLAG_MAIX32@ |
| 122 | |
| 123 | TOOL_LDADD_PPC64_AIX5 = $(COREGRIND_LIBS_PPC64_AIX5) $(TOOL_LDADD_COMMON) |
| 124 | TOOL_LDFLAGS_PPC64_AIX5 = \ |
| 125 | $(TOOL_LDFLAGS_COMMON_AIX5) @FLAG_MAIX64@ -Wl,-bbigtoc |
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 126 | |
| 127 | LIBREPLACEMALLOC_LDFLAGS_X86_LINUX = \ |
| 128 | -Wl,--whole-archive \ |
| 129 | $(LIBREPLACEMALLOC_X86_LINUX) \ |
| 130 | -Wl,--no-whole-archive |
| 131 | LIBREPLACEMALLOC_LDFLAGS_AMD64_LINUX = \ |
| 132 | -Wl,--whole-archive \ |
| 133 | $(LIBREPLACEMALLOC_AMD64_LINUX) \ |
| 134 | -Wl,--no-whole-archive |
| 135 | LIBREPLACEMALLOC_LDFLAGS_PPC32_LINUX = \ |
| 136 | -Wl,--whole-archive \ |
| 137 | $(LIBREPLACEMALLOC_PPC32_LINUX) \ |
| 138 | -Wl,--no-whole-archive |
sewardj | 2c48c7b | 2005-11-29 13:05:56 +0000 | [diff] [blame] | 139 | LIBREPLACEMALLOC_LDFLAGS_PPC64_LINUX = \ |
| 140 | -Wl,--whole-archive \ |
| 141 | $(LIBREPLACEMALLOC_PPC64_LINUX) \ |
| 142 | -Wl,--no-whole-archive |
sewardj | 1eff82b | 2006-10-17 00:56:43 +0000 | [diff] [blame] | 143 | LIBREPLACEMALLOC_LDFLAGS_PPC32_AIX5 = \ |
| 144 | $(LIBREPLACEMALLOC_PPC32_AIX5) |
| 145 | LIBREPLACEMALLOC_LDFLAGS_PPC64_AIX5 = \ |
| 146 | $(LIBREPLACEMALLOC_PPC64_AIX5) |