blob: 3d7e9fbf1829fb792b48c1016a77187e4c0d438a [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
5include $(top_srcdir)/Makefile.tool-flags.am
nethercote4388a402004-09-01 23:20:49 +00006include $(top_srcdir)/Makefile.tool-inplace.am
njn717cde52005-05-10 02:47:21 +00007
sewardj45f4e7c2005-09-27 19:20:21 +00008LIBREPLACEMALLOC = $(top_builddir)/coregrind/libreplacemalloc_toolpreload.a
9
10COREGRIND_LIBS = \
11 $(top_builddir)/coregrind/libcoregrind.a \
12 @VEX_DIR@/libvex.a
13
14##.PHONY: @VEX_DIR@/libvex.a
15
16@VEX_DIR@/libvex.a: @VEX_DIR@/priv/main/vex_svnversion.h
17 $(MAKE) -C @VEX_DIR@ CC="$(CC)" libvex.a EXTRA_CFLAGS="@ARCH_CORE_AM_CFLAGS@"
18
19@VEX_DIR@/priv/main/vex_svnversion.h:
20 $(MAKE) -C @VEX_DIR@ CC="$(CC)" version
21
22## Nb: do not call this variables "TOOL_LINKADD" and "TOOL_LDFLAGS" -- that
23## makes automake think we are building something called "TOOLS".
24TOOL_LINKADD = $(COREGRIND_LIBS) -lgcc
25TOOL_LINKFLAGS = \
26 -static \
27 -Wl,-defsym,valt_load_address=@VALT_LOAD_ADDRESS@ \
28 -Wl,-T,$(top_builddir)/valt_load_address.lds \
29 -nodefaultlibs -nostartfiles -u _start
njn717cde52005-05-10 02:47:21 +000030