aboutsummaryrefslogtreecommitdiff
path: root/makefile
blob: 9d46d62a9daee833e6f87999d4092295fa18268e (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: fill_vert.h
main.c: visuals_frag.h

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