-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
37 lines (31 loc) · 1.11 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
EXECUTABLES=database sort buffertest slottedtest btreetest unit_test
.PHONY: $(EXECUTABLES)
CPP_FILES = database/common/IDs.cpp \
database/utils/Lock.cpp \
database/utils/Mutex.cpp \
database/buffer/BufferManager.cpp \
database/buffer/BufferFrame.cpp \
database/segment/Record.cpp \
database/segment/Segment.cpp \
database/segment/SlottedPage.cpp \
database/segment/SlottedPageIterator.cpp \
database/segment/SPSegment.cpp \
database/segment/SPSegmentIterator.cpp \
database/schema/SchemaManager.cpp \
database/operator/Register.cpp \
database/operator/PrintOperator.cpp \
database/operator/ProjectionOperator.cpp \
database/operator/SelectionOperator.cpp \
database/operator/HashJoinOperator.cpp \
database/operator/TableScanOperator.cpp \
unit_test/gtest/gtest-all.cc
CC=clang++
FLAGS=-std=c++11 -O3
INC=-I generator -I database
CPP=./$@/main.cpp $(CPP_FILES)
OUT=-o bin/$@
all: $(EXECUTABLES)
$(EXECUTABLES):
$(CC) $(CPP) $(FLAGS) $(INC) $(OUT)
clean:
rm bin/*