-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
66 lines (53 loc) · 1.24 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
.SUFFIXES:
.SUFFIXES: .o .cpp
CXX=g++
CXXFLAGS=-O3 -funroll-loops
SRC=FileManager.cpp \
DiskPage.cpp \
MemoryBlock.cpp \
FileDescriptor.cpp \
Table.cpp \
SequentialScan.cpp \
JoinOperator.cpp \
NestedBlockJoin.cpp \
BufferManager.cpp \
IRelationalOperator.cpp \
Schema.cpp \
Tuple.cpp \
Projection.cpp \
Attribute.cpp \
Column.cpp \
BooleanExpression.cpp \
Operand.cpp \
Clause.cpp \
PageLayout.cpp \
DataCreator.cpp \
MergeJoin.cpp \
Query.cpp \
Database.cpp \
Partition.cpp \
MaterializationLayout.cpp \
TupleStreamReader.cpp \
TupleStreamWriter.cpp \
Parser.cpp \
Scanner.cpp \
Settings.cpp
OBJS=$(SRC:.cpp=.o)
all: dblite benchmarking
dblite: $(OBJS) Application.o
$(CXX) -o dblite ${OBJS} Application.o
benchmarking: genqueries benchmark
genqueries: $(OBJS) GenerateQueries.o
$(CXX) -g -o genqueries $(OBJS) GenerateQueries.o
benchmark: Benchmark.o $(OBJS)
$(CXX) -g -o benchmark -lpthread $(OBJS) Benchmark.o
GenerateQueries.o: GenerateQueries.cpp
$(CXX) $(CXXFLAGS) -c GenerateQueries.cpp
Benchmark.o: Benchmark.cpp $(SRC)
$(CXX) $(CXXFLAGS) -c Benchmark.cpp
Application.o: Application.cpp
$(CXX) $(CXXFLAGS) -c Application.cpp
cpp.o:
$(CXX) $(CXXFLAGS) -s $<
clean:
rm -rf *.o *~ dblite benchmark genqueries