cloth
view Makefile @ 0:92983e143a03
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 11 Feb 2013 19:40:36 +0200 |
parents | |
children | 2eac424f58b2 |
line source
1 src = $(wildcard src/*.cc)
2 obj = $(src:.cc=.o)
3 dep = $(obj:.o=.d)
4 bin = cloth
6 CXXFLAGS = -pedantic -Wall -g
7 LDFLAGS = $(libgl) -limago -lvmath
9 ifeq ($(shell uname -s), Darwin)
10 libgl = -framework OpenGL -framework GLUT -lGLEW
11 else
12 libgl = -lGL -lGLU -lglut -lGLEW
13 endif
15 $(bin): $(obj)
16 $(CXX) -o $@ $(obj) $(LDFLAGS)
18 -include $(dep)
20 %.d: %.cc
21 @$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@
23 .PHONY: clean
24 clean:
25 rm -f $(obj) $(bin)