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

The caller might have specified CFLAGS or LDFLAGS. Let's respect those.
Additionally drop LDFLAGS var definition as it is empty.
This commit is contained in:
Jami Kettunen 2022-12-28 17:29:20 +02:00 committed by Bjorn Andersson
parent 9dc7a88548
commit a4398c8bf2

View File

@ -3,10 +3,9 @@ proj-major := 1
proj-minor := 0
proj-version := $(proj-major).$(proj-minor)
CFLAGS := -Wall -g
LDFLAGS :=
CFLAGS += -Wall -g
prefix = /usr/local
prefix := /usr/local
bindir := $(prefix)/bin
libdir := $(prefix)/lib
includedir := $(prefix)/include