summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b771781..f0b7858 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,13 @@
CFLAGS = -O2 -g
-LDFLAGS != pkg-config --libs vulkan sdl2 libpng
+LDFLAGS != pkg-config --libs vulkan sdl2
-vulkan: main.c vert.spv frag.spv
+all: vulkan shader
+
+vulkan: main.c
gcc $(CFLAGS) -o vk main.c $(LDFLAGS) -lm
+shader: vert.spv frag.spv
+
%.spv: shader.%
glslc $^ -o $@