-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (22 loc) · 1.06 KB
/
Makefile
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
29
30
31
CONDA_PREFIX = /GPFS/rhome/yifanlu/miniconda3/envs/disco
INC = $(shell ${CONDA_PREFIX}/bin/python3 -m pybind11 --includes)
CXX = g++
CXXFLAGS = -O3 -Wall -std=c++11 -fPIC ${INC}
# CXXFLAGS += `pkg-config --cflags gsl` -I./ann_1.1.2/include/ANN
CXXFLAGS += -I${CONDA_PREFIX}/include -I./ann_1.1.2/include/ANN -I${CONDA_PREFIX}/include/eigen3
# LDFLAGS = `pkg-config --libs gsl`
LDFLAGS = -L${CONDA_PREFIX}/lib -lgsl -lgslcblas -lm
LDFLAGS += -L. -lgicp -Lann_1.1.2/lib -lANN -lboost_program_options -lboost_system -lstdc++
LDFLAGS += -Wl,-rpath="${CONDA_PREFIX}/lib"
objects = warp_gicp.o gicp.o optimize.o bfgs_funcs.o transform.o scan.o
all: libgicp.a warp_gicp.so test_gicp
libgicp.a: gicp.o optimize.o bfgs_funcs.o transform.o scan.o
ar rvs $@ $^
warp_gicp.so: $(objects)
${CXX} ${CXXFLAGS} -shared -o $@${SUF} $^ ${LDFLAGS}
test_gicp: test_gicp.o gicp.o optimize.o bfgs_funcs.o transform.o
$(CXX) -o $@ $^ $(LDFLAGS)
.cpp.o:
$(CXX) $(CXXFLAGS) -c $< -o $@
clean:
rm -f *.o *.so *.a *~ t_*.tfm *.dat mahalanobis.txt correspondence.txt iterations.txt test_gicp