|
From: <sv...@va...> - 2009-02-06 05:34:23
|
Author: njn
Date: 2009-02-06 05:34:19 +0000 (Fri, 06 Feb 2009)
New Revision: 9116
Log:
Removed Makefile.core.am with some judicious refactoring. Also fix a stupid
typo in launcher-linux.c that was added in the last commit.
Added:
trunk/Makefile.inplace.am
Removed:
trunk/Makefile.tool-inplace.am
Modified:
trunk/Makefile.install.am
trunk/Makefile.tool.am
trunk/coregrind/Makefile.am
trunk/coregrind/launcher-linux.c
Copied: trunk/Makefile.inplace.am (from rev 9107, trunk/Makefile.tool-inplace.am)
===================================================================
--- trunk/Makefile.inplace.am (rev 0)
+++ trunk/Makefile.inplace.am 2009-02-06 05:34:19 UTC (rev 9116)
@@ -0,0 +1,16 @@
+# This is used by coregrind/Makefile.am and Makefile.tool.am for doing
+# "in-place" installs. It copies $(noinst_PROGRAMS) into $inplacedir, doing
+# some magic renaming as it does.
+# For a description of what these magic sed commands do, see comments
+# in Makefile.install.am (which has identical magic)
+
+all-local:
+ if [ -n "$(noinst_PROGRAMS)" ] ; then \
+ for f in $(noinst_PROGRAMS); do \
+ name=`echo $$f | sed -e 's/-\([^-]*-[^-.]*\)\(\..*\)\?$$/\2/'`; \
+ plat=`echo $$f | sed -e 's/^.*-\([^-]*-[^-.]*\)\(\..*\)\?$$/\1/'`; \
+ mkdir -p $(inplacedir)/$$plat; \
+ rm -f $(inplacedir)/$$plat/$$name; \
+ ln -f -s ../../$(subdir)/$$f $(inplacedir)/$$plat/$$name; \
+ done ; \
+ fi
Property changes on: trunk/Makefile.inplace.am
___________________________________________________________________
Name: svn:keywords
+ author date id revision
Name: svn:mergeinfo
+
Name: svn:eol-style
+ native
Modified: trunk/Makefile.install.am
===================================================================
--- trunk/Makefile.install.am 2009-02-06 04:59:35 UTC (rev 9115)
+++ trunk/Makefile.install.am 2009-02-06 05:34:19 UTC (rev 9116)
@@ -10,7 +10,7 @@
# $prefix/lib/valgrind/omega-x86-linux/exp
# or similarly mutant place.
#
-# Note there is identical sed magic in Makefile.tool-inplace.am.
+# Note there is identical sed magic in Makefile.inplace.am.
# What the second for loop does: it copies libcoregrind.a and libvex.a
# into the correct (target-specific) lib dirs at install time.
Deleted: trunk/Makefile.tool-inplace.am
===================================================================
--- trunk/Makefile.tool-inplace.am 2009-02-06 04:59:35 UTC (rev 9115)
+++ trunk/Makefile.tool-inplace.am 2009-02-06 05:34:19 UTC (rev 9116)
@@ -1,14 +0,0 @@
-
-# For a description of what these magic sed commands do, see comments
-# in Makefile.install.am (which has identical magic)
-
-all-local:
- if [ -n "$(noinst_PROGRAMS)" ] ; then \
- for f in $(noinst_PROGRAMS); do \
- name=`echo $$f | sed -e 's/-\([^-]*-[^-.]*\)\(\..*\)\?$$/\2/'`; \
- plat=`echo $$f | sed -e 's/^.*-\([^-]*-[^-.]*\)\(\..*\)\?$$/\1/'`; \
- mkdir -p $(inplacedir)/$$plat; \
- rm -f $(inplacedir)/$$plat/$$name; \
- ln -f -s ../../$(subdir)/$$f $(inplacedir)/$$plat/$$name; \
- done ; \
- fi
Modified: trunk/Makefile.tool.am
===================================================================
--- trunk/Makefile.tool.am 2009-02-06 04:59:35 UTC (rev 9115)
+++ trunk/Makefile.tool.am 2009-02-06 05:34:19 UTC (rev 9116)
@@ -3,8 +3,8 @@
include $(top_srcdir)/Makefile.all.am
include $(top_srcdir)/Makefile.flags.am
+include $(top_srcdir)/Makefile.inplace.am
include $(top_srcdir)/Makefile.install.am
-include $(top_srcdir)/Makefile.tool-inplace.am
LIBREPLACEMALLOC_X86_LINUX = \
Modified: trunk/coregrind/Makefile.am
===================================================================
--- trunk/coregrind/Makefile.am 2009-02-06 04:59:35 UTC (rev 9115)
+++ trunk/coregrind/Makefile.am 2009-02-06 05:34:19 UTC (rev 9116)
@@ -6,6 +6,7 @@
include $(top_srcdir)/Makefile.all.am
include $(top_srcdir)/Makefile.flags.am
+include $(top_srcdir)/Makefile.inplace.am
include $(top_srcdir)/Makefile.install.am
@@ -419,15 +420,6 @@
MANUAL_DEPS = $(noinst_HEADERS) $(include_HEADERS)
-all-local:
- for f in $(noinst_PROGRAMS); do \
- p=`echo $$f | sed -e 's/^[^-]*-//' -e 's/\..*$$//'`; \
- n=`echo $$f | sed -e 's/-[^-]\{1,\}-[^-.]\{1,\}//'`; \
- mkdir -p $(inplacedir)/$$p; \
- rm -f $(inplacedir)/$$p/$$n; \
- ln -f -s ../../$(subdir)/$$f $(inplacedir)/$$p/$$n; \
- done
-
EXTRA_DIST = \
m_debuginfo/UNUSED_STABS.txt \
m_debuginfo/README.txt
Modified: trunk/coregrind/launcher-linux.c
===================================================================
--- trunk/coregrind/launcher-linux.c 2009-02-06 04:59:35 UTC (rev 9115)
+++ trunk/coregrind/launcher-linux.c 2009-02-06 05:34:19 UTC (rev 9116)
@@ -243,7 +243,7 @@
(0==strcmp(VG_PLATFORM,"amd64-linux")) ||
(0==strcmp(VG_PLATFORM,"ppc32-linux")) ||
(0==strcmp(VG_PLATFORM,"ppc64-linux")))
- default_platform = VG_PLATFORM"ppc32-linux";
+ default_platform = VG_PLATFORM;
else
barf("Unknown VG_PLATFORM '%s'", VG_PLATFORM);
|