summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2010-07-23 21:08:24 -0400
committerGaetan Nadon <memsize@videotron.ca>2010-07-24 09:05:30 -0400
commitb93e0ecfd0ed7b38cbc976d584318e11369ef988 (patch)
treeb230e4c4a54eb71452a31748c1e224c8c978f3be
parent3341e23720791201a02770f1d23693e6d9ca683a (diff)
simplify Makefile as per-target compilation flags are not needed
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@videotron.ca>
-rw-r--r--src/Makefile.am2
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) \