From 98f49d28233f68aeb9dfccc6d7e633ae35449e00 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Sat, 17 May 2014 13:53:11 +0200 Subject: build: CPPFLAGS is more common than INCLUDES MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rename INCLUDES to CPPFLAGS since the latter is more commonly used for preprocessor options. Change-Id: I522bb01c44856d0eccf221fa43d2d644bdf01d69 Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/5764 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki --- Makefile.inc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'Makefile.inc') diff --git a/Makefile.inc b/Makefile.inc index b139403053..d76fab9cbd 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -214,12 +214,11 @@ ifneq ($(CONFIG_LOCALVERSION),"") COREBOOT_EXTRA_VERSION := -$(call strip_quotes,$(CONFIG_LOCALVERSION)) endif -INCLUDES := -Isrc -Isrc/include -I$(obj) -INCLUDES += -Isrc/device/oprom/include -# abspath is a workaround for romcc -INCLUDES += -include $(src)/include/kconfig.h +CPPFLAGS := -Isrc -Isrc/include -I$(obj) +CPPFLAGS += -Isrc/device/oprom/include +CPPFLAGS += -include $(src)/include/kconfig.h -CFLAGS_common = $(INCLUDES) -Os -pipe -g -nostdinc +CFLAGS_common = $(CPPFLAGS) -Os -pipe -g -nostdinc CFLAGS_common += -nostdlib -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes CFLAGS_common += -Wwrite-strings -Wredundant-decls -Wno-trigraphs CFLAGS_common += -Wstrict-aliasing -Wshadow -- cgit v1.2.3