forked from IamXander/NetworkStackTesting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (35 loc) · 2.46 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
51
52
CXXFALGS = g++ -O2 -g -pthread -std=c++17 -D CORE_COUNT=8 -I include -I boost
default: benchmark_af_socket_server.out benchmark_af_socket_client.out benchmark_af_socket_send_file_server.out benchmark_af_socket_send_file_client.out benchmark_boost_server.out benchmark_boost_client.out benchmark_ring_server.out benchmark_ring_client.out
clean:
rm -f *.o
rm -f *.out
af_socket_driver.o: include/driver.h src/af_socket/driver.cpp
$(CXXFALGS) src/af_socket/driver.cpp -c -o af_socket_driver.o
af_socket_send_file_driver.o: include/driver.h src/af_socket/driver.cpp
$(CXXFALGS) src/af_socket/driver.cpp -c -o af_socket_send_file_driver.o -D SEND_FILE
ring_driver.o: include/driver.h src/ring/driver.cpp
$(CXXFALGS) src/ring/driver.cpp -c -o ring_driver.o
boost_driver.o: include/driver.h src/boost/driver.cpp
$(CXXFALGS) src/boost/driver.cpp -c -o boost_driver.o
cpu.o: include/cpu/cpu.h src/cpu/cpu.cpp
$(CXXFALGS) src/cpu/cpu.cpp -c -o cpu.o
benchmark_server.o: src/benchmark_server.cpp
$(CXXFALGS) src/benchmark_server.cpp -c -o benchmark_server.o
benchmark_client.o: src/benchmark_client.cpp
$(CXXFALGS) src/benchmark_client.cpp -c -o benchmark_client.o
benchmark_af_socket_server.out: cpu.o benchmark_server.o af_socket_driver.o
$(CXXFALGS) -o benchmark_af_socket_server.out benchmark_server.o cpu.o af_socket_driver.o
benchmark_af_socket_client.out: cpu.o benchmark_client.o af_socket_driver.o
$(CXXFALGS) -o benchmark_af_socket_client.out benchmark_client.o cpu.o af_socket_driver.o
benchmark_af_socket_send_file_server.out: cpu.o benchmark_server.o af_socket_send_file_driver.o
$(CXXFALGS) -o benchmark_af_socket_send_file_server.out benchmark_server.o cpu.o af_socket_send_file_driver.o
benchmark_af_socket_send_file_client.out: cpu.o benchmark_client.o af_socket_send_file_driver.o
$(CXXFALGS) -o benchmark_af_socket_send_file_client.out benchmark_client.o cpu.o af_socket_send_file_driver.o
benchmark_ring_server.out: cpu.o benchmark_server.o ring_driver.o
$(CXXFALGS) -o benchmark_ring_server.out benchmark_server.o cpu.o ring_driver.o
benchmark_ring_client.out: cpu.o benchmark_client.o ring_driver.o
$(CXXFALGS) -o benchmark_ring_client.out benchmark_client.o cpu.o ring_driver.o
benchmark_boost_server.out: cpu.o benchmark_server.o boost_driver.o
$(CXXFALGS) -o benchmark_boost_server.out benchmark_server.o cpu.o boost_driver.o
benchmark_boost_client.out: cpu.o benchmark_client.o boost_driver.o
$(CXXFALGS) -o benchmark_boost_client.out benchmark_client.o cpu.o boost_driver.o