make: Fold ASM_CFLAGS into DEFINES.
authorEric Anholt <eric@anholt.net>
Mon, 11 Jun 2012 17:25:05 +0000 (10:25 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 21 Jun 2012 16:58:12 +0000 (09:58 -0700)
Every place that uses ASM_FLAGS already uses DEFINES.  Not including
it in DEFINES is just a way to screw up potential users, as I've done
several times while working on the build system.

14 files changed:
configs/autoconf.in
configure.ac
src/gallium/drivers/Makefile.am
src/gallium/drivers/r300/Makefile.am
src/gallium/drivers/r600/Makefile.am
src/mesa/Makefile
src/mesa/drivers/dri/common/Makefile.am
src/mesa/drivers/dri/i915/Makefile.am
src/mesa/drivers/dri/i965/Makefile.am
src/mesa/drivers/dri/nouveau/Makefile.am
src/mesa/drivers/dri/r200/Makefile.am
src/mesa/drivers/dri/radeon/Makefile.am
src/mesa/drivers/dri/swrast/Makefile.am
src/mesa/libdricore/Makefile.am

index 48f4504a2349ee21b3f5493e6e97e3ba7fb79365..6deedaa5e5a191263e1642468ae2a758306f429a 100644 (file)
@@ -11,13 +11,12 @@ CC = @CC@
 CXX = @CXX@
 OPT_FLAGS = @OPT_FLAGS@
 ARCH_FLAGS = @ARCH_FLAGS@
-ASM_FLAGS = @ASM_FLAGS@
 PIC_FLAGS = @PIC_FLAGS@
 DEFINES = @DEFINES@
 API_DEFINES = @API_DEFINES@
 SHARED_GLAPI = @SHARED_GLAPI@
 CFLAGS_NOVISIBILITY = @CPPFLAGS@ @CFLAGS@ \
-       $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES)
+       $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
 CXXFLAGS_NOVISIBILITY = @CPPFLAGS@ @CXXFLAGS@ \
        $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
 CFLAGS = $(CFLAGS_NOVISIBILITY) @VISIBILITY_CFLAGS@
index 7ba0164e72e0701836a4d5cd1b6ab09a120c4633..5e2cbd5264ed25f273c861552e1b2a62de3a8ebb 100644 (file)
@@ -453,7 +453,6 @@ AC_ARG_ENABLE([asm],
     [enable_asm=yes]
 )
 asm_arch=""
-ASM_FLAGS=""
 MESA_ASM_FILES=""
 GLAPI_ASM_SOURCES=""
 AC_MSG_CHECKING([whether to enable assembly])
@@ -502,19 +501,19 @@ if test "x$enable_asm" = xyes; then
 
     case "$asm_arch" in
     x86)
-        ASM_FLAGS="-DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM"
+        DEFINES="$DEFINES -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM"
         MESA_ASM_FILES='$(X86_FILES)'
         GLAPI_ASM_SOURCES='$(X86_API)'
         AC_MSG_RESULT([yes, x86])
         ;;
     x86_64)
-        ASM_FLAGS="-DUSE_X86_64_ASM"
+        DEFINES="$DEFINES -DUSE_X86_64_ASM"
         MESA_ASM_FILES='$(X86_64_FILES)'
         GLAPI_ASM_SOURCES='$(X86-64_API)'
         AC_MSG_RESULT([yes, x86_64])
         ;;
     sparc)
-        ASM_FLAGS="-DUSE_SPARC_ASM"
+        DEFINES="$DEFINES -DUSE_SPARC_ASM"
         MESA_ASM_FILES='$(SPARC_FILES)'
         GLAPI_ASM_SOURCES='$(SPARC_API)'
         AC_MSG_RESULT([yes, sparc])
@@ -524,7 +523,6 @@ if test "x$enable_asm" = xyes; then
         ;;
     esac
 fi
-AC_SUBST([ASM_FLAGS])
 AC_SUBST([MESA_ASM_FILES])
 AC_SUBST([GLAPI_ASM_SOURCES])
 
@@ -2128,9 +2126,9 @@ AM_CONDITIONAL(HAVE_X11_DRIVER, echo "$DRIVER_DIRS" | grep 'x11' >/dev/null 2>&1
 AM_CONDITIONAL(HAVE_DRI_DRIVER, echo "$DRIVER_DIRS" | grep 'dri' >/dev/null 2>&1)
 AM_CONDITIONAL(HAVE_OSMESA_DRIVER, echo "$DRIVER_DIRS" | grep 'osmesa' >/dev/null 2>&1)
 
-AM_CONDITIONAL(HAVE_X86_ASM, echo "$ASM_FLAGS" | grep 'X86_ASM' >/dev/null 2>&1)
-AM_CONDITIONAL(HAVE_X86_64_ASM, echo "$ASM_FLAGS" | grep 'X86_64_ASM' >/dev/null 2>&1)
-AM_CONDITIONAL(HAVE_SPARC_ASM, echo "$ASM_FLAGS" | grep 'SPARC_ASM' >/dev/null 2>&1)
+AM_CONDITIONAL(HAVE_X86_ASM, echo "$DEFINES" | grep 'X86_ASM' >/dev/null 2>&1)
+AM_CONDITIONAL(HAVE_X86_64_ASM, echo "$DEFINES" | grep 'X86_64_ASM' >/dev/null 2>&1)
+AM_CONDITIONAL(HAVE_SPARC_ASM, echo "$DEFINES" | grep 'SPARC_ASM' >/dev/null 2>&1)
 
 dnl prepend CORE_DIRS to SRC_DIRS
 SRC_DIRS="$CORE_DIRS $SRC_DIRS"
@@ -2303,7 +2301,7 @@ cflags=`echo $CFLAGS $OPT_FLAGS $PIC_FLAGS $ARCH_FLAGS | \
     $SED 's/^ *//;s/  */ /;s/ *$//'`
 cxxflags=`echo $CXXFLAGS $OPT_FLAGS $PIC_FLAGS $ARCH_FLAGS | \
     $SED 's/^ *//;s/  */ /;s/ *$//'`
-defines=`echo $DEFINES $ASM_FLAGS | $SED 's/^ *//;s/  */ /;s/ *$//'`
+defines=`echo $DEFINES | $SED 's/^ *//;s/  */ /;s/ *$//'`
 echo ""
 echo "        CFLAGS:          $cflags"
 echo "        CXXFLAGS:        $cxxflags"
index 97c5695fa15f9c5c551d5fbcd6574ec0a6202219..409bae0955f45f191b65e331e9a50ede192085f7 100644 (file)
@@ -5,7 +5,6 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/src/gallium/auxiliary \
        -I$(top_srcdir)/src/gallium/drivers \
        $(DEFINES) \
-       $(ASM_FLAGS) \
        $(PIC_FLAGS)
 
 noinst_LIBRARIES =
index 11f0d18b91f3e944d992f6f0150febb67b5ea0a1..3d08611752a4a233297d19c5cedce6646760a26d 100644 (file)
@@ -17,7 +17,6 @@ AM_CFLAGS = \
        $(RADEON_CFLAGS) \
        $(DEFINES) \
        $(ARCH_FLAGS) \
-       $(ASM_FLAGS) \
        $(OPT_FLAGS) \
        $(PIC_FLAGS)
 
index 31d885a34168fdb45eab8b95cf1281e13e921ba3..ed89d2adfe9d696d01705637d8fe32a7bd42a047 100644 (file)
@@ -10,7 +10,6 @@ AM_CFLAGS = \
        $(RADEON_CFLAGS) \
        $(DEFINES) \
        $(ARCH_FLAGS) \
-       $(ASM_FLAGS) \
        $(OPT_FLAGS) \
        $(PIC_FLAGS) \
        $(VISIBILITY_CFLAGS)
index b0b461fddfc9445ba5d04fa0592862762bc58a2c..6ed7166ea8370a46021d9097c6dfee0b84e606fb 100644 (file)
@@ -124,10 +124,10 @@ driver_subdirs: $(MESA_LIBS) $(DRICORE_TARGET)
 ######################################################################
 # Assembly subdirs
 asm_subdirs:
-       @ if echo "$(ASM_FLAGS)" | grep -q USE_X86_ASM ; then \
+       @ if echo "$(DEFINES)" | grep -q USE_X86_ASM ; then \
                (cd x86 && $(MAKE)) || exit 1 ; \
        fi
-       @ if echo "$(ASM_FLAGS)" | grep -q USE_X86_64_ASM ; then \
+       @ if echo "$(DEFINES)" | grep -q USE_X86_64_ASM ; then \
                (cd x86 && $(MAKE)) || exit 1 ; \
                (cd x86-64 && $(MAKE)) || exit 1 ; \
        fi
index 27c3e3d4223fa877104bf2b9165c10c929473ce5..d81bc0e3f4ddeccb46cdf07f64044a52ce20cae0 100644 (file)
@@ -25,7 +25,6 @@ AM_CFLAGS = \
        -I$(top_srcdir)/src/mapi \
        -I$(top_srcdir)/src/mesa/ \
        $(DEFINES) \
-       $(ASM_FLAGS) \
        $(API_DEFINES) \
        $(LIBDRM_CFLAGS)
 
index 75267e221963c87ab6e7d559f62ce401b2d4877f..7ec4c223149427cc5968a424c48d83af61b1d700 100644 (file)
@@ -36,7 +36,6 @@ AM_CFLAGS = \
        -I$(top_srcdir)/src/mesa/drivers/dri/intel \
        -I$(top_srcdir)/src/mesa/drivers/dri/intel/server \
        $(DEFINES) \
-       $(ASM_FLAGS) \
        $(API_DEFINES) \
        $(INTEL_CFLAGS)
 
index f5dfced9996bec39281d2f9e69bfb19712db4b55..c1526aef83516b232f48af29e9b7f5633d4fad81 100644 (file)
@@ -35,7 +35,6 @@ AM_CFLAGS = \
        -I$(top_srcdir)/src/mesa/drivers/dri/intel \
        -I$(top_srcdir)/src/mesa/drivers/dri/intel/server \
        $(DEFINES) \
-       $(ASM_FLAGS) \
        $(API_DEFINES) \
        $(INTEL_CFLAGS)
 
index 3a3c0af9a71cb5e787cf69bc241b83c74668774a..82d3804f838878dcab24effd529c2296ad4cc2ba 100644 (file)
@@ -33,7 +33,6 @@ AM_CFLAGS = \
        -I$(top_srcdir)/src/mesa/ \
        -I$(top_srcdir)/src/mesa/drivers/dri/common \
        $(DEFINES) \
-       $(ASM_FLAGS) \
        $(API_DEFINES) \
        $(NOUVEAU_CFLAGS)
 
index f15dbc09ac2817db1a43665ad6e101713120e392..5ec53de7d3d89262d85612686de52538af6d42b3 100644 (file)
@@ -35,7 +35,6 @@ AM_CFLAGS = \
        -I$(top_srcdir)/src/mesa/drivers/dri/common \
        -I$(top_srcdir)/src/mesa/drivers/dri/r200/server \
        $(DEFINES) \
-       $(ASM_FLAGS) \
        $(API_DEFINES) \
        $(RADEON_CFLAGS)
 
index 89b778d51100b666c058473b6c16e8b364fd9533..ec2d42e1e016b46034202dc6794577fa306a9d34 100644 (file)
@@ -35,7 +35,6 @@ AM_CFLAGS = \
        -I$(top_srcdir)/src/mesa/drivers/dri/common \
        -I$(top_srcdir)/src/mesa/drivers/dri/radeon/server \
        $(DEFINES) \
-       $(ASM_FLAGS) \
        $(API_DEFINES) \
        $(RADEON_CFLAGS)
 
index 3dc7c10444012d4561fc6388dd4ba2ff00c9148b..16a34413bad802238bed2e2ee9d0aaa15a233d81 100644 (file)
@@ -34,7 +34,6 @@ AM_CFLAGS = \
        -I$(top_srcdir)/src/mesa/ \
        -I$(top_srcdir)/src/mesa/drivers/dri/common \
        $(DEFINES) \
-       $(ASM_FLAGS) \
        $(API_DEFINES)
 
 dridir = $(DRI_DRIVER_INSTALL_DIR)
index 729ddd7c33b423d6029a0a7a6cdc3552c19cb506..866f8f153b63ba6a495c5b2b2b999b78cc687bd8 100644 (file)
@@ -34,9 +34,9 @@ AM_CPPFLAGS = \
 
 dridir = $(libdir)/dri
 
-AM_CFLAGS = $(CFLAGS_NOVISIBILITY) $(ASM_FLAGS) -DUSE_DRICORE
-AM_CXXFLAGS = $(CXXFLAGS_NOVISIBILITY) $(ASM_FLAGS) -DUSE_DRICORE
-AM_CCASFLAGS = $(CFLAGS_NOVISIBILITY) $(ASM_FLAGS) -DUSE_DRICORE
+AM_CFLAGS = $(CFLAGS_NOVISIBILITY) -DUSE_DRICORE
+AM_CXXFLAGS = $(CXXFLAGS_NOVISIBILITY) -DUSE_DRICORE
+AM_CCASFLAGS = $(CFLAGS_NOVISIBILITY) -DUSE_DRICORE
 
 libdricore_la_SOURCES = \
        $(MESA_FILES) \