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>
This commit is contained in:
Khem Raj 2017-04-06 22:02:30 +00:00 committed by Bjorn Andersson
parent 3f62f9ba1e
commit 4ad63502c5

View File

@ -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)