-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (37 loc) · 1.31 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
46
47
48
49
50
.PHONY: fio nvme-cli openssl iperf_config iperf_prepare iperf_make iperf linux nginx perf wrk
all: fio nvme-cli openssl iperf linux nginx perf wrk
fio:
(cd fio && ./configure && make && make install)
nvme-cli:
(cd nvme-cli && make && make install)
openssl:
(cd openssl && \
./config enable-ktls enable-ssl3 enable-threads linux-x86_64 && \
make -j && make -j)
iperf_config:
(cd iperf && \
./configure)
iperf_prepare:
$(shell cd iperf; echo DEFAULT_INCLUDES = -I. -I$$\(top_builddir\) -I$$\(top_builddir\)/../openssl/include >> src/Makefile)
$(shell cd iperf; echo LIBS = -lrt -lcrypto -lssl -L$$\(top_builddir\)/../openssl -I$$\(top_builddir\)/../openssl/include >> src/Makefile)
$(shell cd iperf; sed -i 's/#define bool int/\/\/#define bool int/g' config.h)
iperf_make:
(cd iperf && make -j)
iperf: iperf_config iperf_prepare iperf_make
nginx:
(cd nginx &&\
./auto/configure --with-openssl=../openssl --with-threads --with-http_ssl_module --with-openssl-opt="enable-ktls enable-ssl3 enable-threads linux-x86_64" && \
make -j && make -j)
linux:
(cd linux && \
cp config.nvme .config && \
make olddefconfig && \
make -j && \
sudo make -j modules_install && \
sudo make headers_install ARCH=i386 INSTALL_HDR_PATH=/usr)
perf:
(cd linux/tools/perf &&\
make -j)
wrk:
(cd wrk &&\
make -j)