projects
/
cyberay
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
first pass at the obj loader
[cyberay]
/
Makefile
1
src = $(wildcard src/*.c)
2
obj = $(src:.c=.o)
3
dep = $(src:.c=.d)
4
bin = cyberay
5
6
opt = -O3 -ffast-math
7
dbg = -g
8
warn = -pedantic -Wall
9
inc = -Ilibs
10
11
CFLAGS = $(warn) $(opt) $(dbg) -pthread -MMD $(inc)
12
LDFLAGS = $(libgl) -lm -pthread -limago
13
14
libgl = -lGL -lGLU -lglut
15
16
$(bin): $(obj)
17
$(CC) -o $@ $(obj) $(LDFLAGS)
18
19
-include $(dep)
20
21
.PHONY: clean
22
clean:
23
rm -f $(obj) $(bin)
24
25
.PHONY: cleandep
26
cleandep:
27
rm -f $(dep)