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