mirror of
https://github.com/elima/gpu-playground.git
synced 2025-06-06 15:36:35 +00:00
23 lines
431 B
Makefile
23 lines
431 B
Makefile
TARGET=vulkan-minimal
|
|
|
|
GLSL_VALIDATOR=../glslangValidator
|
|
|
|
all: $(TARGET) vert.spv frag.spv
|
|
|
|
vert.spv: shader.vert
|
|
$(GLSL_VALIDATOR) -V shader.vert
|
|
|
|
frag.spv: shader.frag
|
|
$(GLSL_VALIDATOR) -V shader.frag
|
|
|
|
$(TARGET): Makefile main.c vert.spv frag.spv
|
|
gcc -ggdb -O0 -Wall -std=c99 \
|
|
-DCURRENT_DIR=\"`pwd`\" \
|
|
`pkg-config --libs --cflags xcb` \
|
|
-lvulkan \
|
|
-o $(TARGET) \
|
|
main.c
|
|
|
|
clean:
|
|
rm -f $(TARGET) vert.spv frag.spv
|