This repository has been archived by the owner on Aug 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
85 lines (64 loc) · 1.49 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
.PHONY: clean gen
ARROW_INC = $(shell pkg-config --cflags arrow)
PLASMA_DB = /tmp/plasma.db
CXXOPT := -O2
LD_LIBRARY_PATH ?= /miniconda/lib
PKG_CONFIG_PATH ?= /miniconda/lib/pkgconfig
all: gen
go build ./...
libcarrow.a: carrow.o
ar r $@ $^
gen:
go generate
%.o: %.cc
g++ -Wall -g $(CXXOPT) -std=c++11 $(ARROW_INC) -o $@ -c $^
clean:
rm -f *.o *.a *generate*.go
rm -rf bindings
get-arrow:
git clone git://github.com/apache/arrow.git ../arrow
(cd ../arrow && git checkout apache-arrow-0.16.0)
build-docker:
docker build . -t carrow:builder
docker run \
-v $(PWD):/src/carrow \
-it --workdir=/src/carrow/ \
carrow:builder
test:
go test -v ./...
circleci:
docker build -f Dockerfile.test .
benchmark:
go test -run Example -count 10000
fresh: clean all
# Playground
plasma-client:
g++ _misc/plasma.cc \
-g \
$(shell pkg-config --cflags --libs plasma) \
$(shell pkg-config --cflags --libs arrow) \
-I$(ARROW_SRC_DIR) \
--std=c++11 \
-o plasmac
plasma-client-local:
g++ _misc/plasma.cc \
-g \
-larrow -lplasma \
-L/opt/miniconda/lib \
-I/opt/miniconda/include \
--std=c++11 \
-o plasmac
plasma-server:
rm -f $(PLASMA_DB)
plasma_store -m 1000000 -s $(PLASMA_DB)
run-wtr:
make
go run ./_misc/wtr.go -db /tmp/plasma.db -id $(ID)
wtr:
go build ./_misc/wtr.go
gdb-wtr: wtr
gdb wtr
artifact-linux-x86_64: libcarrow.a gen
$(info building artifact-linux-x86_64)
mkdir -p bindings/linux-x86_64
cp libcarrow.a ./bindings/linux-x86_64/libcarrow.a