bloboland
annotate 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 |
rev | line source |
---|---|
nuclear@0 | 1 src = $(wildcard src/*.cc) |
nuclear@0 | 2 obj = $(src:.cc=.o) |
nuclear@0 | 3 dep = $(obj:.o=.d) |
nuclear@0 | 4 bin = blobo |
nuclear@0 | 5 |
nuclear@2 | 6 opt = -O3 -ffast-math |
nuclear@2 | 7 dbg = -g |
nuclear@2 | 8 |
nuclear@2 | 9 CXXFLAGS = -ansi -pedantic -Wall $(opt) $(dbg) |
nuclear@1 | 10 LDFLAGS = $(libgl) -lvmath -limago |
nuclear@0 | 11 |
nuclear@0 | 12 ifeq ($(shell uname -s), Darwin) |
nuclear@0 | 13 libgl = -framework OpenGL -framework GLUT -lGLEW |
nuclear@0 | 14 else |
nuclear@0 | 15 libgl = -lGL -lGLU -lglut -lGLEW |
nuclear@0 | 16 endif |
nuclear@0 | 17 |
nuclear@0 | 18 $(bin): $(obj) |
nuclear@0 | 19 $(CXX) -o $@ $(obj) $(LDFLAGS) |
nuclear@0 | 20 |
nuclear@0 | 21 -include $(dep) |
nuclear@0 | 22 |
nuclear@0 | 23 %.d: %.cc |
nuclear@0 | 24 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@ |
nuclear@0 | 25 |
nuclear@0 | 26 .PHONY: clean |
nuclear@0 | 27 clean: |
nuclear@0 | 28 rm -f $(obj) $(bin) |
nuclear@0 | 29 |
nuclear@0 | 30 .PHONY: cleandep |
nuclear@0 | 31 cleandep: |
nuclear@0 | 32 rm -f $(dep) |