forked from avsegal/gicp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (24 loc) · 841 Bytes
/
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
32
33
34
35
36
37
LFLAGS += `pkg-config --libs gsl`
CXXFLAGS += `pkg-config --cflags gsl`
LFLAGS += -L. -lgicp -Lann_1.1.1/lib -lANN -lgsl -lgslcblas \
-lboost_program_options -lboost_system -lstdc++
CXXFLAGS += -O3 -I./ann_1.1.1/include/ANN
LINK = g++
CXX = g++
SOURCES = optimize.cpp gicp.cpp bfgs_funcs.cpp scan.cpp transform.c scan2ascii.cpp
BINARIES = test_gicp scan2ascii
TARGETS = libgicp.a test_gicp scan2ascii
.SUFFIXES:
.SUFFIXES: .o .c .cpp .a
# rules
all: $(TARGETS)
libgicp.a: gicp.o optimize.o bfgs_funcs.o transform.o scan.o
ar rvs $@ $^
test_gicp: test_gicp.o gicp.o optimize.o bfgs_funcs.o transform.o
scan2ascii: scan.o scan2ascii.o transform.o
clean:
rm -f *.o $(TARGETS) *~ t_*.tfm *.dat mahalanobis.txt correspondence.txt iterations.txt
$(BINARIES):
$(LINK) -o $@ $^ $(LFLAGS)
.cpp.o:
$(CXX) $(CXXFLAGS) -c $< -o $@