eleni@0: src = $(wildcard src/*.cc) eleni@0: obj = $(src:.cc=.o) eleni@0: dep = $(obj:.o=.d) eleni@0: bin = invisible eleni@0: eleni@0: dbg = -g -std=c++11 eleni@0: opt = -O0 eleni@0: eleni@0: CXX = g++ eleni@0: INCLUDE = -I/usr/include/ eleni@0: CXXFLAGS = -fPIC -pedantic -Wall $(dbg) `pkg-config --cflags opencv` $(INCLUDE) eleni@0: LDFLAGS = -L/usr/lib $(libs) -lGL -lGLU -lglut -lGLEW -lfreenect -lpthread `pkg-config --libs opencv` eleni@0: eleni@0: $(bin): $(obj) eleni@0: $(CXX) -o $@ $(obj) $(LDFLAGS) eleni@0: eleni@0: %.d: %.cc eleni@0: @$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@ eleni@0: eleni@0: .PHONY: clean eleni@0: clean: eleni@0: rm -f $(obj) $(bin) $(dep) eleni@0: