invisible

view Makefile @ 12:226073258785

quick backup: display video, draw tesselated quads
author Eleni Maria Stea <eleni@mutantstargoat.com>
date Mon, 04 Nov 2013 23:39:22 +0200
parents b0b90ef993a0
children
line source
1 src = $(wildcard src/*.cc)
2 obj = $(src:.cc=.o)
3 dep = $(obj:.o=.d)
4 bin = invisible
6 dbg = -g
7 opt = -O0
9 CXX = g++
10 INCLUDE = -I/usr/include/
11 CXXFLAGS = -fPIC -pedantic -Wall $(dbg) `pkg-config --cflags opencv` $(INCLUDE)
12 LDFLAGS = -L/usr/lib $(libs) -lGL -lGLU -lglut -lGLEW -lfreenect -lpthread `pkg-config --libs opencv`
14 $(bin): $(obj)
15 $(CXX) -o $@ $(obj) $(LDFLAGS)
17 -include $(dep)
19 %.d: %.cc
20 @$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@
22 .PHONY: clean
23 clean:
24 rm -f $(obj) $(bin) $(dep)