From 01ba05cad0f685fa953d7db490f0105d09a6b6d8 Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Wed, 27 Dec 2023 01:11:12 +0100 Subject: initial Signed-off-by: Anna (navi) Figueiredo Gomes --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d7a272c --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +CFLAGS = -O2 -g +LDFLAGS != pkg-config --libs vulkan sdl2 + +vulkan: main.c vert.spv frag.spv + gcc $(CFLAGS) -o vk main.c $(LDFLAGS) + +%.spv: shader.% + glslc $^ -o $@ + +.PHONY: test clean + +test: vulkan + ./vk + +clean: + rm -f vk *.spv -- cgit v1.2.3