Makefile: allow $(CFLAGS), $(LDFLAGS) override

The caller might have specified CFLAGS or LDFLAGS. Let's respect those.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
This commit is contained in:
Brian Norris 2018-07-02 09:50:10 -07:00 committed by Bjorn Andersson
parent a75ad5dc2a
commit 5eb67a1fb5

View File

@ -1,8 +1,8 @@
OUT := rmtfs OUT := rmtfs
CFLAGS := -Wall -g -O2 CFLAGS += -Wall -g -O2
LDFLAGS := -lqrtr -ludev LDFLAGS += -lqrtr -ludev
prefix := /usr/local prefix = /usr/local
SRCS := qmi_rmtfs.c rmtfs.c sharedmem.c storage.c util.c SRCS := qmi_rmtfs.c rmtfs.c sharedmem.c storage.c util.c
OBJS := $(SRCS:.c=.o) OBJS := $(SRCS:.c=.o)