From a371c28e6c829203f91a59e9b92b7ca4a5362f33 Mon Sep 17 00:00:00 2001 From: Chu'vok Date: Fri, 13 Sep 2024 15:05:09 +0200 Subject: [PATCH] added makefile --- .gitignore | 1 + makefile | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 .gitignore create mode 100644 makefile diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..89f9ac0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +out/ diff --git a/makefile b/makefile new file mode 100644 index 0000000..35c4dfb --- /dev/null +++ b/makefile @@ -0,0 +1,20 @@ +all: out/test out/string out/color out/hello out/ask out/snek + +out/test: test/test.c out + $(CC) $< -Wall $(CFLAGS) -o $@ +out/string: test/string.c out + $(CC) $< -Wall $(CFLAGS) -o $@ +out/color: test/color.c out + $(CC) $< -Wall $(CFLAGS) -o $@ +out/hello: example/hello.c out + $(CC) $< -Wall $(CFLAGS) -o $@ +out/ask: example/ask.c out + $(CC) $< -Wall $(CFLAGS) -o $@ +out/snek: example/snek.c out + $(CC) $< -Wall $(CFLAGS) -o $@ + +out: + mkdir -p out + +clean: + rm -rf out