-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (30 loc) · 1.1 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
CFLAGS := -O3
TARGETS := get_sum toG to_MiB_s exhaust_nvmm write_1G create_files to_nsec aging_system shuffle_and_write replay replay_static rw_interference
all: ${TARGETS}
helper/mt19937ar.o: helper/mt19937ar.c helper/mt19937ar.h
gcc -c helper/mt19937ar.c -O3 -o $@
helper/lcg.o: helper/lcg.c helper/lcg.h
gcc -c helper/lcg.c -O3 -o $@
helper/map.o: helper/map.c helper/map.h
gcc -c helper/map.c -O3 -o $@
exhaust_nvmm: helper/exhaust_nvmm.c helper/mt19937ar.o
gcc $^ -O3 -o $@
write_1G: helper/write_1G.c helper/mt19937ar.o
gcc $^ -O3 -o $@
aging_system: helper/aging_system.c helper/mt19937ar.o
gcc $^ -O3 -o $@
shuffle_and_write: helper/shuffle_and_write.cpp helper/mt19937ar.o
gcc $^ -O3 -o $@
replay: helper/replay.c helper/mt19937ar.o helper/lcg.o helper/map.o
gcc $^ -O3 -g -o $@ -lpthread
replay_static: helper/replay.c helper/mt19937ar.o helper/lcg.o helper/map.o
gcc $^ -static -O3 -o $@ -lpthread
rw_interference: helper/rw_interference.cpp
gcc $^ -O3 -o $@ -lpthread -lstdc++
%: helper/%.c
gcc $^ -O3 -o $@
%: helper/%.cpp
g++ $^ -O3 -o $@
clean:
rm ${TARGETS}
.PHONY: all clean