diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -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 |
