blob: b1e15c9330046bef34343f4c5ad5c39a661f0293 (
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/lib -lvulkan -L/local/xorg/lib -lX11 -lX11-xcb -lxcb-randr -lxcb -lm -ldrm
TARGET=cube
GLSV=glslangValidator
SPV=cube-vert.spv cube-frag.spv
CFLAGS=-O0 -g -DVK_USE_PLATFORM_DISPLAY_KHR -DVK_USE_PLATFORM_XLIB_XRANDR_EXT -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)
|