blob: 883e21ae8d2a8d94655f29d53057b6cb3af982c7 [file] [log] [blame]
nethercote4388a402004-09-01 23:20:49 +00001
nethercote4388a402004-09-01 23:20:49 +00002SUBDIRS = . tests docs
3
nethercoteb35a8b92004-09-11 16:45:27 +00004include $(top_srcdir)/Makefile.all.am
tomfb7bcde2005-11-07 15:24:38 +00005include $(top_srcdir)/Makefile.install.am
nethercoteb35a8b92004-09-11 16:45:27 +00006include $(top_srcdir)/Makefile.tool-flags.am
nethercote4388a402004-09-01 23:20:49 +00007include $(top_srcdir)/Makefile.tool-inplace.am
njn717cde52005-05-10 02:47:21 +00008
tomfb7bcde2005-11-07 15:24:38 +00009LIBREPLACEMALLOC_X86_LINUX = \
10 $(top_builddir)/coregrind/libreplacemalloc_toolpreload_x86_linux.a
sewardj45f4e7c2005-09-27 19:20:21 +000011
tomfb7bcde2005-11-07 15:24:38 +000012LIBREPLACEMALLOC_AMD64_LINUX = \
13 $(top_builddir)/coregrind/libreplacemalloc_toolpreload_amd64_linux.a
14
15LIBREPLACEMALLOC_PPC32_LINUX = \
16 $(top_builddir)/coregrind/libreplacemalloc_toolpreload_ppc32_linux.a
17
sewardj2c48c7b2005-11-29 13:05:56 +000018LIBREPLACEMALLOC_PPC64_LINUX = \
19 $(top_builddir)/coregrind/libreplacemalloc_toolpreload_ppc64_linux.a
20
sewardj1eff82b2006-10-17 00:56:43 +000021LIBREPLACEMALLOC_PPC32_AIX5 = \
22 $(top_builddir)/coregrind/libreplacemalloc_toolpreload_ppc32_aix5.a
23
24LIBREPLACEMALLOC_PPC64_AIX5 = \
25 $(top_builddir)/coregrind/libreplacemalloc_toolpreload_ppc64_aix5.a
26
tomfb7bcde2005-11-07 15:24:38 +000027COREGRIND_LIBS_X86_LINUX = \
28 $(top_builddir)/coregrind/libcoregrind_x86_linux.a \
29 @VEX_DIR@/libvex_x86_linux.a
30
31COREGRIND_LIBS_AMD64_LINUX = \
32 $(top_builddir)/coregrind/libcoregrind_amd64_linux.a \
33 @VEX_DIR@/libvex_amd64_linux.a
34
35COREGRIND_LIBS_PPC32_LINUX = \
36 $(top_builddir)/coregrind/libcoregrind_ppc32_linux.a \
37 @VEX_DIR@/libvex_ppc32_linux.a
sewardj45f4e7c2005-09-27 19:20:21 +000038
sewardj2c48c7b2005-11-29 13:05:56 +000039COREGRIND_LIBS_PPC64_LINUX = \
40 $(top_builddir)/coregrind/libcoregrind_ppc64_linux.a \
41 @VEX_DIR@/libvex_ppc64_linux.a
42
sewardj1eff82b2006-10-17 00:56:43 +000043COREGRIND_LIBS_PPC32_AIX5 = \
44 $(top_builddir)/coregrind/libcoregrind_ppc32_aix5.a \
45 @VEX_DIR@/libvex_ppc32_aix5.a
46
47COREGRIND_LIBS_PPC64_AIX5 = \
48 $(top_builddir)/coregrind/libcoregrind_ppc64_aix5.a \
49 @VEX_DIR@/libvex_ppc64_aix5.a
50
sewardj45f4e7c2005-09-27 19:20:21 +000051##.PHONY: @VEX_DIR@/libvex.a
52
tomfb7bcde2005-11-07 15:24:38 +000053@VEX_DIR@/libvex_x86_linux.a: @VEX_DIR@/priv/main/vex_svnversion.h
sewardj1eff82b2006-10-17 00:56:43 +000054 $(MAKE) -C @VEX_DIR@ CC="$(CC)" AR="$(AR)" \
55 libvex_x86_linux.a \
sewardja72c26d2007-05-01 13:44:08 +000056 EXTRA_CFLAGS="$(AM_CFLAGS_X86_LINUX) @FLAG_WDECL_AFTER_STMT@ \
57 @FLAG_FNO_STACK_PROTECTOR@"
tomfb7bcde2005-11-07 15:24:38 +000058
59@VEX_DIR@/libvex_amd64_linux.a: @VEX_DIR@/priv/main/vex_svnversion.h
sewardj1eff82b2006-10-17 00:56:43 +000060 $(MAKE) -C @VEX_DIR@ CC="$(CC)" AR="$(AR)" \
61 libvex_amd64_linux.a \
sewardja72c26d2007-05-01 13:44:08 +000062 EXTRA_CFLAGS="$(AM_CFLAGS_AMD64_LINUX) @FLAG_WDECL_AFTER_STMT@ \
63 @FLAG_FNO_STACK_PROTECTOR@"
tomfb7bcde2005-11-07 15:24:38 +000064
65@VEX_DIR@/libvex_ppc32_linux.a: @VEX_DIR@/priv/main/vex_svnversion.h
sewardj1eff82b2006-10-17 00:56:43 +000066 $(MAKE) -C @VEX_DIR@ CC="$(CC)" AR="$(AR)" \
67 libvex_ppc32_linux.a \
sewardja72c26d2007-05-01 13:44:08 +000068 EXTRA_CFLAGS="$(AM_CFLAGS_PPC32_LINUX) @FLAG_WDECL_AFTER_STMT@ \
69 @FLAG_FNO_STACK_PROTECTOR@"
sewardj45f4e7c2005-09-27 19:20:21 +000070
sewardj2c48c7b2005-11-29 13:05:56 +000071@VEX_DIR@/libvex_ppc64_linux.a: @VEX_DIR@/priv/main/vex_svnversion.h
sewardj1eff82b2006-10-17 00:56:43 +000072 $(MAKE) -C @VEX_DIR@ CC="$(CC)" AR="$(AR)" \
73 libvex_ppc64_linux.a \
sewardja72c26d2007-05-01 13:44:08 +000074 EXTRA_CFLAGS="$(AM_CFLAGS_PPC64_LINUX) @FLAG_WDECL_AFTER_STMT@ \
75 @FLAG_FNO_STACK_PROTECTOR@"
sewardj2c48c7b2005-11-29 13:05:56 +000076
sewardj1eff82b2006-10-17 00:56:43 +000077@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 \
sewardja72c26d2007-05-01 13:44:08 +000080 EXTRA_CFLAGS="$(AM_CFLAGS_PPC32_AIX5) @FLAG_WDECL_AFTER_STMT@ \
81 @FLAG_FNO_STACK_PROTECTOR@"
sewardj1eff82b2006-10-17 00:56:43 +000082
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 \
sewardja72c26d2007-05-01 13:44:08 +000086 EXTRA_CFLAGS="$(AM_CFLAGS_PPC64_AIX5) @FLAG_WDECL_AFTER_STMT@ \
87 @FLAG_FNO_STACK_PROTECTOR@"
sewardj1eff82b2006-10-17 00:56:43 +000088
sewardj45f4e7c2005-09-27 19:20:21 +000089@VEX_DIR@/priv/main/vex_svnversion.h:
90 $(MAKE) -C @VEX_DIR@ CC="$(CC)" version
91
tomfb7bcde2005-11-07 15:24:38 +000092TOOL_LDADD_COMMON = -lgcc
sewardj1eff82b2006-10-17 00:56:43 +000093TOOL_LDFLAGS_COMMON_LINUX = -static \
sewardj45f4e7c2005-09-27 19:20:21 +000094 -Wl,-defsym,valt_load_address=@VALT_LOAD_ADDRESS@ \
sewardj45f4e7c2005-09-27 19:20:21 +000095 -nodefaultlibs -nostartfiles -u _start
sewardj1eff82b2006-10-17 00:56:43 +000096TOOL_LDFLAGS_COMMON_AIX5 = -static -Wl,-e_start_valgrind
97
njn717cde52005-05-10 02:47:21 +000098
tomfb7bcde2005-11-07 15:24:38 +000099TOOL_LDADD_X86_LINUX = $(COREGRIND_LIBS_X86_LINUX) $(TOOL_LDADD_COMMON)
100TOOL_LDFLAGS_X86_LINUX = \
sewardj1eff82b2006-10-17 00:56:43 +0000101 $(TOOL_LDFLAGS_COMMON_LINUX) @FLAG_M32@ \
tomfb7bcde2005-11-07 15:24:38 +0000102 -Wl,-T,$(top_builddir)/valt_load_address_x86_linux.lds
103
104TOOL_LDADD_AMD64_LINUX = $(COREGRIND_LIBS_AMD64_LINUX) $(TOOL_LDADD_COMMON)
105TOOL_LDFLAGS_AMD64_LINUX = \
sewardj1eff82b2006-10-17 00:56:43 +0000106 $(TOOL_LDFLAGS_COMMON_LINUX) @FLAG_M64@ \
tomfb7bcde2005-11-07 15:24:38 +0000107 -Wl,-T,$(top_builddir)/valt_load_address_amd64_linux.lds
108
109TOOL_LDADD_PPC32_LINUX = $(COREGRIND_LIBS_PPC32_LINUX) $(TOOL_LDADD_COMMON)
110TOOL_LDFLAGS_PPC32_LINUX = \
sewardj1eff82b2006-10-17 00:56:43 +0000111 $(TOOL_LDFLAGS_COMMON_LINUX) @FLAG_M32@ \
tomfb7bcde2005-11-07 15:24:38 +0000112 -Wl,-T,$(top_builddir)/valt_load_address_ppc32_linux.lds
113
sewardj2c48c7b2005-11-29 13:05:56 +0000114TOOL_LDADD_PPC64_LINUX = $(COREGRIND_LIBS_PPC64_LINUX) $(TOOL_LDADD_COMMON)
115TOOL_LDFLAGS_PPC64_LINUX = \
sewardj1eff82b2006-10-17 00:56:43 +0000116 $(TOOL_LDFLAGS_COMMON_LINUX) @FLAG_M64@ \
sewardj2c48c7b2005-11-29 13:05:56 +0000117 -Wl,-T,$(top_builddir)/valt_load_address_ppc64_linux.lds
118
sewardj1eff82b2006-10-17 00:56:43 +0000119TOOL_LDADD_PPC32_AIX5 = $(COREGRIND_LIBS_PPC32_AIX5) $(TOOL_LDADD_COMMON)
120TOOL_LDFLAGS_PPC32_AIX5 = \
121 $(TOOL_LDFLAGS_COMMON_AIX5) @FLAG_MAIX32@
122
123TOOL_LDADD_PPC64_AIX5 = $(COREGRIND_LIBS_PPC64_AIX5) $(TOOL_LDADD_COMMON)
124TOOL_LDFLAGS_PPC64_AIX5 = \
125 $(TOOL_LDFLAGS_COMMON_AIX5) @FLAG_MAIX64@ -Wl,-bbigtoc
tomfb7bcde2005-11-07 15:24:38 +0000126
127LIBREPLACEMALLOC_LDFLAGS_X86_LINUX = \
128 -Wl,--whole-archive \
129 $(LIBREPLACEMALLOC_X86_LINUX) \
130 -Wl,--no-whole-archive
131LIBREPLACEMALLOC_LDFLAGS_AMD64_LINUX = \
132 -Wl,--whole-archive \
133 $(LIBREPLACEMALLOC_AMD64_LINUX) \
134 -Wl,--no-whole-archive
135LIBREPLACEMALLOC_LDFLAGS_PPC32_LINUX = \
136 -Wl,--whole-archive \
137 $(LIBREPLACEMALLOC_PPC32_LINUX) \
138 -Wl,--no-whole-archive
sewardj2c48c7b2005-11-29 13:05:56 +0000139LIBREPLACEMALLOC_LDFLAGS_PPC64_LINUX = \
140 -Wl,--whole-archive \
141 $(LIBREPLACEMALLOC_PPC64_LINUX) \
142 -Wl,--no-whole-archive
sewardj1eff82b2006-10-17 00:56:43 +0000143LIBREPLACEMALLOC_LDFLAGS_PPC32_AIX5 = \
144 $(LIBREPLACEMALLOC_PPC32_AIX5)
145LIBREPLACEMALLOC_LDFLAGS_PPC64_AIX5 = \
146 $(LIBREPLACEMALLOC_PPC64_AIX5)