-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
94 lines (74 loc) · 4.85 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
.PHONY: all clean
CXX = g++
CXXFLAGS = -Wall -Wextra -O2 -std=c++17 -g
test_file_creation: util/test_file_creation.cc util/util.cc
$(CXX) $(CXXFLAGS) -o test_file_creation util/test_file_creation.cc util/util.cc -lkvazaar -lpthread
uvgrtp_sender: uvgrtp/sender.cc util/util.cc
$(CXX) $(CXXFLAGS) -o uvgrtp/sender uvgrtp/sender.cc util/util.cc uvgrtp/v3c_util.cc -luvgrtp -lpthread -lcryptopp
uvgrtp_receiver: uvgrtp/receiver.cc util/util.cc
$(CXX) $(CXXFLAGS) -o uvgrtp/receiver uvgrtp/receiver.cc util/util.cc uvgrtp/v3c_util.cc -luvgrtp -lpthread -lcryptopp
uvgrtp_latency_sender: uvgrtp/latency_sender.cc util/util.cc
$(CXX) $(CXXFLAGS) -o uvgrtp/latency_sender uvgrtp/latency_sender.cc util/util.cc uvgrtp/v3c_util.cc -luvgrtp -lpthread -lcryptopp
uvgrtp_latency_receiver: uvgrtp/latency_receiver.cc util/util.cc
$(CXX) $(CXXFLAGS) -o uvgrtp/latency_receiver uvgrtp/latency_receiver.cc util/util.cc uvgrtp/v3c_util.cc -luvgrtp -lpthread -lcryptopp
uvgrtp_vpcc_latency_sender: uvgrtp/vpcc_latency_sender.cc util/util.cc
$(CXX) $(CXXFLAGS) -o uvgrtp/vpcc_latency_sender uvgrtp/vpcc_latency_sender.cc util/util.cc uvgrtp/v3c_util.cc -luvgrtp -lpthread -lcryptopp
uvgrtp_vpcc_latency_receiver: uvgrtp/vpcc_latency_receiver.cc util/util.cc
$(CXX) $(CXXFLAGS) -o uvgrtp/vpcc_latency_receiver uvgrtp/vpcc_latency_receiver.cc util/util.cc uvgrtp/v3c_util.cc -luvgrtp -lpthread -lcryptopp
uvgrtp_vpcc_sender: uvgrtp/vpcc_sender.cc util/util.cc
$(CXX) $(CXXFLAGS) -o uvgrtp/vpcc_sender uvgrtp/vpcc_sender.cc util/util.cc uvgrtp/v3c_util.cc -luvgrtp -lpthread -lcryptopp
uvgrtp_vpcc_receiver: uvgrtp/vpcc_receiver.cc util/util.cc
$(CXX) $(CXXFLAGS) -o uvgrtp/vpcc_receiver uvgrtp/vpcc_receiver.cc util/util.cc uvgrtp/v3c_util.cc -luvgrtp -lpthread -lcryptopp
# ffmpeg_sender:
# $(CXX) $(CXXFLAGS) -Wno-unused -Wno-deprecated-declarations -Wno-unused-result -o ffmpeg/sender \
# ffmpeg/sender.cc util/util.cc `pkg-config --libs libavformat` -lpthread
ffmpeg_sender: ffmpeg/sender.cc util/util.cc
$(CXX) $(CXXFLAGS) -Wno-unused -Wno-deprecated-declarations -Wno-unused-result -o ffmpeg/sender \
ffmpeg/sender.cc util/util.cc -lavformat -lavcodec -lswscale -lz -lavutil -lpthread
ffmpeg_receiver: ffmpeg/receiver.cc util/util.cc
$(CXX) $(CXXFLAGS) -Wno-unused -Wno-deprecated-declarations -Wno-unused-result -o ffmpeg/receiver \
ffmpeg/receiver.cc util/util.cc -lavformat -lavcodec -lswscale -lz -lavutil -lpthread
ffmpeg_latency_sender: ffmpeg/latency_sender.cc util/util.cc
$(CXX) $(CXXFLAGS) -Wno-unused -Wno-deprecated-declarations -Wno-unused-result -o ffmpeg/latency_sender \
ffmpeg/latency_sender.cc util/util.cc `pkg-config --libs libavformat` -lpthread
ffmpeg_latency_receiver: ffmpeg/latency_receiver.cc util/util.cc
$(CXX) $(CXXFLAGS) -Wno-unused -Wno-deprecated-declarations -Wno-unused-result -o ffmpeg/latency_receiver \
ffmpeg/latency_receiver.cc util/util.cc -lavformat -lavcodec -lswscale -lz -lavutil -lpthread
live555_sender: live555/sender.cc live555/source.cc util/util.cc
$(CXX) $(CXXFLAGS) live555/sender.cc live555/source.cc util/util.cc -o live555/sender \
-I /usr/local/include/liveMedia \
-I /usr/local/include/groupsock \
-I /usr/local/include/BasicUsageEnvironment \
-I /usr/local/include/UsageEnvironment \
-lpthread -lliveMedia -lgroupsock -lBasicUsageEnvironment \
-lUsageEnvironment -lcrypto -lssl
live555_receiver: live555/receiver.cc live555/sink.cc util/util.cc
$(CXX) $(CXXFLAGS) live555/receiver.cc live555/sink.cc util/util.cc -o live555/receiver \
-I /usr/local/include/liveMedia \
-I /usr/local/include/groupsock \
-I /usr/local/include/BasicUsageEnvironment \
-I /usr/local/include/UsageEnvironment \
-lpthread -lliveMedia -lgroupsock -lBasicUsageEnvironment \
-lUsageEnvironment -lcrypto -lssl
live555_latency_sender: live555/latency_sender.cc util/util.cc
$(CXX) $(CXXFLAGS) live555/latency_sender.cc util/util.cc -o live555/latency_sender \
-I /usr/local/include/liveMedia \
-I /usr/local/include/groupsock \
-I /usr/local/include/BasicUsageEnvironment \
-I /usr/local/include/UsageEnvironment \
-lpthread -lliveMedia -lgroupsock -lBasicUsageEnvironment \
-lUsageEnvironment -lcrypto -lssl
live555_latency_receiver: live555/latency_receiver.cc
$(CXX) $(CXXFLAGS) live555/latency_receiver.cc -o live555/latency_receiver \
-I /usr/local/include/liveMedia \
-I /usr/local/include/groupsock \
-I /usr/local/include/BasicUsageEnvironment \
-I /usr/local/include/UsageEnvironment \
-lpthread -lliveMedia -lgroupsock -lBasicUsageEnvironment \
-lUsageEnvironment -lcrypto -lssl
clean:
rm -f uvgrtp/receiver uvgrtp/sender uvgrtp/latency_sender uvgrtp/latency_receiver \
uvgrtp/vpcc_latency_sender uvgrtp/vpcc_latency_receiver \
uvgrtp/vpcc_sender uvgrtp/vpcc_receiver \
ffmpeg/receiver ffmpeg/sender ffmpeg/latency_sender ffmpeg/latency_receiver \
live555/receiver live555/sender live555/latency test_file_creation