blob: 840c908d1afa2c3dc49395f916e8ec7b9c497e50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
LDFLAGS += -lglfw
LDFLAGS += -lOpenGL
LDFLAGS += -lGLEW
GLFLAGS += --target-env=opengl
GLFLAGS += -fauto-map-locations
main: main.c
main.c: vert_spirv.h
main.c: frag_spirv.h
main.c: vert_src.h
main.c: frag_src.h
frag_spirv.h: shader.frag
glslc $(GLFLAGS) -mfmt=c -o $@ $<
vert_spirv.h: shader.vert
glslc $(GLFLAGS) -mfmt=c -o $@ $<
frag_src.h: shader.frag
xxd -i < $< > $@
vert_src.h: shader.vert
xxd -i < $< > $@
|