vulkan_test_simple

diff Makefile @ 0:8de4fe926882

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 28 Jun 2018 13:57:28 +0300
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile	Thu Jun 28 13:57:28 2018 +0300
     1.3 @@ -0,0 +1,21 @@
     1.4 +src = $(wildcard src/*.c)
     1.5 +obj = $(src:.c=.o)
     1.6 +bin = test
     1.7 +
     1.8 +def = -DGLFW_INCLUDE_VULKAN
     1.9 +
    1.10 +CFLAGS = -pedantic -Wall -g $(def)
    1.11 +LDFLAGS = -lvulkan -lglfw
    1.12 +
    1.13 +$(bin): $(obj) vertex.spv pixel.spv
    1.14 +	$(CC) -o $@ $(obj) $(LDFLAGS)
    1.15 +
    1.16 +vertex.spv: vertex.glsl
    1.17 +	glslangValidator -o $@ -S vert -V $<
    1.18 +
    1.19 +pixel.spv: pixel.glsl
    1.20 +	glslangValidator -o $@ -S frag -V $<
    1.21 +
    1.22 +.PHONY: clean
    1.23 +clean:
    1.24 +	rm -f $(obj) $(bin) *.spv