commit 73e319e2963aefd004a57dddd91f36ebb5ca467d
parent 1a93b72eeb26567e2e259df10528adf1e28b7f50
Author: phoebos <ben@bvnf.space>
Date: Mon, 20 Sep 2021 00:54:42 +0100
Makefile: respect LDFLAGS
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -8,6 +8,7 @@ BINS = \
true \
XCFLAGS = $(CFLAGS) -Wall -Wextra -Wpedantic -g
+XLDFLAGS = $(LDFLAGS)
.PHONY: clean
@@ -17,7 +18,7 @@ bin:
mkdir -p bin
$(BINS:%=bin/%): $(BINS:=.c)
- $(CC) $(XCFLAGS) -o $@ $(@:bin/%=%.c)
+ $(CC) $(XCFLAGS) $(XLDFLAGS) -o $@ $(@:bin/%=%.c)
clean:
rm -fr bin