# HG changeset patch # User John Tsiombikas # Date 1299246697 -7200 # Node ID 993fdfd41a043b572ef32f18fe074a049eb5443d # Parent 30c7a5df0523343cf93258f2cdab09840850a9e2# Parent 59fd3f6948fe49f40fe14c52aa0434ce71c94456 merged macosx makefile fixes diff -r 30c7a5df0523 -r 993fdfd41a04 Makefile --- a/Makefile Fri Mar 04 15:51:03 2011 +0200 +++ b/Makefile Fri Mar 04 15:51:37 2011 +0200 @@ -3,13 +3,20 @@ bin = stereoview CXX = g++ -CXXFLAGS = -pedantic -Wall -g `pkg-config --cflags henge2` -LDFLAGS = `pkg-config --libs henge2` $(libgl) +CXXFLAGS = -pedantic -Wall -g $(inc) `pkg-config --cflags henge2` +LDFLAGS = $(lib) `pkg-config --libs henge2` $(libgl) ifneq ($(shell uname -s), Darwin) libgl = -lGL -lGLU -lglut + + ifeq ($(shell uname -s), IRIX) + inc = -I/usr/nekoware/include -I/usr/freeware/include + lib = -L/usr/nekoware/lib -I/usr/freeware/lib + endif else libgl = -framework OpenGL -framework GLUT + inc = -I/opt/local/include -I/sw/local/include + lib = -L/opt/local/lib -L/sw/local/lib endif $(bin): $(obj)