]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Introduced build variables VG_ARCH_ALL, VG_OS_ALL, and VG_PLATFORM_ALL,
authorNicholas Nethercote <njn@valgrind.org>
Sat, 27 Nov 2004 16:47:42 +0000 (16:47 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Sat, 27 Nov 2004 16:47:42 +0000 (16:47 +0000)
which list all the arches/OSes/platforms supported.  These are used by
several newly added DIST_SUBDIRS automake commands, which specify that
although when you are building you only want to build for the current
arch/OS/platform, when you do 'make dist' you want every
arch/OS/platform to get included.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3127

cachegrind/Makefile.am
cachegrind/tests/Makefile.am
configure.in
coregrind/Makefile.am
include/Makefile.am
memcheck/tests/Makefile.am
none/tests/Makefile.am

index 4064deef3f89f2266c907ff51a0c74d92808a832..9c607e6fb9af1d71a941ed9a2c8e7ecf51461e6a 100644 (file)
@@ -3,7 +3,8 @@ include $(top_srcdir)/Makefile.all.am
 include $(top_srcdir)/Makefile.tool-flags.am
 include $(top_srcdir)/Makefile.tool-inplace.am
 
-SUBDIRS = $(VG_ARCH) . tests docs
+SUBDIRS      = $(VG_ARCH)     . tests docs
+DIST_SUBDIRS = $(VG_ARCH_ALL) . tests docs
 
 AM_CPPFLAGS += -I$(top_srcdir)/cachegrind/$(VG_ARCH)
 
index aef5ec79d732e7387b92dc2248efbedb3023b87c..f35080f6a147320b155478109f4707c11f1193df 100644 (file)
@@ -1,4 +1,5 @@
-SUBDIRS =  ${VG_ARCH} .
+SUBDIRS      = ${VG_ARCH}     .
+DIST_SUBDIRS = ${VG_ARCH_ALL} .
 
 noinst_SCRIPTS = filter_stderr filter_cachesim_discards
 
index 882fdf1e93100533bc230c7b8e92ec89c09712d1..237304a80b3c108b7348ca491ba8ce5d5c4fe230 100644 (file)
@@ -84,6 +84,8 @@ AC_CANONICAL_HOST
 
 AC_MSG_CHECKING([for a supported CPU])
 AC_SUBST(VG_ARCH)
+AC_SUBST(VG_ARCH_ALL)
+VG_ARCH_ALL="arm x86"
 AC_SUBST(KICKSTART_BASE)
 AC_SUBST(ARCH_CORE_AM_CFLAGS)
 AC_SUBST(ARCH_TOOL_AM_CFLAGS)
@@ -138,6 +140,8 @@ esac
 
 AC_MSG_CHECKING([for a supported OS])
 AC_SUBST(VG_OS)
+AC_SUBST(VG_OS_ALL)
+VG_OS_ALL="linux"
 
 case "${host_os}" in
      *linux*)
@@ -181,6 +185,8 @@ esac
 
 AC_MSG_CHECKING([for a supported CPU/OS combination])
 AC_SUBST(VG_PLATFORM)
+AC_SUBST(VG_PLATFORM_ALL)
+VG_PLATFORM_ALL="arm-linux x86-linux"
 
 VG_PLATFORM="$VG_ARCH-$VG_OS"
 
index fe518b4bd0bf49331fe6a06cfab539ccb2734373..4874b57b87147e51ac83b249710628a7e55f4c70 100644 (file)
@@ -1,7 +1,11 @@
 include $(top_srcdir)/Makefile.all.am
 include $(top_srcdir)/Makefile.core-AM_CPPFLAGS.am
 
-SUBDIRS = $(VG_ARCH) $(VG_OS) $(VG_PLATFORM) demangle . docs
+## When building, we are only interested in the current arch/OS/platform.
+## But when doing 'make dist', we are interested in every arch/OS/platform.
+## That's what DIST_SUBDIRS specifies.
+SUBDIRS      = $(VG_ARCH)     $(VG_OS)     $(VG_PLATFORM)     demangle . docs
+DIST_SUBDIRS = $(VG_ARCH_ALL) $(VG_OS_ALL) $(VG_PLATFORM_ALL) demangle . docs
 
 AM_CPPFLAGS += -DVG_LIBDIR="\"$(valdir)"\" -I$(srcdir)/demangle \
                -DKICKSTART_BASE=@KICKSTART_BASE@ \
index 26e06ed54542394c420e6fdaa3959ed33971730d..e9bafffd2e141b71f8aa5432d1c55d31b232611f 100644 (file)
@@ -1,5 +1,6 @@
 
-SUBDIRS = $(VG_ARCH) $(VG_OS) $(VG_PLATFORM) .
+SUBDIRS      = $(VG_ARCH)     $(VG_OS)     $(VG_PLATFORM)     .
+DIST_SUBDIRS = $(VG_ARCH_ALL) $(VG_OS_ALL) $(VG_PLATFORM_ALL) .
 
 EXTRA_DIST = \
        tool.h.base \
index f9047869396f375cffa1ec78184dd6d8d7756a24..671d770022cf19d6dd2491b1568afb99261c2087 100644 (file)
@@ -1,4 +1,5 @@
-SUBDIRS =  ${VG_ARCH} .
+SUBDIRS      = ${VG_ARCH}     .
+DIST_SUBDIRS = ${VG_ARCH_ALL} .
 
 noinst_SCRIPTS = filter_allocs filter_leak_check_size \
                 filter_stderr filter_stderr_backtrace
index 525c1058f37847d66e4ebe2344d00c5060899c87..7f62831839d74b37d4d3a27c4c4577b4f4406a1f 100644 (file)
@@ -1,4 +1,5 @@
-SUBDIRS =  ${VG_ARCH} .
+SUBDIRS      = ${VG_ARCH}     .
+DIST_SUBDIRS = ${VG_ARCH_ALL} .
 
 noinst_SCRIPTS = filter_none_discards filter_stderr