commit ed910abdfa5827735d494d4c15fb724e22e9b014
parent f9ff54519d27e0dd54484dd414ccc058f297dd65
Author: Antoni Sawicki <as@tenoware.com>
Date: Tue, 23 Oct 2018 02:29:01 -0700
Merge pull request #16 from Johnnynator/master
Makefile: Dehardcode compiler and cflags
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -1,8 +1,10 @@
+CFLAGS = -Wall -O3
+
all: ttyplot
ttyplot: ttyplot.c
- gcc ttyplot.c -o ttyplot -Wall -O3 -lcurses
+ $(CC) $< -o $@ $(CFLAGS) $(LDFLAGS) -lcurses
clean:
rm -f ttyplot