]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Index: Makefile.core.am
authorNicholas Nethercote <njn@valgrind.org>
Fri, 6 Feb 2009 03:46:50 +0000 (03:46 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Fri, 6 Feb 2009 03:46:50 +0000 (03:46 +0000)
    Factor out some includes.  Remove some unnecessary includes.

Index: configure.in
    Improve some comments.  Make the arch/platform/OS output more consistent
    and comprehensive.

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

Makefile.core.am
configure.in

index a0a46463d94cf96c92c23fda7bd7b33619cba522..4479463294c6cd5eacc1fc7a0466bdfd9e50f33b 100644 (file)
@@ -1,70 +1,39 @@
-add_includes_x86_linux = -I$(top_srcdir)/coregrind \
-               -I$(top_srcdir) \
-               -I$(top_srcdir)/coregrind/x86 \
-               -I$(top_srcdir)/coregrind/linux \
-               -I$(top_srcdir)/coregrind/x86-linux \
+add_includes_COMMON = \
+               -I$(top_srcdir)/coregrind \
                -I$(top_srcdir)/include \
-               -I@VEX_DIR@/pub \
+               -I@VEX_DIR@/pub
+
+add_includes_x86_linux = $(add_includes_COMMON) \
                -DVG_PLATFORM="\"x86-linux\"" \
                -DVGA_x86=1 \
                -DVGO_linux=1 \
                -DVGP_x86_linux=1
 
-add_includes_amd64_linux = -I$(top_srcdir)/coregrind \
-               -I$(top_srcdir) \
-               -I$(top_srcdir)/coregrind/amd64 \
-               -I$(top_srcdir)/coregrind/linux \
-               -I$(top_srcdir)/coregrind/amd64-linux \
-               -I$(top_srcdir)/include \
-               -I@VEX_DIR@/pub \
+add_includes_amd64_linux = $(add_includes_COMMON) \
                -DVG_PLATFORM="\"amd64-linux\"" \
                -DVGA_amd64=1 \
                -DVGO_linux=1 \
                -DVGP_amd64_linux=1
 
-add_includes_ppc32_linux = -I$(top_srcdir)/coregrind \
-               -I$(top_srcdir) \
-               -I$(top_srcdir)/coregrind/ppc32 \
-               -I$(top_srcdir)/coregrind/linux \
-               -I$(top_srcdir)/coregrind/ppc32-linux \
-               -I$(top_srcdir)/include \
-               -I@VEX_DIR@/pub \
+add_includes_ppc32_linux = $(add_includes_COMMON) \
                -DVG_PLATFORM="\"ppc32-linux\"" \
                -DVGA_ppc32=1 \
                -DVGO_linux=1 \
                -DVGP_ppc32_linux=1
 
-add_includes_ppc64_linux = -I$(top_srcdir)/coregrind \
-               -I$(top_srcdir) \
-               -I$(top_srcdir)/coregrind/ppc64 \
-               -I$(top_srcdir)/coregrind/linux \
-               -I$(top_srcdir)/coregrind/ppc64-linux \
-               -I$(top_srcdir)/include \
-               -I@VEX_DIR@/pub \
+add_includes_ppc64_linux = $(add_includes_COMMON) \
                -DVG_PLATFORM="\"ppc64-linux\"" \
                -DVGA_ppc64=1 \
                -DVGO_linux=1 \
                -DVGP_ppc64_linux=1
 
-add_includes_ppc32_aix5 = -I$(top_srcdir)/coregrind \
-               -I$(top_srcdir) \
-               -I$(top_srcdir)/coregrind/ppc32 \
-               -I$(top_srcdir)/coregrind/aix5 \
-               -I$(top_srcdir)/coregrind/ppc32-aix5 \
-               -I$(top_srcdir)/include \
-               -I@VEX_DIR@/pub \
+add_includes_ppc32_aix5 = $(add_includes_COMMON) \
                -DVG_PLATFORM="\"ppc32-aix5\"" \
                -DVGA_ppc32=1 \
                -DVGO_aix5=1 \
                -DVGP_ppc32_aix5=1
 
-add_includes_ppc64_aix5 = -I$(top_srcdir)/coregrind \
-               -I$(top_srcdir) \
-               -I$(top_srcdir)/coregrind/ppc64 \
-               -I$(top_srcdir)/coregrind/aix5 \
-               -I$(top_srcdir)/coregrind/ppc64-aix5 \
-               -I$(top_srcdir)/include \
-               -I@VEX_DIR@/pub \
+add_includes_ppc64_aix5 = $(add_includes_COMMON) \
                -DVG_PLATFORM="\"ppc64-aix5\"" \
                -DVGA_ppc64=1 \
                -DVGO_aix5=1 \
index 15aabb1ae099ca698c33d315c753459303d9b418..1e7d33d28a32db91e409b307c97c94f65b1d162f 100644 (file)
@@ -214,8 +214,9 @@ fi
 
 #----------------------------------------------------------------------------
 
-# VGCONF_OS is the primary build OS.  It is passed in to compilation of many
-# C files via -VGO_$(VGCONF_OS) and -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS).
+# VGCONF_OS is the primary build OS, eg. "linux".  It is passed in to
+# compilation of many C files via -VGO_$(VGCONF_OS) and
+# -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS).
 AC_MSG_CHECKING([for a supported OS])
 AC_SUBST(VGCONF_OS)
 
@@ -302,22 +303,23 @@ fi
 
 #----------------------------------------------------------------------------
 
-# VGCONF_ARCH_PRI is the arch for the primary build target.  By default it's
-# the same as ARCH_MAX.  But if, say, we do a build on an amd64 machine, but
-# --enable-only32bit has been requested, then ARCH_MAX (see above) will be
-# "amd64" since that reflects the most that this cpu can do, but
-# VGCONF_ARCH_PRI will be downgraded to "x86", since that reflects the arch
-# corresponding to the primary build (VGCONF_PLATFORM_PRI_CAPS).  It is
+# VGCONF_ARCH_PRI is the arch for the primary build target, eg. "amd64".  By
+# default it's the same as ARCH_MAX.  But if, say, we do a build on an amd64
+# machine, but --enable-only32bit has been requested, then ARCH_MAX (see
+# above) will be "amd64" since that reflects the most that this cpu can do,
+# but VGCONF_ARCH_PRI will be downgraded to "x86", since that reflects the
+# arch corresponding to the primary build (VGCONF_PLATFORM_PRI_CAPS).  It is
 # passed in to compilation of many C files via -VGA_$(VGCONF_ARCH_PRI) and
 # -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS).
 AC_SUBST(VGCONF_ARCH_PRI)
 
-# VGCONF_PLATFORM_PRI_CAPS is the primary build target.  The entire system,
-# including regression and performance tests, will be built for this target.
-# The "_CAPS" indicates that the name is in capital letters, because it's
+# VGCONF_PLATFORM_PRI_CAPS is the primary build target, eg. "AMD64_LINUX".
+# The entire system, including regression and performance tests, will be
+# built for this target.  The "_CAPS" indicates that the name is in capital
+# letters, and it also uses '_' rather than '-' as a separator, because it's
 # used to create various Makefile variables, which are all in caps by
-# convention.  This is in contrast to VGCONF_ARCH_PRI and VGCONF_OS which
-# are not in caps.
+# convention and cannot contain '-' characters.  This is in contrast to
+# VGCONF_ARCH_PRI and VGCONF_OS which are not in caps.
 AC_SUBST(VGCONF_PLATFORM_PRI_CAPS)
 
 # VGCONF_PLATFORM_SEC_CAPS is the secondary build target, if there is one.
@@ -1763,9 +1765,9 @@ AC_OUTPUT(
 
 cat<<EOF
 
configure.in: ARCH_MAX        = ${ARCH_MAX}
configure.in: VGCONF_ARCH_PRI = ${VGCONF_ARCH_PRI}
-
        Maximum build arch: ${ARCH_MAX}
        Primary build arch: ${VGCONF_ARCH_PRI}
+                   Build OS: ${VGCONF_OS}
        Primary build target: ${VGCONF_PLATFORM_PRI_CAPS}
      Secondary build target: ${VGCONF_PLATFORM_SEC_CAPS}
          Default supp files: ${DEFAULT_SUPP}