-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
38 lines (27 loc) · 1.12 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
ARCH = $(shell uname -p)
NPROC = $(shell nproc)
LIBS = $(shell ./libconcurrent/libdeps.sh)
CLANG_AR = ar
DIR = /opt
all:
make $(ARCH)
debug:
make $(ARCH) D_ARGS="-DDEBUG"
codecov:
make $(ARCH) D_ARGS="-DDEBUG -ftest-coverage -fprofile-arcs --coverage -O0"
x86_64:
make -f Makefile.generic -j $(NPROC) COMPILER=$(CC) LDLIBS='$(LIBS)' CFLAGS='-Wall -std=gnu89 -Ofast -fPIC -flto -ftree-vectorize -finline-functions -march=native -mtune=native'
icx:
make -f Makefile.generic -j $(NPROC) COMPILER=icx LDLIBS='$(LIBS)' CFLAGS='-Wall -std=gnu89 -O3 -fPIC -ftree-vectorize -finline-functions -march=native -mtune=native'
clang:
make -f Makefile.generic -j $(NPROC) COMPILER=clang AR=$(CLANG_AR) LDLIBS='$(LIBS)' CFLAGS='-Wall -std=gnu89 -Ofast -fPIC -ftree-vectorize -finline-functions -march=native -mtune=native'
unknown:
make -f Makefile.generic -j $(NPROC) COMPILER=$(CC) LDLIBS='$(LIBS)' CFLAGS='-std=gnu89 -Ofast -fPIC -flto'
clean:
make -f Makefile.generic clean
docs:
make -f Makefile.generic docs
install:
make -f Makefile.generic install INSTALL_DIR=$(DIR)
uninstall:
make -f Makefile.generic uninstall