-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathMakefile
34 lines (21 loc) · 780 Bytes
/
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
# Makefile
CC = clang
#CFLAGS = -Wall -Wextra -g -ggdb -O0 -pthread -std=gnu11
CFLAGS = -Wall -Wextra -O3 -pthread -std=gnu11
LIBRARY = -lcrypto -lrt -lm
#LIBRARY = -lcrypto -lrt -lm -ljemalloc
MODULES = table coding mempool debug bloom db rwlock stat conc cmap generator
SOURCES = $(patsubst %, %.c, $(MODULES))
HEADERS = $(patsubst %, %.h, $(MODULES))
DEPS = $(SOURCES) $(HEADERS)
BINARYS = table_test bloom_test rwlock_test generator_test mixed_test cmap_test cm_util io_util staged_read seqio_util
.PHONY : ess all util clean check
ess : table_test mixed_test
util : io_util cm_util seqio_util
all : $(BINARYS)
% : %.c $(DEPS)
$(CC) $(CFLAGS) -o $@ $< $(SOURCES) $(LIBRARY)
clean :
rm -rf $(BINARYS) *.o
check :
cppcheck -I /usr/include -DDUMMY --enable=all .