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