blob: c2d96e656450938c87995636b9cba098f6e42fe2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
DEBUG=-DVULKAN_VALIDATION -g
WARN=-Wdouble-promotion
FEATURE=-DHAVE_MSAA
GLSLC=glslc
CFLAGS=-I$(VULKAN_SDK)/include $(FEATURE) $(DEBUG) $(WARN)
LDFLAGS=-L$(VULKAN_SDK)/lib -lvulkan
# XXX: Pugl branch location
CFLAGS+=-I../pugl
LDFLAGS+=-L../pugl/build -lpugl_x11
all: main shaders
main: main.o vk_mem_alloc.o
$(CXX) $^ $(LDFLAGS) -o $@
main.o: main.c
vk_mem_alloc.o: vk_mem_alloc.h
shaders: vert.spv frag.spv
vert.spv: shader.vert
$(GLSLC) $^ -o $@
frag.spv: shader.frag
$(GLSLC) $^ -o $@
|