-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.am
More file actions
133 lines (115 loc) · 3.19 KB
/
Makefile.am
File metadata and controls
133 lines (115 loc) · 3.19 KB
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
bin_PROGRAMS = sipp
TESTS = sipp_unittest
noinst_PROGRAMS = $(TESTS)
AM_CFLAGS=-I$(srcdir)/include
AM_CPPFLAGS=$(AM_CFLAGS)
CLEANFILES =
EXTRA_DIST = src/fortune.cpp pcap LICENSE.txt README.txt THANKS sipp.dtd cpplint.py
if HAVE_OPENSSL
DEFS += -D_USE_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/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/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@
sipp_unittest_SOURCES = $(common_SOURCES) \
src/sipp_unittest.cpp \
src/xp_parser_ut.cpp \
./gtest/src/gtest-all.cc \
./gtest/src/gtest_main.cc
sipp_unittest_CFLAGS = $(AM_CFLAGS) -DGTEST=1 -I$(srcdir)/gtest/include -I$(srcdir)/gtest @GSL_CFLAGS@
sipp_unittest_CXXFLAGS = $(AM_CXXFLAGS) -DGTEST=1 -I$(srcdir)/gtest/include -I$(srcdir)/gtest @GSL_CXXFLAGS@
sipp_unittest_LDADD = @LIBOBJS@ @GSL_LIBS@
if HAVE_HELP2MAN
man_MANS = sipp.1
CLEANFILES += $(man_MANS)
sipp.1: ./sipp $(sipp_SOURCES)
$(HELP2MAN) --output=$@ --no-info \
--name='SIP testing tool and traffic generator' \
./sipp
else
@echo "Warning: help2man not available, no man page is created."
endif