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