-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
executable file
·45 lines (38 loc) · 1.01 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
39
40
41
42
43
44
45
DD_AVX_DIR?=$(HOME)/lib/dd_avx/
all: avx2
avx512:
git submodule update -i
$(MAKE) -C submodules -f Makefile.qd
$(MAKE) -C submodules -f Makefile.qd install
mkdir -p src/obj
$(MAKE) -j -C src/ -f Makefile.avx512
avx2:
git submodule update -i
$(MAKE) -C submodules -f Makefile.qd
$(MAKE) -C submodules -f Makefile.qd install
mkdir -p src/obj
$(MAKE) -j -C src/ -f Makefile.avx2
avx:
git submodule update -i
$(MAKE) -C submodules -f Makefile.qd
$(MAKE) -C submodules -f Makefile.qd install
mkdir -p src/obj
$(MAKE) -j -C src/ -f Makefile.avx
install:
mkdir -p $(DD_AVX_DIR)/lib/
mkdir -p $(DD_AVX_DIR)/include/
cp -r ./lib/* $(DD_AVX_DIR)/lib/
cp -r ./include/* $(DD_AVX_DIR)/include/
clean:
- rm -rf src/obj
- rm -rf ./lib/*
- rm -rf include/qd
- rm -rf ./lib/libdd-avx.so
- rm -rf $(DD_AVX_DIR)/lib/
- rm -rf $(DD_AVX_DIR)/include/
- $(MAKE) -C submodules -f Makefile.qd clean
clean_lib:
- rm -rf src/obj/*
- rm -rf ./lib/libdd-avx.so
- rm -rf $(DD_AVX_DIR)/lib/
- rm -rf $(DD_AVX_DIR)/include/