From 45fe03721b861612532f016f4e5a0100e7f59da6 Mon Sep 17 00:00:00 2001 From: Andrii Hermaniuk Date: Fri, 29 Apr 2022 11:08:25 +0200 Subject: [PATCH] add --- du7/snake/Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 du7/snake/Makefile diff --git a/du7/snake/Makefile b/du7/snake/Makefile new file mode 100644 index 0000000..d71d436 --- /dev/null +++ b/du7/snake/Makefile @@ -0,0 +1,14 @@ +CFLAGS=-std=c99 -Wall -g + +all: game + +%.o: %.c + gcc $(CFLAGS) -c $< -o $@ + +clean: + rm *.o + rm game + +game: main.o world.o snake.o + gcc -rdynamic -g main.o world.o snake.o -lcurses -lm -o game +