diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-04-06 22:02:30 +0000 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2018-03-05 21:54:21 -0800 |
commit | 4ad63502c5ce3f4fbdf223dc7f58d6ba9bbf5eea (patch) | |
tree | fb44bc6764ac4640f045e1e0b31599f975a139f5 | |
parent | 3f62f9ba1e38adfc19f386ab6cf70b94948532f4 (diff) |
Makefile: Allow compiler/linker flags to be overridden
This helps with cross compilation where toolchains specify
certain flags via environment e.g. CFLAGS/LDFLAGS
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
-rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,8 +1,8 @@ OUT := qmic -CFLAGS := -Wall -g -O2 -LDFLAGS := -prefix := /usr/local +CFLAGS ?= -Wall -g -O2 +LDFLAGS ?= +prefix ?= /usr/local SRCS := accessor.c kernel.c parser.c qmic.c OBJS := $(SRCS:.c=.o) |