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