vulkan_test2

annotate Makefile @ 14:9fb6c24691ea

this shit never ends...
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 26 Jun 2018 07:20:03 +0300
parents c31c4115d44a
children
rev   line source
nuclear@3 1 src = $(wildcard src/*.c)
nuclear@3 2 obj = $(src:.c=.o)
nuclear@0 3 bin = test
nuclear@0 4
nuclear@10 5 sdr = $(wildcard sdr/*.glsl)
nuclear@10 6 spv = $(sdr:.glsl=.spv)
nuclear@10 7
nuclear@0 8 CFLAGS = -pedantic -Wall -g
nuclear@4 9 LDFLAGS = -lvulkan -lX11
nuclear@0 10
nuclear@10 11 $(bin): $(obj) $(spv)
nuclear@0 12 $(CC) -o $@ $(obj) $(LDFLAGS)
nuclear@0 13
nuclear@10 14 sdr/vertex.spv: sdr/vertex.glsl
nuclear@10 15 glslangValidator -o $@ -S vert -V $<
nuclear@10 16
nuclear@10 17 sdr/pixel.spv: sdr/pixel.glsl
nuclear@10 18 glslangValidator -o $@ -S frag -V $<
nuclear@10 19
nuclear@10 20
nuclear@0 21 .PHONY: clean
nuclear@0 22 clean:
nuclear@0 23 rm -f $(obj) $(bin)