blob: 10a18b3e485ebfc2d09abf48d4aa5148c9b1a814 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
diff --git a/Makefile b/Makefile
index 8116950..e8b4df9 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
CFLAGS ?= -g -O2 -Wall -Wextra -D_FORTIFY_SOURCE=2 -fstack-protector --param ssp-buffer-size=4
+LDFLAGS ?=
# for install-home
BINDIR ?= $(HOME)/bin
@@ -24,7 +25,7 @@ all: ltunify read-dev-usbmon
read-dev-usbmon: read-dev-usbmon.c hidraw.c
ltunify: ltunify.c hidpp20.c
- $(CC) $(CFLAGS) -o $(OUTDIR)$@ $< -lrt $(LTUNIFY_DEFINES)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $(OUTDIR)$@ $< -lrt $(LTUNIFY_DEFINES)
.PHONY: all clean install-home install install-udevrule uninstall
clean:
|