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
|
||||
BIN
VulkanTest
Executable file
BIN
VulkanTest
Executable file
Binary file not shown.
@@ -3,5 +3,5 @@
|
||||
layout (location = 0) out vec4 outColor;
|
||||
|
||||
void main() {
|
||||
outColor = vec4(1.0, 0.0, 0.0, 1.0);
|
||||
outColor = vec4(1.0, 1.0, 0.0, 1.0);
|
||||
}
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user