diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 $@ |