[PATCH v2 libAppleWM] simplify Makefile as per-target compilation flags are not needed

Gaetan Nadon memsize at videotron.ca
Sat Jul 24 06:06:34 PDT 2010


Per-target compilation flags (libAppleWM_la_CFLAGS) are required
when multiple targets which require different compiler flags,
are build in the same makefile.

Automake issues a command with -c and -o flags which not all compilers
support. The object fles are prefixed with libIntelXvMC_la.
The macro AM_PROG_CC_C_O must then be used to provide this feature
on compilers that do not have it. If not, a warning is issued at make time.

This macros checks for compiler support and if missing, uses a "compile"
script it generates in the package root directory.

Currently the driver uses per-target flags but the macro is missing.
Rather than adding the macro, this patch stops using per-target flags
by using the AM_CFLAGS variable for all targets in the makefile, as
there is only one.

Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
---
 src/Makefile.am |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 05b6022..af94350 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -3,7 +3,7 @@ lib_LTLIBRARIES = libAppleWM.la
 libAppleWM_la_SOURCES = \
 	applewm.c
 
-libAppleWM_la_CFLAGS = \
+AM_CFLAGS = \
 	$(APPLEWM_CFLAGS) \
 	$(MALLOC_ZERO_CFLAGS) \
 	$(CWARNFLAGS) \
-- 
1.6.0.4

Provide better commit message


More information about the xorg-devel mailing list