stereoview
view Makefile @ 3:993fdfd41a04
merged macosx makefile fixes
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 04 Mar 2011 15:51:37 +0200 |
parents | dc1723a8bf6f |
children |
line source
1 src = $(wildcard src/*.cc)
2 obj = $(src:.cc=.o)
3 bin = stereoview
5 CXX = g++
6 CXXFLAGS = -pedantic -Wall -g $(inc) `pkg-config --cflags henge2`
7 LDFLAGS = $(lib) `pkg-config --libs henge2` $(libgl)
9 ifneq ($(shell uname -s), Darwin)
10 libgl = -lGL -lGLU -lglut
12 ifeq ($(shell uname -s), IRIX)
13 inc = -I/usr/nekoware/include -I/usr/freeware/include
14 lib = -L/usr/nekoware/lib -I/usr/freeware/lib
15 endif
16 else
17 libgl = -framework OpenGL -framework GLUT
18 inc = -I/opt/local/include -I/sw/local/include
19 lib = -L/opt/local/lib -L/sw/local/lib
20 endif
22 $(bin): $(obj)
23 $(CXX) -o $@ $(obj) $(LDFLAGS)
25 .PHONY: clean
26 clean:
27 rm -f $(obj) $(bin)