aboutsummaryrefslogtreecommitdiff
path: root/makefile
blob: 42f4e1a590fab17f42321006fb64c2722fa4b139 (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
LDFLAGS += -lglfw
LDFLAGS += -lOpenGL
LDFLAGS += -lGLEW

CFLAGS += -g

.PHONY: FORCE

all: main FORCE

main: main.o
main: die.o
main: shader.o
main: hello_frag.o
main: hello_vert.o

%_frag.o %_frag.h &: %.frag
	ld -r -b binary -o $*_frag.o $<
	./blobheader $< > $*_frag.h
%_vert.o %_vert.h &: %.vert
	ld -r -b binary -o $*_vert.o $<
	./blobheader $< > $*_vert.h

clean: FORCE
	git clean -fxdi