From de7432d8eceb2f3eee5d7d88129b7275ab678cc8 Mon Sep 17 00:00:00 2001 From: Tanner Robison Date: Wed, 26 Aug 2026 22:24:25 -0700 Subject: ncurses library This also let me fix the scaling issue where we got oval shaped sandpile --- Makefile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3