stereoview

annotate 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
rev   line source
nuclear@0 1 src = $(wildcard src/*.cc)
nuclear@0 2 obj = $(src:.cc=.o)
nuclear@0 3 bin = stereoview
nuclear@0 4
nuclear@0 5 CXX = g++
nuclear@1 6 CXXFLAGS = -pedantic -Wall -g $(inc) `pkg-config --cflags henge2`
nuclear@1 7 LDFLAGS = $(lib) `pkg-config --libs henge2` $(libgl)
nuclear@0 8
nuclear@0 9 ifneq ($(shell uname -s), Darwin)
nuclear@0 10 libgl = -lGL -lGLU -lglut
nuclear@1 11
nuclear@1 12 ifeq ($(shell uname -s), IRIX)
nuclear@1 13 inc = -I/usr/nekoware/include -I/usr/freeware/include
nuclear@1 14 lib = -L/usr/nekoware/lib -I/usr/freeware/lib
nuclear@1 15 endif
nuclear@0 16 else
nuclear@0 17 libgl = -framework OpenGL -framework GLUT
nuclear@1 18 inc = -I/opt/local/include -I/sw/local/include
nuclear@1 19 lib = -L/opt/local/lib -L/sw/local/lib
nuclear@0 20 endif
nuclear@0 21
nuclear@0 22 $(bin): $(obj)
nuclear@0 23 $(CXX) -o $@ $(obj) $(LDFLAGS)
nuclear@0 24
nuclear@0 25 .PHONY: clean
nuclear@0 26 clean:
nuclear@0 27 rm -f $(obj) $(bin)