summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPreston Pan <preston@nullring.xyz>2023-02-06 02:04:44 -0800
committerPreston Pan <preston@nullring.xyz>2023-02-06 02:04:44 -0800
commit762bf741fd6db043f06448a19b554cc4946777e6 (patch)
tree17b2089bb7cb574db685fcc42caee5cf30553d13 /Makefile
parentfdedca4e02bfcafc1cac049c98c8fa202f8d4c24 (diff)
add version message; change binary name
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index a683251..e27b253 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,15 @@
CC=gcc
-CFLAGS=-I. -pthread -fsanitize=address
+CFLAGS=-I. -pthread
DESTDIR=/usr/local/bin
generate:
- $(CC) -o snake snake.c vector.c conio.c $(CFLAGS)
+ $(CC) -o snake3 snake.c vector.c conio.c $(CFLAGS)
install:
- cp snake $(DESTDIR)
+ cp snake3 $(DESTDIR)
clean:
- rm snake
+ rm snake3
+
+uninstall:
+ -rm $(DESTDIR)/snake3