stereoview
view 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 source
1 src = $(wildcard src/*.cc)
2 obj = $(src:.cc=.o)
3 bin = stereoview
5 CXX = g++
6 CXXFLAGS = -pedantic -Wall -g `pkg-config --cflags henge2`
7 LDFLAGS = `pkg-config --libs henge2` $(libgl)
9 ifneq ($(shell uname -s), Darwin)
10 libgl = -lGL -lGLU -lglut
11 else
12 libgl = -framework OpenGL -framework GLUT
13 endif
15 $(bin): $(obj)
16 $(CXX) -o $@ $(obj) $(LDFLAGS)
18 .PHONY: clean
19 clean:
20 rm -f $(obj) $(bin)