-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
191 lines (166 loc) · 3.73 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
@AM_GIT_VERSION@
bin_PROGRAMS = sipp
TESTS = sipp_unittest
check_PROGRAMS = $(TESTS)
AM_CFLAGS=-I$(srcdir)/include -Wall -pedantic
AM_CXXFLAGS=-I$(srcdir)/include -Wall -pedantic
# For BSD-style elements in udphdr struct (uh_dport instead of dest)
# among others.
AM_CPPFLAGS=-D_BSD_SOURCE -D_DEFAULT_SOURCE
CLEANFILES =
EXTRA_DIST = \
$(srcdir)/src/fortune.cpp \
$(srcdir)/LICENSE.txt \
$(srcdir)/README.md \
$(srcdir)/THANKS \
$(srcdir)/sipp.dtd \
$(srcdir)/cpplint.py
if HAVE_OPENSSL
DEFS += -DUSE_OPENSSL
ssl_incl = \
include/sslcommon.h
ssl_SOURCES = \
$(ssl_incl) \
src/sslinit.c \
src/sslthreadsafe.c
endif
if HAVE_PCAP
DEFS += -DPCAPPLAY
pcap_incl = \
include/prepare_pcap.h \
include/send_packets.h
pcap_SOURCES = \
$(pcap_incl) \
src/prepare_pcap.c \
src/send_packets.c
endif
if HAVE_RTP
DEFS += -DRTP_STREAM
rtp_SOURCES = \
src/rtpstream.cpp \
include/rtpstream.hpp
endif
if HAVE_SCTP
DEFS += -DUSE_SCTP
endif
if HAVE_GSL
DEFS += -DHAVE_GSL
endif
if HAVE_EPOLL
DEFS += -DHAVE_EPOLL
endif
common_incl = \
include/comp.h \
include/infile.hpp \
include/listener.hpp \
include/logger.hpp \
include/md5.h \
include/message.hpp \
include/milenage.h \
include/call_generation_task.hpp \
include/ratetask.hpp \
include/reporttask.hpp \
include/rijndael.h \
include/scenario.hpp \
include/sip_parser.hpp \
include/screen.hpp \
include/socket.hpp \
include/socketowner.hpp \
include/stat.hpp \
include/strings.hpp \
include/task.hpp \
include/time.hpp \
include/variables.hpp \
include/watchdog.hpp \
include/xp_parser.h \
include/actions.hpp \
include/call.hpp \
include/auth.hpp \
include/deadcall.hpp
common_SOURCES = \
src/actions.cpp \
src/auth.cpp \
src/comp.c \
src/call.cpp \
src/deadcall.cpp \
src/infile.cpp \
src/listener.cpp \
src/logger.cpp \
src/md5.c \
src/message.cpp \
src/milenage.c \
src/call_generation_task.cpp \
src/ratetask.cpp \
src/reporttask.cpp \
src/rijndael.c \
src/scenario.cpp \
src/sip_parser.cpp \
src/screen.cpp \
src/socket.cpp \
src/socketowner.cpp \
src/stat.cpp \
src/strings.cpp \
src/task.cpp \
src/time.cpp \
src/variables.cpp \
src/watchdog.cpp \
src/xp_parser.c \
$(common_incl) \
$(ssl_SOURCES) \
$(pcap_SOURCES) \
$(rtp_SOURCES)
sipp_SOURCES = \
$(common_SOURCES) \
src/sipp.cpp \
include/sipp.hpp
sipp_CFLAGS = $(AM_CFLAGS) @GSL_CFLAGS@
sipp_CXXFLAGS = $(AM_CXXFLAGS) @GSL_CXXFLAGS@
sipp_LDADD = @LIBOBJS@ @GSL_LIBS@
# call.cpp and sipp.cpp use version.h; see AM_GIT_VERSION.
src/call.cpp: include/version.h
src/sipp.cpp: include/version.h
gtest_SOURCES = \
gtest/src/gtest-death-test.cc \
gtest/src/gtest-filepath.cc \
gtest/src/gtest-internal-inl.h \
gtest/src/gtest-port.cc \
gtest/src/gtest-printers.cc \
gtest/src/gtest-test-part.cc \
gtest/src/gtest-typed-test.cc \
gtest/src/gtest.cc \
gmock/src/gmock-internal-utils.cc \
gmock/src/gmock-matchers.cc
sipp_unittest_SOURCES = \
$(common_SOURCES) \
src/sipp_unittest.cpp \
src/xp_parser_ut.cpp \
$(gtest_SOURCES)
sipp_unittest_CFLAGS = $(AM_CFLAGS) -DGTEST=1 \
-I$(srcdir)/gtest/include \
-I$(srcdir)/gmock/include \
-I$(srcdir)/gtest \
-I$(srcdir)/gmock \
@GSL_CFLAGS@
sipp_unittest_CXXFLAGS = $(AM_CXXFLAGS) -DGTEST=1 \
-I$(srcdir)/gtest/include \
-I$(srcdir)/gmock/include \
-I$(srcdir)/gtest \
-I$(srcdir)/gmock \
@GSL_CXXFLAGS@
sipp_unittest_LDADD = @LIBOBJS@ @GSL_LIBS@
# Ensure that after a reconfigure the source is cleaned.
.autoclean: Makefile
make clean
echo > .autoclean
BUILT_SOURCES = .autoclean
if HAVE_HELP2MAN
man_MANS = sipp.1
CLEANFILES += $(man_MANS)
sipp.1: ./sipp $(sipp_SOURCES)
$(HELP2MAN) --output=$@ -v "-v" --no-info \
--name='SIP testing tool and traffic generator' \
./sipp
else
sipp.1:
@echo "Warning: help2man not available, no man page is created."
endif