diff options
author | Mike Holmes <mike.holmes@linaro.org> | 2014-02-19 18:14:58 -0500 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2014-02-24 12:47:44 +0400 |
commit | f5829c4a78f561422bbc831518d53f621490b4cb (patch) | |
tree | 603855c0b711c18de0bf1765e3b96babf61e1d07 /Makefile.inc | |
parent | ab883023161072cf1d714337358926daeddd8d43 (diff) |
Makefiles: Allow CFLAGS to overide the build
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
Diffstat (limited to 'Makefile.inc')
-rw-r--r-- | Makefile.inc | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/Makefile.inc b/Makefile.inc index 523385d24..fd7d43542 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -4,17 +4,16 @@ # SPDX-License-Identifier: BSD-3-Clause PLATFORM ?= linux-generic -CFLAGS += -DODP_DEBUG=1 -CFLAGS += -O3 -#CFLAGS += -O0 -g +EXTRA_CFLAGS += -DODP_DEBUG=1 +EXTRA_CFLAGS += -O3 OBJ_DIR = ./obj DESTDIR ?= $(ODP_ROOT)/build -CFLAGS += -W -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -CFLAGS += -Wmissing-declarations -Wold-style-definition -Wpointer-arith -CFLAGS += -Wcast-align -Wnested-externs -Wcast-qual -Wformat-nonliteral -CFLAGS += -Wformat-security -Wundef -Wwrite-strings +EXTRA_CFLAGS += -W -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes +EXTRA_CFLAGS += -Wmissing-declarations -Wold-style-definition -Wpointer-arith +EXTRA_CFLAGS += -Wcast-align -Wnested-externs -Wcast-qual -Wformat-nonliteral +EXTRA_CFLAGS += -Wformat-security -Wundef -Wwrite-strings CC ?= gcc LD ?= gcc @@ -26,5 +25,5 @@ RMDIR := rm -rf RM := rm -f COPY := cp -r -CFLAGS += -pthread +EXTRA_CFLAGS += -pthread LDFLAGS += -pthread |