forked from MIT-SPARK/Kimera-VIO
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
37 lines (30 loc) · 904 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
#nproc=$(shell python3 -c 'import multiprocessing; print( max(multiprocessing.cpu_count() - 1, 1))')
CXX := clang++-10
CC := clang-10
.PHONY: plugin.dbg.so
plugin.dbg.so: build/Debug/Makefile
${MAKE} -C build/Debug && \
rm -f $@ && \
ln -s build/Debug/libplugin.so plugin.dbg.so && \
true
.PHONY: plugin.opt.so
plugin.opt.so: build/Release/Makefile
${MAKE} -C build/Release && \
rm -f $@ && \
ln -s build/Release/libplugin.so plugin.opt.so && \
true
build/Debug/Makefile:
mkdir -p build/Debug && \
cd build/Debug && \
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=$(CXX) -DCMAKE_C_COMPILER=$(CC) ../.. && \
true
build/Release/Makefile:
mkdir -p build/Release && \
cd build/Release && \
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_COMPILER=$(CXX) -DCMAKE_C_COMPILER=$(CC) ../.. && \
true
tests/run:
tests/gdb:
.PHONY: clean
clean:
touch build && rm -rf build *.so