Source

kinect-playground / loopback / Makefile

Full commit
CC = g++
LINK = g++
INSTALL = install
CFLAGS = `pkg-config --cflags opencv libfreenect` -I../include -I. 
LFLAGS = `pkg-config --libs opencv libfreenect`

all         = kinect2webcam oni2webcam

all: $(all)

kinect2webcam: kinect2webcam.o 
	$(LINK) -o $@ $^ $(LFLAGS)

kinect2webcam.o: kinect2webcam.cpp
	$(CC) $(CFLAGS) -o $@ -c $^
	
oni2webcam: oni2webcam.o 
	$(LINK) -o $@ $^ $(LFLAGS)  -lOpenNI -lXnVNite_1_5_2 -lstdc++

oni2webcam.o: oni2webcam.cpp
	$(CC) $(CFLAGS) -o $@ -c  -I/usr/include/ni  $^