-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (29 loc) · 806 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
38
39
40
41
42
43
44
.PHONY: all build
TARGET ?= dynarray_example_c
all: build
build:
cmake -S all -B build -DCMAKE_INSTALL_PREFIX=/usr/
make -C build -j10
test:
./build/tests/run_tests
clean:
rm -rf build
run: build
./build/examples/${TARGET}
memcheck: build
valgrind ./build/examples/${TARGET}
install:
sudo make cmake -C build install
python:
rm -rf ./bindings/pyoctra/build
make -C ./bindings/pyoctra
# r:
# swig -r -c++ -o ./bindings/octraR/src/octra_wrap.cpp ./prebindings/octraR/swig/octrar.i
install-r:
make -C ./bindings/octraR install
CLING_COMPILE_FLAGS:="-std=c++17"
CLING_LINK_FLAGS += "-I/usr/include/octra-0.0.1/"
CLING_LINK_FLAGS += "-L/usr/lib/octra-0.0.1/liboctra.so"
# CLING_LINK_FLAGS += "-loctra"
repl:
cling ${CLING_INCLUDE_FLAGS} ${CLING_COMPILE_FLAGS} ${CLING_LINK_FLAGS}