back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..8754c3c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+CC=gcc
+CFLAGS=-Wall -g -c
+
+all: pacman
+
+pacman: ghosts.o field.o pac.o pacman.o
+ $(CC) ghosts.o field.o pac.o pacman.o -lncurses -o pacman
+
+field.o: field.c
+ $(CC) $(CFLAGS) field.c
+
+ghosts.o: ghosts.c
+ $(CC) $(CFLAGS) ghosts.c
+
+pacman.o: pacman.c
+ $(CC) $(CFLAGS) pacman.c
+
+pac.o: pac.c
+ $(CC) $(CFLAGS) pac.c