nuclear@0: src = test.cc $(wildcard src/*.cc) nuclear@0: obj = $(src:.cc=.o) nuclear@5: dep = $(obj:.o=.d) nuclear@0: nuclear@0: bin = test nuclear@0: nuclear@3: CFLAGS = -pedantic -Wall -g -Iinclude -Isrc nuclear@0: CXXFLAGS = $(CFLAGS) nuclear@5: LDFLAGS = -lGL -lGLU -lglut -lpthread -ldl nuclear@0: nuclear@0: $(bin): $(obj) nuclear@0: $(CXX) -o $@ $(obj) $(LDFLAGS) nuclear@0: nuclear@5: -include $(dep) nuclear@5: nuclear@5: nuclear@5: %.d: %.c nuclear@5: @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@ nuclear@5: nuclear@5: %.d: %.cc nuclear@5: @$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@ nuclear@5: nuclear@0: .PHONY: clean nuclear@0: clean: nuclear@5: rm -f $(obj) $(bin) $(dep)