aboutsummaryrefslogtreecommitdiff
path: root/makefile
blob: 1ffe4ef8bc711a363898aca300e0b61cddc1ea48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
LDFLAGS += -lglfw
LDFLAGS += -lOpenGL
LDFLAGS += -lGLEW

GLFLAGS += --target-env=opengl
GLFLAGS += -fauto-map-locations

main: main.c

main.c: spirv_vert.h
main.c: spirv_frag.h

%_frag.h: %.frag
	glslc $(GLFLAGS) -mfmt=c -o $@ $<
%_vert.h: %.vert
	glslc $(GLFLAGS) -mfmt=c -o $@ $<