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