-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·21 lines (18 loc) · 818 Bytes
/
build.sh
File metadata and controls
executable file
·21 lines (18 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# Usage: ./build.sh /path/to/AnuDB /path/to/sqlite
# Default path to ../AnuDB and ../sqlite if not provided
ANUDB_PATH=${1:-../AnuDB}
SQLITE3_PATH=${2:-../sqlite}
$HOME/rpi-tools/arm-bcm2708/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -std=c++11 anusqlite_benchmark.cpp \
-I"$ANUDB_PATH/src/" \
-I"$ANUDB_PATH/src/storage_engine/" \
-I"$ANUDB_PATH/third_party/json/" \
-I"$ANUDB_PATH/third_party/rocksdb/include/" \
-I"$SQLITE3_PATH/sqlite-install-arm/include" \
-L"$ANUDB_PATH/build-arm/" \
-L"$SQLITE3_PATH/sqlite-install-arm/lib/" \
"$SQLITE3_PATH/sqlite-install-arm/lib/libsqlite3.a" \
"$ANUDB_PATH/build-arm/src/storage_engine/liblibstorage.a" \
"$ANUDB_PATH/build-arm/third_party/rocksdb/librocksdb.a" \
"$ANUDB_PATH/build-arm/liblibanu.a" \
-pthread -ldl -o benchmark