Auto shader compilation
This commit is contained in:
14
Makefile
14
Makefile
@@ -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
|
||||
Reference in New Issue
Block a user