summaryrefslogtreecommitdiff
path: root/Makefile
blob: bdeb3c83354fdff388b569e680876ff23068471d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CFLAGS = -O2 -g
LDFLAGS != pkg-config --libs vulkan wayland-client

all: vulkan shader

vulkan: main.c
	gcc $(CFLAGS) -o vk main.c xdg-shell-protocol.c xdg-decoration.c $(LDFLAGS) -lm

shader: vert.spv frag.spv

%.spv: shader.%
	glslc $^ -o $@

.PHONY: test clean

test: vulkan
	./vk

clean:
	rm -f vk *.spv