stereoview

annotate Makefile @ 2:30c7a5df0523

- added focus distance cmdline argument - changed the code to use the regular henge::Scene when using the zbuffer
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 04 Mar 2011 15:51:03 +0200
parents
children 59fd3f6948fe
rev   line source
nuclear@0 1 src = $(wildcard src/*.cc)
nuclear@0 2 obj = $(src:.cc=.o)
nuclear@0 3 bin = stereoview
nuclear@0 4
nuclear@0 5 CXX = g++
nuclear@0 6 CXXFLAGS = -pedantic -Wall -g `pkg-config --cflags henge2`
nuclear@0 7 LDFLAGS = `pkg-config --libs henge2` $(libgl)
nuclear@0 8
nuclear@0 9 ifneq ($(shell uname -s), Darwin)
nuclear@0 10 libgl = -lGL -lGLU -lglut
nuclear@0 11 else
nuclear@0 12 libgl = -framework OpenGL -framework GLUT
nuclear@0 13 endif
nuclear@0 14
nuclear@0 15 $(bin): $(obj)
nuclear@0 16 $(CXX) -o $@ $(obj) $(LDFLAGS)
nuclear@0 17
nuclear@0 18 .PHONY: clean
nuclear@0 19 clean:
nuclear@0 20 rm -f $(obj) $(bin)