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