nuclear@0: src = $(wildcard src/*.cc) nuclear@0: obj = $(src:.cc=.o) nuclear@0: dep = $(obj:.o=.d) nuclear@1: bin = textpsys nuclear@0: nuclear@0: nuclear@0: CXXFLAGS = -std=c++11 -pedantic -Wall -g nuclear@0: LDFLAGS = $(libgl_$(shell uname -s)) -lm nuclear@0: nuclear@0: libgl_Linux = -lGL -lglut nuclear@0: libgl_Darwin = -framework OpenGL -framework GLUT 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) >$@ nuclear@0: nuclear@0: .PHONY: clean nuclear@0: clean: nuclear@0: rm -f $(obj) $(bin) nuclear@0: nuclear@0: .PHONY: cleandep nuclear@0: cleandep: nuclear@0: rm -f $(dep)