nuclear@0: src = $(wildcard src/*.cc) nuclear@0: obj = $(src:.cc=.o) nuclear@0: dep = $(obj:.o=.d) nuclear@0: bin = vrfileman nuclear@0: nuclear@0: warn = -pedantic -Wall nuclear@0: dbg = -g nuclear@0: nuclear@0: CXXFLAGS = $(warn) $(opt) $(dbg) $(inc) nuclear@0: LDFLAGS = $(libgl) nuclear@0: nuclear@0: nuclear@0: # system-specific stuff nuclear@0: ifeq ($(shell uname -s), Darwin) nuclear@0: libgl = -framework OpenGL -framework GLUT -lGLEW nuclear@0: else nuclear@0: libgl = -lGL -lGLU -lglut -lGLEW nuclear@0: endif nuclear@0: nuclear@0: nuclear@0: $(bin): $(obj) nuclear@0: $(CXX) -o $@ $(obj) $(LDFLAGS) nuclear@0: nuclear@0: -include $(dep) nuclear@0: nuclear@0: %.d: %.cc nuclear@0: @$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@