File acpica-override-CFLAGS.diff of Package acpica

Make it possible to extend CFLAGS when invoking make

From: Thomas Renninger <trenn@suse.de>

---
 compiler/Makefile         |    2 +-
 tools/acpiexec/Makefile   |    2 +-
 tools/acpisrc/Makefile    |    2 +-
 tools/acpixtract/Makefile |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

Index: acpica-unix-20101013/compiler/Makefile
===================================================================
--- acpica-unix-20101013.orig/compiler/Makefile
+++ acpica-unix-20101013/compiler/Makefile
@@ -12,7 +12,7 @@ ACPICA_TOOLS =  $(ACPICA_SRC)/tools
 ACPICA_OSL =    $(ACPICA_SRC)/os_specific/service_layers
 
 NOMAN=	YES
-CFLAGS+= -Wall -O2 -Wstrict-prototypes -D_LINUX -DACPI_ASL_COMPILER -I../include -I../compiler
+override CFLAGS+= -Wall -O2 -Wstrict-prototypes -D_LINUX -DACPI_ASL_COMPILER -I../include -I../compiler
 
 #
 # Bison/Flex configuration
Index: acpica-unix-20101013/tools/acpiexec/Makefile
===================================================================
--- acpica-unix-20101013.orig/tools/acpiexec/Makefile
+++ acpica-unix-20101013/tools/acpiexec/Makefile
@@ -11,7 +11,7 @@ ACPICA_TOOLS =  $(ACPICA_SRC)/tools
 ACPICA_OSL =    $(ACPICA_SRC)/os_specific/service_layers
 
 NOMAN=	YES
-CFLAGS+= -Wall -g -D_LINUX -DNDEBUG -D_CONSOLE -DACPI_EXEC_APP -Wstrict-prototypes -I$(ACPICA_SRC)/include 
+override CFLAGS+= -Wall -g -D_LINUX -DNDEBUG -D_CONSOLE -DACPI_EXEC_APP -Wstrict-prototypes -I$(ACPICA_SRC)/include
 
 COMPILE = $(CC) -c $(CFLAGS) -o$@ $?
 LDFLAGS += -lpthread -lrt
Index: acpica-unix-20101013/tools/acpixtract/Makefile
===================================================================
--- acpica-unix-20101013.orig/tools/acpixtract/Makefile
+++ acpica-unix-20101013/tools/acpixtract/Makefile
@@ -3,7 +3,7 @@
 PROG=	acpixtract
 SRCS=	acpixtract.c
 
-CFLAGS+= -Wall -O2 -D_LINUX -DACPI_APPLICATION -Wstrict-prototypes -I../../include 
+override CFLAGS+= -D_LINUX -DACPI_APPLICATION -Wstrict-prototypes -I../../include
 
 
 acpixtract : $(patsubst %.c,%.o, $(SRCS))
Index: acpica-unix-20101013/tools/acpisrc/Makefile
===================================================================
--- acpica-unix-20101013.orig/tools/acpisrc/Makefile
+++ acpica-unix-20101013/tools/acpisrc/Makefile
@@ -4,7 +4,7 @@ PROG=	acpisrc
 SRCS=	ascase.c asconvrt.c asfile.c asmain.c asremove.c astable.c \
         asutils.c osunixdir.c ../../common/getopt.c
 
-CFLAGS+= -Wall -O2 -D_LINUX -DACPI_APPLICATION -Wstrict-prototypes -I../../include 
+override CFLAGS+= -Wall -O2 -D_LINUX -DACPI_APPLICATION -Wstrict-prototypes -I../../include
 
 
 aslmain : $(patsubst %.c,%.o, $(SRCS))