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 |
| 5 | include $(top_srcdir)/Makefile.tool-flags.am |
nethercote | 4388a40 | 2004-09-01 23:20:49 +0000 | [diff] [blame] | 6 | include $(top_srcdir)/Makefile.tool-inplace.am |
njn | 717cde5 | 2005-05-10 02:47:21 +0000 | [diff] [blame] | 7 | |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 8 | LIBREPLACEMALLOC = $(top_builddir)/coregrind/libreplacemalloc_toolpreload.a |
| 9 | |
| 10 | COREGRIND_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". |
| 24 | TOOL_LINKADD = $(COREGRIND_LIBS) -lgcc |
| 25 | TOOL_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 |
njn | 717cde5 | 2005-05-10 02:47:21 +0000 | [diff] [blame] | 30 | |