-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (28 loc) · 860 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
# Makefile for RocksDB benchmark tool
# Define the target executable
TARGET = rocks_cli
SOURCE = rockscli.cpp
LIBVERSION = 6.8.1
# Define the compiler and the flags
CXX = g++
CXXFLAGS = -I./rocksdb-6.8.1/include -L./rocksdb-6.8.1 -lrocksdb -lpthread -lsnappy -ldl
ROCKSDB_DATA = ./rocksdbdata
# Default rule
all: $(TARGET)
# Rule to compile the program
$(TARGET): $(SOURCE)
$(CXX) -o $(TARGET) $(SOURCE) $(CXXFLAGS)
# Clean rule:
clean:
rm -rf $(TARGET) $(ROCKSDB_DATA) rocks_* *enclave
# Rule to run the program
run-native: $(TARGET)
rm -rf $(ROCKSDB_DATA)
mkdir $(ROCKSDB_DATA)
LD_LIBRARY_PATH=./rocksdb-6.8.1 ./$(TARGET) $(ROCKSDB_DATA) 15000 1 50
gen-man:
./gen_man.sh -s ./generic.manifest.template ./rocks_cli error
run-direct:
rm -rf $(ROCKSDB_DATA)
mkdir $(ROCKSDB_DATA)
gramine-direct ./$(TARGET) $(CURDIR)/$(ROCKSDB_DATA) 15000 1 50