nuclear@2: ccsrc = $(wildcard src/*.cc)
nuclear@2: obj = $(ccsrc:.cc=.o)
nuclear@2: bin = test
nuclear@2: 
nuclear@3: warn = -pedantic -Wall
nuclear@3: dbg = -g
nuclear@3: 
nuclear@4: CXXFLAGS = -std=c++11 $(warn) $(dbg)
nuclear@4: LDFLAGS = $(libgl) -lm -lvmath -lpthread
nuclear@2: 
nuclear@2: ifeq ($(shell uname -s), Darwin)
nuclear@2: 	libgl = -framework OpenGL -framework GLUT -lGLEW
nuclear@3: 	warn += -Wno-deprecated-declarations
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)