nuclear@0: ccsrc = $(wildcard src/*.cc) nuclear@0: obj = $(ccsrc:.cc=.o) nuclear@0: dep = $(obj:.o=.d) nuclear@0: lib_a = liblevel.a nuclear@0: nuclear@0: CXXFLAGS = -std=c++0x -pedantic -Wall -g nuclear@0: nuclear@1: ifeq ($(shell uname -s), Darwin) nuclear@1: CC = clang nuclear@1: CXX = clang++ nuclear@1: endif nuclear@1: nuclear@0: $(lib_a): $(obj) nuclear@0: $(AR) rcs $@ $(obj) 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) $(dep)