-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
67 lines (49 loc) · 1.28 KB
/
Copy pathmakefile
File metadata and controls
67 lines (49 loc) · 1.28 KB
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
OFLAGS = -DNDEBUG -O3
BOOST_DEFINE=0
BOOST_LIBS=#-lboost_iostreams
CC=g++
STD=-std=c++14
CFLAGS= -g -c -W -Wall -Wextra $(STD) -Wno-missing-field-initializers -Wshadow \
-fopenmp -march=native -DWILL_USE_BOOST=$(BOOST_DEFINE) \
$(OFLAGS)
LFLAGS= -g $(OFLAGS) -fopenmp -pthread $(STD)
PROG=./real
.PHONY:clean
Objects1= Timer.o entry_pool.o
Objects2= MappedFile.o
Objects3= real.o
Objects= $(Objects1) $(Objects2) $(Objects3)
all : $(Objects) gen eatram real
eatram : eatram.cpp
g++ eatram.cpp -o eatram -O3
gen: ./generate.cpp
g++ generate.cpp -g -o gen -fopenmp --std=c++14
real : real.o MappedFile.o entry_pool.o Timer.o
$(CC) $(Std) $(LFLAGS) real.o Timer.o entry_pool.o MappedFile.o -o real $(BOOST_LIBS)
MappedFile.o: MappedFile.cpp MappedFile.hpp
$(CC) $(CFLAGS) $<
entry_pool.o: entry_pool.h entry_pool.cpp
$(CC) $(CFLAGS) entry_pool.cpp
Timer.o: Timer.h Timer.cpp
$(CC) $(CFLAGS) Timer.cpp
real.o : real.cpp entry_pool.h
$(CC) $(CFLAGS) real.cpp
dbg: $(PROG)
gdb $(PROG)
run: $(PROG)
$(PROG)
time: $(PROG)
time $(PROG)
cache: $(PROG)
rm c*grind* -f
valgrind --tool=cachegrind $(PROG)
call: $(PROG)
rm c*grind* -f
valgrind --tool=callgrind $(PROG)
inspect:
kcachegrind c*grind\.out\.*
clean:
rm -f *o
rm -f c*grind\.out\.*
rm -f dump
rm -f gen