Skip to content

Commit cbec8c7

Browse files
JamiKettunenandersson
authored andcommitted
Makefile: allow $(CFLAGS), $(LDFLAGS) override
The caller might have specified CFLAGS or LDFLAGS. Let's respect those. Additionally add prefix var declaration defaulting to /usr/local.
1 parent 16624da commit cbec8c7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
OUT := qmi-ping
22

3-
CFLAGS := -Wall -g -O2
4-
LDFLAGS := -lqrtr
3+
CFLAGS += -Wall -g -O2
4+
LDFLAGS += -lqrtr
5+
prefix = /usr/local
56

67
SRCS := qmi_ping.c qmi_test.c
78

0 commit comments

Comments
 (0)