about summary refs log tree commit diff stats
path: root/Tupfile
diff options
context:
space:
mode:
Diffstat (limited to 'Tupfile')
-rw-r--r--Tupfile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tupfile b/Tupfile
new file mode 100644
index 0000000..cff48e6
--- /dev/null
+++ b/Tupfile
@@ -0,0 +1,4 @@
+CFLAGS += `pkg-config --cflags raylib` `pkg-config --cflags glfw3` `pkg-config --cflags glu` `pkg-config --cflags gl` `pkg-config --cflags sdl2` `pkg-config --cflags SDL2_mixer` `pkg-config --cflags bdw-gc`
+LDFLAGS += `pkg-config --libs raylib` `pkg-config --libs glfw3` `pkg-config --libs glu` `pkg-config --libs gl` `pkg-config --libs sdl2` `pkg-config --libs SDL2_mixer` `pkg-config --libs bdw-gc`
+: foreach src/*.c |> @(CC) $(CFLAGS) -c %f -o %o |> @(BUILD_DIR)/obj/%B.o
+: @(BUILD_DIR)/obj/*.o |> @(CC) %f -o %o $(LDFLAGS) |> @(BUILD_DIR)/bin/Pong