From f991450cd6a377641047bdecc8a9708396aa1b35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Fri, 21 Jun 2019 16:19:17 +0200 Subject: [PATCH 20/30] Makefile: Allow user-specified compiler flags to be used. --- Makefile | 4 ++-- test_cc1541/Makefile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index ff1d2b3..4208fe2 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ cc1541: cc1541.o - $(CC) -o $@ $^ + $(CC) -o $@ $^ $(LDFLAGS) %.o: %.c - $(CC) -std=c99 -c $< + $(CC) -std=c99 $(CFLAGS) -c $< clean: rm -rf *.o cc1541 *~ diff --git a/test_cc1541/Makefile b/test_cc1541/Makefile index 20a6fe4..0f97d7e 100644 --- a/test_cc1541/Makefile +++ b/test_cc1541/Makefile @@ -1,8 +1,8 @@ test_cc1541: test_cc1541.o - $(CC) -o $@ $^ + $(CC) -o $@ $^ $(LDFLAGS) %.o: %.c - $(CC) -std=c99 -c $< + $(CC) -std=c99 $(CFLAGS) -c $< test: test_cc1541 ./test_cc1541 ../cc1541 -- 2.21.0