summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTanner Robison <[email protected]>2026-08-26 22:24:25 -0700
committerTanner Robison <[email protected]>2026-08-26 22:24:25 -0700
commitde7432d8eceb2f3eee5d7d88129b7275ab678cc8 (patch)
tree30c320f44ede0c55f8be5d01e1236b545490ec75 /Makefile
parent250d8132dd23cb5ef419960d765335ce2ade9135 (diff)
ncurses library
This also let me fix the scaling issue where we got oval shaped sandpile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 6943f7f..5faf352 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,14 @@
-CC = gcc
-Cflags = -I.
+CC=clang
+CFLAGS=-Wall -Wextra -Wpedantic
+NCURSES=$(shell pkg-config --cflags --libs ncursesw)
-abellian_sandpile:
- $(CC) -o abellian_sandpile abellian_sandpile.c
+abellian_sandpile: abellian_sandpile.c
+ $(CC) $(CFLAGS) abellian_sandpile.c -o abellian_sandpile $(NCURSES)
+
+run: abellian_sandpile
+ ./abellian_sandpile
clean:
rm -f abellian_sandpile
+
+.PHONY: run clean