forked from efficient/cicada-exp-sigmod2017-DBx1000
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (39 loc) · 1.64 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
CC=g++
#CC=g++-5
#CFLAGS=-Wall -g -std=c++0x
CFLAGS=-Wall -g -std=c++14
.SUFFIXES: .o .cpp .h
SRC_DIRS = ./ ./benchmarks/ ./concurrency_control/ ./storage/ ./system/
#INCLUDE = -I. -I./benchmarks -I./concurrency_control -I./storage -I./system
INCLUDE = -I. -I./benchmarks -I./concurrency_control -I./storage -I./system -I../cicada-engine/src -I..
#CFLAGS += $(INCLUDE) -D NOGRAPHITE=1 -Werror -O3
CFLAGS += $(INCLUDE) -D NOGRAPHITE=1 -Wno-unused-function -O3 #-fno-omit-frame-pointer
#CFLAGS += $(INCLUDE) -D NOGRAPHITE=1 -Wno-unused-function -Og -fno-omit-frame-pointer
#CFLAGS += $(INCLUDE) -D NOGRAPHITE=1 -Wno-unused-function -O0 -fno-omit-frame-pointer
#LDFLAGS = -Wall -L. -L./libs -pthread -g -lrt -std=c++0x -O3 -ljemalloc
#LDFLAGS = -Wall -L. -L./libs -L../cicada-engine/build -pthread -g -lrt -std=c++14 -lcommon -lnuma -ljemalloc -O3
LDFLAGS = -Wall -L. -L../cicada-engine/build -pthread -g -lrt -std=c++14 -lcommon -lnuma -ljemalloc -O3
LDFLAGS += $(CFLAGS)
CPPS = $(foreach dir, $(SRC_DIRS), $(wildcard $(dir)*.cpp))
OBJS = $(CPPS:.cpp=.o)
DEPS = $(CPPS:.cpp=.d)
all:rundb
rundb : $(OBJS) ../cicada-engine/build/libcommon.a \
../silo/out-perf.masstree/allocator.o \
../silo/out-perf.masstree/compiler.o \
../silo/out-perf.masstree/core.o \
../silo/out-perf.masstree/counter.o \
../silo/out-perf.masstree/json.o \
../silo/out-perf.masstree/straccum.o \
../silo/out-perf.masstree/string.o \
../silo/out-perf.masstree/ticker.o \
../silo/out-perf.masstree/rcu.o
$(CC) -o $@ $^ $(LDFLAGS)
-include $(OBJS:%.o=%.d)
%.d: %.cpp
$(CC) -MM -MT $*.o -MF $@ $(CFLAGS) $<
%.o: %.cpp
$(CC) -c $(CFLAGS) -o $@ $<
.PHONY: clean
clean:
rm -f rundb $(OBJS) $(DEPS)