summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-04-06 22:02:30 +0000
committerBjorn Andersson <bjorn.andersson@linaro.org>2018-03-05 21:54:21 -0800
commit4ad63502c5ce3f4fbdf223dc7f58d6ba9bbf5eea (patch)
treefb44bc6764ac4640f045e1e0b31599f975a139f5
parent3f62f9ba1e38adfc19f386ab6cf70b94948532f4 (diff)
Makefile: Allow compiler/linker flags to be overriddenupstream/0.0+1g4ad6350
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--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 64540fd..a3a81d7 100644
--- a/Makefile
+++ b/Makefile
@@ -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)