added makefile

This commit is contained in:
Chu'vok
2024-09-13 15:05:09 +02:00
parent 4dfcf8fe85
commit a371c28e6c
2 changed files with 21 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
out/

20
makefile Normal file
View File

@@ -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