bloboland

view Makefile @ 2:1757973feaed

added stereoscopic rendering for no apparent reason
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 16 Dec 2012 00:37:35 +0200
parents cfe68befb7cc
children a39c301cdcce
line source
1 src = $(wildcard src/*.cc)
2 obj = $(src:.cc=.o)
3 dep = $(obj:.o=.d)
4 bin = blobo
6 opt = -O3 -ffast-math
7 dbg = -g
9 CXXFLAGS = -ansi -pedantic -Wall $(opt) $(dbg)
10 LDFLAGS = $(libgl) -lvmath -limago
12 ifeq ($(shell uname -s), Darwin)
13 libgl = -framework OpenGL -framework GLUT -lGLEW
14 else
15 libgl = -lGL -lGLU -lglut -lGLEW
16 endif
18 $(bin): $(obj)
19 $(CXX) -o $@ $(obj) $(LDFLAGS)
21 -include $(dep)
23 %.d: %.cc
24 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
26 .PHONY: clean
27 clean:
28 rm -f $(obj) $(bin)
30 .PHONY: cleandep
31 cleandep:
32 rm -f $(dep)