bloboland
view Makefile @ 0:e4818a3300b9
bloboland initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 15 Dec 2012 07:52:13 +0200 |
parents | |
children | cfe68befb7cc |
line source
1 src = $(wildcard src/*.cc)
2 obj = $(src:.cc=.o)
3 dep = $(obj:.o=.d)
4 bin = blobo
6 CXXFLAGS = -ansi -pedantic -Wall -g
7 LDFLAGS = $(libgl)
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) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
23 .PHONY: clean
24 clean:
25 rm -f $(obj) $(bin)
27 .PHONY: cleandep
28 cleandep:
29 rm -f $(dep)