blob: 34c19bff1743beea84671f32600aa6d85bc10d21 (
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
|
LDFLAGS += -lglfw
LDFLAGS += -lOpenGL
LDFLAGS += -lGLEW
CFLAGS += -g
.PHONY: FORCE
.SECONDARY: # do not remove intermediate files
all: main FORCE
main: main.o
main: die.o
main: shader.o
main: hello_frag.o
main: hello_vert.o
# fix compile order
main.o: hello_vert.h
main.o: hello_frag.h
%.s %.h &: %.spv
./blob $< $*
%_frag.spv: %.frag
glslc -o $@ $<
%_vert.spv: %.vert
glslc -o $@ $<
clean: FORCE
git clean -fxdi
|