invisible
diff Makefile @ 0:80df8030105b
init kinect
author | Eleni Maria Stea <eleni@mutantstargoat.com> |
---|---|
date | Sat, 05 Oct 2013 16:03:08 +0300 |
parents | |
children | b0b90ef993a0 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/Makefile Sat Oct 05 16:03:08 2013 +0300 1.3 @@ -0,0 +1,23 @@ 1.4 +src = $(wildcard src/*.cc) 1.5 +obj = $(src:.cc=.o) 1.6 +dep = $(obj:.o=.d) 1.7 +bin = invisible 1.8 + 1.9 +dbg = -g -std=c++11 1.10 +opt = -O0 1.11 + 1.12 +CXX = g++ 1.13 +INCLUDE = -I/usr/include/ 1.14 +CXXFLAGS = -fPIC -pedantic -Wall $(dbg) `pkg-config --cflags opencv` $(INCLUDE) 1.15 +LDFLAGS = -L/usr/lib $(libs) -lGL -lGLU -lglut -lGLEW -lfreenect -lpthread `pkg-config --libs opencv` 1.16 + 1.17 +$(bin): $(obj) 1.18 + $(CXX) -o $@ $(obj) $(LDFLAGS) 1.19 + 1.20 +%.d: %.cc 1.21 + @$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@ 1.22 + 1.23 +.PHONY: clean 1.24 +clean: 1.25 + rm -f $(obj) $(bin) $(dep) 1.26 +