aboutsummaryrefslogtreecommitdiff
path: root/Tupfile
diff options
context:
space:
mode:
Diffstat (limited to 'Tupfile')
-rw-r--r--Tupfile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tupfile b/Tupfile
new file mode 100644
index 0000000..6c82446
--- /dev/null
+++ b/Tupfile
@@ -0,0 +1,8 @@
+CC = clang
+LD = clang
+CFLAGS = -Wall -Wextra -Wno-unused-parameter -O3 -std=c99 -iquoteinc -include_.h
+LDFLAGS = -O3 -s
+LIBS = -lm -lSDL2 -lSDL2_mixer
+
+: foreach src/*.c |> $(CC) $(CFLAGS) -c -o %o %f |> build/%B.o
+: build/*.o |> $(LD) $(LDFLAGS) -o %o %f $(LIBS) |> build/game