-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
69 lines (43 loc) · 2.58 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
ALL = server client benchmark encryption_benchmark proxy clients concurrent_benchmark
all: $(ALL) constants.h
CPPFLAGS = --std=c++17 -O3 -Wall -pthread -g
client: gen-cpp/KV_RPC.o gen-cpp/KV_RPC_types.o client.o clientHelper.o
g++ $(CPPFLAGS) client.cpp clientHelper.o gen-cpp/KV_RPC.o gen-cpp/KV_RPC_types.o -lboost_filesystem -lboost_serialization -lthrift -lsodium -pthread -fPIC -o client
clients: clients.cpp gen-cpp/Send_Op.o gen-cpp/Operation_types.o
g++ $(CPPFLAGS) $^ -lboost_filesystem -lboost_serialization -lthrift -lsodium -pthread -fPIC -o $@
proxy: gen-cpp/KV_RPC.o gen-cpp/KV_RPC_types.o gen-cpp/Send_Op.o gen-cpp/Operation_types.o proxy.o clientHelper.o
g++ $(CPPFLAGS) $^ -lboost_filesystem -lboost_serialization -lthrift -lsodium -pthread -fPIC -o $@
benchmark: benchmark.cpp clientHelper.o gen-cpp/KV_RPC.o gen-cpp/KV_RPC_types.o
g++ $(CPPFLAGS) benchmark.cpp clientHelper.o gen-cpp/KV_RPC.o gen-cpp/KV_RPC_types.o -lboost_filesystem -lboost_serialization -lthrift -lsodium -pthread -fPIC -o benchmark
concurrent_benchmark: gen-cpp/KV_RPC.o gen-cpp/KV_RPC_types.o gen-cpp/Operation_types.o gen-cpp/Send_Op.o concurrent_benchmark.cpp clientHelper.o
g++ $(CPPFLAGS) $^ -lboost_filesystem -lboost_serialization -lthrift -lsodium -pthread -fPIC -o $@
encryption_benchmark: estimate_encryption.cpp clientHelper.o gen-cpp/KV_RPC.o gen-cpp/KV_RPC_types.o
g++ $(CPPFLAGS) estimate_encryption.cpp clientHelper.o gen-cpp/KV_RPC.o gen-cpp/KV_RPC_types.o -lboost_filesystem -lboost_serialization -lthrift -lsodium -pthread -fPIC -o encryption_benchmark
clientHelper.o: clientHelper.h clientHelper.cpp
g++ $(CPPFLAGS) clientHelper.cpp -c -fPIC
server: server.cpp gen-cpp/KV_RPC.o gen-cpp/KV_RPC_types.o
g++ $(CPPFLAGS) $^ -lthrift -lsodium -lrocksdb -pthread -fPIC -o $@
gen-cpp/KV_RPC.o: gen-cpp/KV_RPC.h gen-cpp/KV_RPC.cpp
g++ $(CPPFLAGS) gen-cpp/KV_RPC.cpp -c -fPIC -o gen-cpp/KV_RPC.o
gen-cpp/KV_RPC_types.o: gen-cpp/KV_RPC_types.h gen-cpp/KV_RPC_types.cpp
g++ $(CPPFLAGS) gen-cpp/KV_RPC_types.cpp -c -fPIC -o gen-cpp/KV_RPC_types.o
gen-cpp/KV_RPC.h:
thrift -r --gen cpp KV_RPC.thrift
gen-cpp/KV_RPC.cpp:
thrift -r --gen cpp KV_RPC.thrift
gen-cpp/KV_RPC_types.h:
thrift -r --gen cpp KV_RPC.thrift
gen-cpp/KV_RPC_types.cpp:
thrift -r --gen cpp KV_RPC.thrift
gen-cpp/Operation_types.cpp:
thrift -r --gen cpp Operation.thrift
gen-cpp/Operation_types.h:
thrift -r --gen cpp Operation.thrift
gen-cpp/Send_Op.cpp:
thrift -r --gen cpp Operation.thrift
gen-cpp/Send_Op.h:
thrift -r --gen cpp Operation.thrift
clean:
rm $(ALL) OpScure.data *.o db/* gen-cpp/*
cleandb:
rm db/* OpScure.data