From b93e0ecfd0ed7b38cbc976d584318e11369ef988 Mon Sep 17 00:00:00 2001 From: Gaetan Nadon Date: Fri, 23 Jul 2010 21:08:24 -0400 Subject: 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 --- src/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) \ -- cgit v1.2.3