blob: 91544e409d95911cd0be7878d590d3e8acadfe6c (
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
29
30
31
32
33
34
|
SRCS=\
cube.c
OBJS=$(SRCS:.c=.o)
INCS=\
gettime.h\
linmath.h
LIBS=-L/local/xorg/lib -lvulkan -lxcb -lm
TARGET=cube
GLSV=glslangValidator
SPV=cube-vert.spv cube-frag.spv
CFLAGS=-O0 -g -DVK_USE_PLATFORM_XCB_KHR -DVK_USE_PLATFORM_KMS_KEITHP -I/local/xorg/include -I/local/xorg/include/libdrm
all: $(TARGET) $(SPV)
$(TARGET): $(OBJS)
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
$(OBJS): $(INCS)
cube-vert.spv: cube.vert
$(GLSV) -V -o $@ cube.vert
cube-frag.spv: cube.frag
$(GLSV) -V -o $@ cube.frag
clean:
rm -f $(TARGET) $(OBJS) $(SPV)
|