nuclear@14: src = $(wildcard src/*.cc) nuclear@14: obj = $(src:.cc=.o) nuclear@14: bin = cubemap nuclear@14: nuclear@14: CXXFLAGS = -pedantic -Wall -g nuclear@14: LDFLAGS = $(libgl) -lgoat3dgfx -lvmath nuclear@14: nuclear@14: ifeq ($(shell uname -s), Darwin) nuclear@14: libgl = -framework OpenGL -framework GLUT -lGLEW nuclear@14: else nuclear@14: libgl = -lGL -lGLU -lglut -lGLEW nuclear@14: endif nuclear@14: nuclear@14: $(bin): $(obj) nuclear@14: $(CXX) -o $@ $(obj) $(LDFLAGS) nuclear@14: nuclear@14: .PHONY: clean nuclear@14: clean: nuclear@14: rm -f $(obj) $(bin)