From 81be424535d5c3671f42d8347b1a50e9205af3e2 Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Thu, 4 Jan 2024 17:44:00 +0100 Subject: dynamic vertex loading Signed-off-by: Anna (navi) Figueiredo Gomes --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 $@ -- cgit v1.2.3