Auto shader compilation

This commit is contained in:
2026-02-20 12:11:06 +00:00
parent 5833cc1f22
commit 7dc47faeab
4 changed files with 10 additions and 6 deletions

View File

@@ -1,13 +1,17 @@
CFLAGS = -std=c++17 -O2
LDFLAGS = -lglfw -lvulkan -ldl -lpthread -lX11 -lXxf86vm -lXrandr -lXi
VulkanTest: *.cpp *.hpp
g++ $(CFLAGS) -o a.out *.cpp $(LDFLAGS)
SOURCES = $(wildcard *.cpp)
HEADERS = $(wildcard *.hpp)
VulkanTest: $(SOURCES) $(HEADERS)
./compile.sh
g++ $(CFLAGS) -o VulkanTest $(SOURCES) $(LDFLAGS)
.PHONY: test clean
test: a.out
./a.out
test: VulkanTest
./VulkanTest
clean:
rm -f a.out
rm -f VulkanTest