forked from ravinet/mahimahi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
79 lines (73 loc) · 2.94 KB
/
Makefile.am
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
AM_CPPFLAGS = -I./protobufs
AM_CXXFLAGS = $(PICKY_CXXFLAGS)
SUBDIRS = protobufs
common_source = exception.hh ezio.cc ezio.hh \
file_descriptor.hh netdevice.cc netdevice.hh timestamp.cc timestamp.hh \
child_process.hh child_process.cc signalfd.hh signalfd.cc \
socket.cc socket.hh address.cc address.hh \
system_runner.hh system_runner.cc nat.hh nat.cc \
socket_type.hh util.hh util.cc dns_proxy.hh dns_proxy.cc \
get_address.hh get_address.cc \
poller.hh poller.cc bytestream_queue.hh bytestream_queue.cc \
read_write_interface.hh
packet_shell_source = ferry.hh ferry.cc packetshell.cc packetshell.hh make_pipe.hh
bin_PROGRAMS = delayshell
delayshell_SOURCES = $(common_source) $(packet_shell_source) delayshell.cc \
delay_queue.hh delay_queue.cc
delayshell_LDADD = -lrt
delayshell_LDFLAGS = -pthread
bin_PROGRAMS += cellshell
cellshell_SOURCES = $(common_source) $(packet_shell_source) cellshell.cc \
cell_queue.hh cell_queue.cc
cellshell_LDADD = -lrt
cellshell_LDFLAGS = -pthread
bin_PROGRAMS += recordshell
recordshell_SOURCES = $(common_source) recordshell.cc \
http_proxy.hh http_proxy.cc \
http_request_parser.hh \
http_request.hh http_request.cc \
http_response.hh http_response.cc \
http_header.hh http_header.cc \
http_response_parser.hh http_response_parser.cc \
tokenize.hh mime_type.hh mime_type.cc \
body_parser.hh \
chunked_parser.hh chunked_parser.cc \
http_message.hh http_message.cc \
http_message_sequence.hh \
secure_socket.hh secure_socket.cc \
certificate.hh
recordshell_LDADD = -lrt
recordshell_LDADD += protobufs/libhttprecordprotos.a -lm $(protobuf_LIBS)
recordshell_LDADD += -lssl -lcrypto -ldl
recordshell_LDFLAGS = -pthread
bin_PROGRAMS += youtubeshell
youtubeshell_SOURCES = $(common_source) youtubeshell.cc \
http_proxy.hh http_proxy.cc \
http_request_parser.hh \
http_request.hh http_request.cc \
http_response.hh http_response.cc \
http_header.hh http_header.cc \
http_response_parser.hh http_response_parser.cc \
tokenize.hh mime_type.hh mime_type.cc \
body_parser.hh \
chunked_parser.hh chunked_parser.cc \
http_message.hh http_message.cc \
http_message_sequence.hh \
secure_socket.hh secure_socket.cc \
replayserver.hh replayserver.cc \
http_replicator.hh http_replicator.cc \
youtube_server.hh youtube_server.cc \
certificate.hh
youtubeshell_LDADD = -lrt
youtubeshell_LDADD += protobufs/libhttprecordprotos.a -lm $(protobuf_LIBS)
youtubeshell_LDADD += -lssl -lcrypto -ldl
youtubeshell_LDFLAGS = -pthread
install-exec-hook:
chown root $(DESTDIR)$(bindir)/delayshell
chmod u+s $(DESTDIR)$(bindir)/delayshell
chown root $(DESTDIR)$(bindir)/cellshell
chmod u+s $(DESTDIR)$(bindir)/cellshell
chown root $(DESTDIR)$(bindir)/recordshell
chmod u+s $(DESTDIR)$(bindir)/recordshell
chown root $(DESTDIR)$(bindir)/youtubeshell
chmod u+s $(DESTDIR)$(bindir)/youtubeshell