/
Makefile
48 lines (43 loc) · 1.09 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
CXX=g++
CXXFLAGS+=-Wall -O3 -std=c++14 -DNDEBUG
all: run
debug: CXXFLAGS += -g3 -DDEBUG_MSG
debug: run
run: main.o \
Utils.o \
Cache/LRUCache/LRUCache.o \
Cache/GDSCache/GDSCache.o \
Cache/GDSCache2/GDSCache2.o \
Cache/GDSCache3/GDSCache3.o \
Cache/GDSCache4/GDSCache4.o \
Cache/PGDSUCache/PGDSUCache.o \
Base/Config.o \
HRank/HRankSY.o \
TransitionMatrix/ConstraintMatrix.o \
TransitionMatrix/TransitionMatrix.o \
MNCSketches/MNCSketches.o \
MatrixMultiplier/DynamicOptimizer.o \
ext_libs/GeneralizedSuffixTree/ST.o \
ext_libs/GeneralizedSuffixTree/STnode.o \
Base/Executor.o \
MatrixMultiplier/MatrixMultiplier.o \
OTree/OTree.o \
CacheBaselines/SimpleBaseline.o \
CacheBaselines/AdvancedBaseline.o \
$(CXX) -o $@ $^ -L BaseAlgorithm/ -L TransitionMatrix/ $(CXXFLAGS)
clean:
rm *.o
rm Base/*.o
rm Cache/LRUCache/*.o
rm Cache/GDSCache/*.o
rm Cache/GDSCache2/*.o
rm Cache/GDSCache3/*.o
rm Cache/GDSCache4/*.o
rm Cache/PGDSUCache/*.o
rm HRank/*.o
rm OTree/*.o
rm TransitionMatrix/*.o
rm MatrixMultiplier/*.o
rm ext_libs/GeneralizedSuffixTree/*.o
rm CacheBaselines/*.o
rm run