# HG changeset patch # User John Tsiombikas # Date 1299215742 -7200 # Node ID 59fd3f6948fe49f40fe14c52aa0434ce71c94456 # Parent dc1723a8bf6f1b05d429958b4d47d5e9174f5143 fixed makefile for macosx diff -r dc1723a8bf6f -r 59fd3f6948fe Makefile --- a/Makefile Fri Mar 04 06:51:16 2011 +0200 +++ b/Makefile Fri Mar 04 07:15:42 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)