blob: 7752de6a9ad1f97a8533341439dca05e41010592 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
From 60c295e1a7852ab5311b0f3be6945a37c8256a2a Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 6 Apr 2017 22:02:30 +0000
Subject: [PATCH] Makefile: Allow compiler/linker flags to be overridden
This helps with cross compilation where toolchains specify
certain flags via environment e.g. CFLAGS/LDFLAGS
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
Makefile | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index 0783e49..2efba54 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
OUT := qmic
-CFLAGS := -Wall -g -O2
-LDFLAGS :=
-prefix := /usr/local
+CFLAGS ?= -Wall -g -O2
+LDFLAGS ?=
+prefix ?= /usr/local
SRCS := qmic.c qmi_message.c qmi_struct.c
OBJS := $(SRCS:.c=.o)
--
1.9.1
|