nuclear@0: src = $(wildcard src/*.cc) nuclear@0: obj = $(src:.cc=.o) nuclear@0: bin = stereoview nuclear@0: nuclear@0: CXX = g++ nuclear@1: CXXFLAGS = -pedantic -Wall -g $(inc) `pkg-config --cflags henge2` nuclear@1: LDFLAGS = $(lib) `pkg-config --libs henge2` $(libgl) nuclear@0: nuclear@0: ifneq ($(shell uname -s), Darwin) nuclear@0: libgl = -lGL -lGLU -lglut nuclear@1: nuclear@1: ifeq ($(shell uname -s), IRIX) nuclear@1: inc = -I/usr/nekoware/include -I/usr/freeware/include nuclear@1: lib = -L/usr/nekoware/lib -I/usr/freeware/lib nuclear@1: endif nuclear@0: else nuclear@0: libgl = -framework OpenGL -framework GLUT nuclear@1: inc = -I/opt/local/include -I/sw/local/include nuclear@1: lib = -L/opt/local/lib -L/sw/local/lib nuclear@0: endif nuclear@0: nuclear@0: $(bin): $(obj) nuclear@0: $(CXX) -o $@ $(obj) $(LDFLAGS) nuclear@0: nuclear@0: .PHONY: clean nuclear@0: clean: nuclear@0: rm -f $(obj) $(bin)