projects
/
ludumice
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
initial commit: a line and 5 points
[ludumice]
/
Makefile
1
src = $(wildcard src/*.cc)
2
obj = $(src:.cc=.o)
3
dep = $(obj:.o=.d)
4
bin = splines
5
6
dbg = -g
7
opt = -O0
8
inc = -Isrc
9
10
CXX = g++
11
CXXFLAGS = -pedantic -Wall $(dbg) $(opt) $(inc)
12
LDFLAGS = -lGL -lGLU -lglut -lGLEW -limago -lgmath
13
14
$(bin): $(obj)
15
$(CXX) -o $@ $(obj) $(LDFLAGS)
16
17
-include $(dep)
18
19
%.d: %.cc
20
@$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@
21
22
.PHONY: clean
23
clean:
24
rm -f $(obj) $(bin) $(dep)