-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (41 loc) · 1.06 KB
/
Makefile
File metadata and controls
54 lines (41 loc) · 1.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
TESTS = wfqueue wfqueue0 lcrq ccqueue msqueue faa delay
CC = gcc
CFLAGS = -g -Wall -O3 -pthread -D_GNU_SOURCE
LDLIBS = -lpthread -lm
ifeq (${VERIFY}, 1)
CFLAGS += -DVERIFY
endif
ifeq (${SANITIZE}, 1)
CFLAGS += -fsanitize=address -fno-omit-frame-pointer
LDLIBS += -lasan
LDFLAGS = -fsanitize=address
endif
ifdef JEMALLOC_PATH
LDFLAGS += -L${JEMALLOC_PATH}/lib -Wl,-rpath,${JEMALLOC_PATH}/lib
LDLIBS += -ljemalloc
endif
all: $(TESTS)
wfqueue0: CFLAGS += -DMAX_PATIENCE=0
wfqueue0.o: wfqueue.c
$(CC) $(CFLAGS) -c -o $@ $^
haswell: CFLAGS += -DGUADALUPE_COMPACT
haswell: all
mic: CC = /usr/linux-k1om-4.7/bin/x86_64-k1om-linux-gcc
mic: CFLAGS += -DGUADALUPE_MIC_COMPACT -DLOGN_OPS=6
mic biou: $(filter-out lcrq,$(TESTS))
biou: CFLAGS += -DBIOU_COMPACT
wfqueue wfqueue0: CFLAGS += -DWFQUEUE
lcrq: CFLAGS += -DLCRQ
ccqueue: CFLAGS += -DCCQUEUE
msqueue: CFLAGS += -DMSQUEUE
faa: CFLAGS += -DFAAQ
delay: CFLAGS += -DDELAY
$(TESTS): harness.o
ifeq (${HALFHALF}, 1)
$(TESTS): halfhalf.o
else
$(TESTS): pairwise.o
endif
msqueue lcrq: hzdptr.o xxhash.o
clean:
rm -f $(TESTS) *.o