-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
76 lines (56 loc) · 3.06 KB
/
Makefile
File metadata and controls
76 lines (56 loc) · 3.06 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
68
69
70
71
72
73
74
75
76
#DB_HOME = /usr/local/BerkeleyDB.6.1
#INCLUDE = -I ${DB_HOME}/include
#DBLIBS = -L ${DB_HOME}/lib -ldb
DBLIBS = -lhiredis -lglib
CFLAGS = -O2 -g
CC = gcc
MAKE = make
all:
$(MAKE) collector
$(MAKE) collision_detector
$(MAKE) refs_distribution_exporter refs_locality_exporter simd_exporter simd_reverse_exporter fslayout_generator
$(MAKE) chunk_refs_distance_analyzer chunk_size_analyzer
$(MAKE) file_refs_source_analyzer file_size_analyzer file_type_analyzer file_exporter
collector:store collector.c libhashfile
$(CC) $(CFLAGS) $(INCLUDE) collector.c store.o data.o -o collector libhashfile.o -lcrypto $(DBLIBS)
collision_detector:collision_detector.c libhashfile store
$(CC) $(CFLAGS) $(INCLUDE) collision_detector.c -o collision_detector data.o libhashfile.o -lglib
# reference analyzer
refs_distribution_exporter:store refs_distribution_exporter.c
$(CC) $(CFLAGS) $(INCLUDE) refs_distribution_exporter.c store.o data.o -o refs_distribution_exporter $(DBLIBS)
refs_locality_exporter:store refs_locality_exporter.c libhashfile
$(CC) $(CFLAGS) $(INCLUDE) refs_locality_exporter.c store.o data.o -o refs_locality_exporter libhashfile.o $(DBLIBS)
# chunk analyzer
chunk_refs_distance_analyzer:store chunk_refs_distance_analyzer.c
$(CC) $(CFLAGS) $(INCLUDE) chunk_refs_distance_analyzer.c store.o data.o -o chunk_refs_distance_analyzer $(DBLIBS)
chunk_size_analyzer:store chunk_size_analyzer.c
$(CC) $(CFLAGS) $(INCLUDE) chunk_size_analyzer.c store.o data.o -o chunk_size_analyzer $(DBLIBS)
# file analyzer
file_refs_source_analyzer:store file_refs_source_analyzer.c
$(CC) $(CFLAGS) $(INCLUDE) file_refs_source_analyzer.c store.o data.o -o file_refs_source_analyzer $(DBLIBS)
file_size_analyzer:store file_size_analyzer.c
$(CC) $(CFLAGS) $(INCLUDE) file_size_analyzer.c store.o data.o -o file_size_analyzer -lglib $(DBLIBS) -lm
file_type_analyzer:store file_type_analyzer.c
$(CC) $(CFLAGS) $(INCLUDE) file_type_analyzer.c store.o data.o -o file_type_analyzer -lglib $(DBLIBS)
file_exporter:store file_exporter.c
$(CC) $(CFLAGS) $(INCLUDE) file_exporter.c store.o data.o -o file_exporter -lglib $(DBLIBS)
# SIMD trace exportr
simd_exporter:store simd_exporter.c libhashfile
$(CC) $(CFLAGS) $(INCLUDE) simd_exporter.c store.o data.o -o simd_exporter libhashfile.o -lglib $(DBLIBS)
simd_reverse_exporter:store simd_reverse_exporter.c libhashfile
$(CC) $(CFLAGS) $(INCLUDE) simd_reverse_exporter.c store.o data.o -o simd_reverse_exporter libhashfile.o -lglib $(DBLIBS)
fslayout_generator:fslayout_generator libhashfile
$(CC) $(CFLAGS) $(INCLUDE) fslayout_generator.c -o fslayout_generator libhashfile.o -lglib $(DBLIBS)
store:store.c data.c
$(CC) $(CFLAGS) -c store.c -o store.o $(INCLUDE)
$(CC) $(CFLAGS) -c data.c -o data.o $(INCLUDE)
libhashfile:libhashfile.c
$(CC) $(CFLAGS) -c libhashfile.c
clean:
rm *.o
rm collector
rm collision_detector
rm refs_distribution_exporter refs_locality_exporter
rm chunk_refs_distance_analyzer chunk_size_analyzer
rm file_refs_source_analyzer file_size_analyzer file_type_analyzer file_exporter
rm simd_exporter simd_reverse_exporter fslayout_generator