-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 812 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# location of the Python header files
PYTHON_VERSION = 2.7
PYTHON_INCLUDE = /usr/include/python$(PYTHON_VERSION)
# location of the Boost Python include files and library
OPENNI2_INC = ../kinect/Include
OPENNI2_LIB = ../kinect/Redist
NITE2_INC = ../kinect/Include
NITE2_LIB = ../kinect/Redist
BOOST_INC = /usr/include
BOOST_LIB = /usr/lib
CC = g++
TARGET = nite2
OBJS = nite2.o openni2.o wrapper.o
$(TARGET).so: $(OBJS)
$(CC) -shared -Wl,--export-dynamic $^ -L$(BOOST_LIB) -L$(OPENNI2_LIB) -L$(NITE2_LIB) -L/usr/lib/python$(PYTHON_VERSION)/config -lpython$(PYTHON_VERSION) -lboost_python-py27 -lOpenNI2 -lNiTE2 -o $@
$(OBJS): %.o: %.cpp
$(CC) -Wall -Wextra -O2 -I$(PYTHON_INCLUDE) -I$(BOOST_INC) -I$(NITE2_INC) -I$(OPENNI2_INC) -std=gnu++11 -fPIC -c $< -o $@
clean:
rm -f *.o
rm -f *.so
.PHONY: clean