[PATCH video-intel] simplify Makefile as per-target compilation flags are not needed

Gaetan Nadon memsize at videotron.ca
Fri Jul 23 16:15:22 PDT 2010


We then do not need the AM_PROG_CC_C_O to detect compiler who
do not accept both -c and -o together.

This setup is only needed when the same source is compiled
multiple times with different compiler options.

Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
---
 configure.ac                     |    1 -
 src/legacy/i810/xvmc/Makefile.am |    4 ++--
 src/xvmc/Makefile.am             |    3 ++-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index c62af8a..d5989a6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -43,7 +43,6 @@ XORG_DEFAULT_OPTIONS
 # Initialize libtool
 AC_DISABLE_STATIC
 AC_PROG_LIBTOOL
-AM_PROG_CC_C_O
 
 PKG_CHECK_MODULES(GEN4ASM, [intel-gen4asm >= 1.0], [gen4asm=yes], [gen4asm=no])
 AM_CONDITIONAL(HAVE_GEN4ASM, test x$gen4asm = xyes)
diff --git a/src/legacy/i810/xvmc/Makefile.am b/src/legacy/i810/xvmc/Makefile.am
index 69add1e..1bac311 100644
--- a/src/legacy/i810/xvmc/Makefile.am
+++ b/src/legacy/i810/xvmc/Makefile.am
@@ -5,7 +5,7 @@ endif
 libI810XvMC_la_SOURCES = I810XvMC.c \
 			 I810XvMC.h
 
-libI810XvMC_la_CFLAGS = @CWARNFLAGS@ @XORG_CFLAGS@ @DRM_CFLAGS@ @DRI_CFLAGS@ \
-			-DTRUE=1 -DFALSE=0
+AM_CFLAGS = @CWARNFLAGS@ @XORG_CFLAGS@ @DRM_CFLAGS@ @DRI_CFLAGS@ -DTRUE=1 -DFALSE=0
+
 libI810XvMC_la_LDFLAGS = -version-number 1:0:0
 libI810XvMC_la_LIBADD = @DRI_LIBS@ @DRM_LIBS@ @XVMCLIB_LIBS@
diff --git a/src/xvmc/Makefile.am b/src/xvmc/Makefile.am
index 6ee7dc4..d3ed449 100644
--- a/src/xvmc/Makefile.am
+++ b/src/xvmc/Makefile.am
@@ -16,7 +16,8 @@ libIntelXvMC_la_SOURCES = intel_xvmc.c \
         intel_batchbuffer.c            \
         intel_batchbuffer.h
 
-libIntelXvMC_la_CFLAGS = @XORG_CFLAGS@ @DRM_CFLAGS@ @DRI_CFLAGS@ \
+AM_CFLAGS = @XORG_CFLAGS@ @DRM_CFLAGS@ @DRI_CFLAGS@ \
 	@XVMCLIB_CFLAGS@ -I$(top_srcdir)/src -DTRUE=1 -DFALSE=0
+
 libIntelXvMC_la_LDFLAGS = -version-number 1:0:0
 libIntelXvMC_la_LIBADD = @DRI_LIBS@ @DRM_LIBS@ @XVMCLIB_LIBS@ -lpthread -ldrm_intel
-- 
1.6.0.4



More information about the xorg-devel mailing list