stereoview

diff Makefile @ 0:dc1723a8bf6f

initial import
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 04 Mar 2011 06:51:16 +0200
parents
children 59fd3f6948fe
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile	Fri Mar 04 06:51:16 2011 +0200
     1.3 @@ -0,0 +1,20 @@
     1.4 +src = $(wildcard src/*.cc)
     1.5 +obj = $(src:.cc=.o)
     1.6 +bin = stereoview
     1.7 +
     1.8 +CXX = g++
     1.9 +CXXFLAGS = -pedantic -Wall -g `pkg-config --cflags henge2`
    1.10 +LDFLAGS = `pkg-config --libs henge2` $(libgl)
    1.11 +
    1.12 +ifneq ($(shell uname -s), Darwin)
    1.13 +	libgl = -lGL -lGLU -lglut
    1.14 +else
    1.15 +	libgl = -framework OpenGL -framework GLUT
    1.16 +endif
    1.17 +
    1.18 +$(bin): $(obj)
    1.19 +	$(CXX) -o $@ $(obj) $(LDFLAGS)
    1.20 +
    1.21 +.PHONY: clean
    1.22 +clean:
    1.23 +	rm -f $(obj) $(bin)