-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
71 lines (47 loc) · 1.64 KB
/
Makefile
File metadata and controls
71 lines (47 loc) · 1.64 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
CC := gcc
LD := gcc
ROOT ?= ../..
MAKE := make
NPROC=$(shell nproc)
CFLAGS += -g -Wall -Winline $(LDLIB)
LDFLAGS += -lpthread
.PHONY: all clean
BINS = benchmark_list_single_thread test_list_single_thread
all: $(BINS)
benchmark_list.o: benchmark_list.c benchmark_list.h
$(CC) $(CFLAGS) -c -o $@ $<
test_list.o: test_list.c benchmark_list.h
$(CC) $(CFLAGS) -c -o $@ $<
list_single_thread.o: list_single_thread.c benchmark_list.h
$(CC) $(CFLAGS) -c -o $@ $<
list_bfl.o: list_bfl.c benchmark_list.h
$(CC) $(CFLAGS) -c -o $@ $<
list_qsbr.o: list_qsbr.c benchmark_list.h
$(CC) $(CFLAGS) -c -o $@ $<
list_cas.o: list_cas.c benchmark_list.h
$(CC) $(CFLAGS) -c -o $@ $<
benchmark_list_single_thread: benchmark_list.o list_single_thread.o
$(LD) $(LDLIB) -o $@ $^ $(LDFLAGS)
benchmark_list_bfl: benchmark_list.o list_bfl.o
$(LD) $(LDLIB) -o $@ $^ $(LDFLAGS)
benchmark_list_qsbr: benchmark_list.o list_qsbr.o qsbr.o
$(LD) $(LDLIB) -o $@ $^ $(LDFLAGS)
benchmark_list_cas: benchmark_list.o list_cas.o qsbr.o
$(LD) $(LDLIB) -o $@ $^ $(LDFLAGS)
test_list_single_thread: test_list.o list_single_thread.o
$(LD) $(LDLIB) -o $@ $^ $(LDFLAGS)
test_list_bfl: test_list.o list_bfl.o
$(LD) $(LDLIB) -o $@ $^ $(LDFLAGS)
test_list_qsbr: test_list.o list_qsbr.o qsbr.o
$(LD) $(LDLIB) -o $@ $^ $(LDFLAGS)
test_list_cas: test_list.o list_cas.o qsbr.o
$(LD) $(LDLIB) -o $@ $^ $(LDFLAGS)
tree_single_thread.o: tree_single_thread.c
$(CC) $(CFLAGS) -c -o $@ $<
benchmark_tree_single_thread: tree_single_thread.o benchmark_list.o
$(LD) $(LDLIB) -o $@ $^ $(LDFLAGS)
report.pdf: report.tex
pdflatex report.tex
pdflatex report.tex
clean:
rm -f $(BINS) *.o *.so