Blob Blame History Raw
From 4c923fdbbdf0b310b1e6f480b45b1cc841b65293 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org>
Date: Sun, 28 Jul 2019 15:25:00 +0200
Subject: [PATCH 34/36] Makefile: Handle compiler-flags properly.

---
 Makefile | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 7036965..98ad807 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+override CFLAGS := -std=c99 $(CFLAGS)
+
 bindir ?= /usr/local/bin
 
 INSTALL ?= install
@@ -22,7 +24,4 @@ install: all
 clean:
 	rm -rf *.o cc1541 test_cc1541 *~
 
-%.o: %.c
-	$(CC) -std=c99 $(CFLAGS) -c $<
-
 .PHONY: all check clean install test
-- 
2.21.0