From 4ad63502c5ce3f4fbdf223dc7f58d6ba9bbf5eea Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 6 Apr 2017 22:02:30 +0000 Subject: 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 Signed-off-by: Bjorn Andersson --- Makefile | 6 +++--- 1 file 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) -- cgit v1.2.3