2014-03-04 14:31:35 -08:00
|
|
|
lib_LTLIBRARIES = libiperf.la # Build and install an iperf library
|
2009-12-08 21:36:24 +00:00
|
|
|
bin_PROGRAMS = iperf3 # Build and install an iperf binary
|
2018-06-29 19:23:41 -04:00
|
|
|
if ENABLE_PROFILING
|
2020-05-20 14:35:52 -07:00
|
|
|
noinst_PROGRAMS = t_timer t_units t_uuid t_api t_auth iperf3_profile # Build, but don't install the test programs and a profiled version of iperf3
|
2018-06-29 19:23:41 -04:00
|
|
|
else
|
2020-05-20 14:35:52 -07:00
|
|
|
noinst_PROGRAMS = t_timer t_units t_uuid t_api t_auth # Build, but don't install the test programs
|
2018-06-29 19:23:41 -04:00
|
|
|
endif
|
|
|
|
include_HEADERS = iperf_api.h # Defines the headers that get installed with the program
|
2009-12-08 21:36:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Specify the source files and flags for the iperf library
|
2014-03-04 14:31:35 -08:00
|
|
|
libiperf_la_SOURCES = \
|
2012-10-15 09:49:20 -07:00
|
|
|
cjson.c \
|
|
|
|
cjson.h \
|
2014-03-04 14:31:35 -08:00
|
|
|
flowlabel.h \
|
2010-07-19 20:38:40 +00:00
|
|
|
iperf.h \
|
2009-12-08 21:36:24 +00:00
|
|
|
iperf_api.c \
|
2010-07-19 20:38:40 +00:00
|
|
|
iperf_api.h \
|
|
|
|
iperf_error.c \
|
2017-04-20 22:09:44 +03:00
|
|
|
iperf_auth.h \
|
|
|
|
iperf_auth.c \
|
2018-06-29 19:23:41 -04:00
|
|
|
iperf_client_api.c \
|
2014-09-15 10:42:36 -07:00
|
|
|
iperf_locale.c \
|
|
|
|
iperf_locale.h \
|
2009-12-08 21:36:24 +00:00
|
|
|
iperf_server_api.c \
|
|
|
|
iperf_tcp.c \
|
2010-07-19 20:38:40 +00:00
|
|
|
iperf_tcp.h \
|
2009-12-08 21:36:24 +00:00
|
|
|
iperf_udp.c \
|
2010-07-19 20:38:40 +00:00
|
|
|
iperf_udp.h \
|
2018-06-29 19:23:41 -04:00
|
|
|
iperf_sctp.c \
|
|
|
|
iperf_sctp.h \
|
2010-07-09 00:29:51 +00:00
|
|
|
iperf_util.c \
|
2010-07-19 20:38:40 +00:00
|
|
|
iperf_util.h \
|
2018-05-16 23:49:45 +02:00
|
|
|
iperf_time.c \
|
|
|
|
iperf_time.h \
|
2017-04-14 13:27:18 -07:00
|
|
|
dscp.c \
|
2010-07-19 20:38:40 +00:00
|
|
|
net.c \
|
2009-12-08 21:36:24 +00:00
|
|
|
net.h \
|
2018-06-29 19:23:41 -04:00
|
|
|
portable_endian.h \
|
2013-07-11 14:07:41 -04:00
|
|
|
queue.h \
|
2010-07-19 20:38:40 +00:00
|
|
|
tcp_info.c \
|
|
|
|
timer.c \
|
2009-12-08 21:36:24 +00:00
|
|
|
timer.h \
|
2010-07-19 20:38:40 +00:00
|
|
|
units.c \
|
2009-12-08 21:36:24 +00:00
|
|
|
units.h \
|
|
|
|
version.h
|
|
|
|
|
|
|
|
# Specify the sources and various flags for the iperf binary
|
|
|
|
iperf3_SOURCES = main.c
|
2014-05-19 15:02:02 -07:00
|
|
|
iperf3_CFLAGS = -g
|
2014-03-04 14:31:35 -08:00
|
|
|
iperf3_LDADD = libiperf.la
|
2013-02-12 11:40:16 -08:00
|
|
|
iperf3_LDFLAGS = -g
|
2009-12-08 21:36:24 +00:00
|
|
|
|
2018-06-29 19:23:41 -04:00
|
|
|
if ENABLE_PROFILING
|
2020-01-06 13:43:29 -08:00
|
|
|
# If the iperf-profiled-binary is enabled
|
2009-12-08 21:36:24 +00:00
|
|
|
# Specify the sources and various flags for the profiled iperf binary. This
|
|
|
|
# binary recompiles all the source files to make sure they are all profiled.
|
|
|
|
iperf3_profile_SOURCES = main.c \
|
2018-06-29 19:23:41 -04:00
|
|
|
$(libiperf_la_SOURCES)
|
2010-07-19 20:38:40 +00:00
|
|
|
|
2014-05-19 15:02:02 -07:00
|
|
|
iperf3_profile_CFLAGS = -pg -g
|
2014-03-04 14:31:35 -08:00
|
|
|
iperf3_profile_LDADD = libiperf.la
|
2013-02-12 11:40:16 -08:00
|
|
|
iperf3_profile_LDFLAGS = -pg -g
|
2018-06-29 19:23:41 -04:00
|
|
|
endif
|
2009-12-08 21:36:24 +00:00
|
|
|
|
|
|
|
# Specify the sources and various flags for the test cases
|
|
|
|
t_timer_SOURCES = t_timer.c
|
2014-05-19 15:02:02 -07:00
|
|
|
t_timer_CFLAGS = -g
|
2014-03-04 14:31:35 -08:00
|
|
|
t_timer_LDFLAGS =
|
|
|
|
t_timer_LDADD = libiperf.la
|
2009-12-08 21:36:24 +00:00
|
|
|
|
|
|
|
t_units_SOURCES = t_units.c
|
2014-05-19 15:02:02 -07:00
|
|
|
t_units_CFLAGS = -g
|
2009-12-08 21:36:24 +00:00
|
|
|
t_units_LDFLAGS =
|
2014-03-04 14:31:35 -08:00
|
|
|
t_units_LDADD = libiperf.la
|
2009-12-08 21:36:24 +00:00
|
|
|
|
|
|
|
t_uuid_SOURCES = t_uuid.c
|
2014-05-19 15:02:02 -07:00
|
|
|
t_uuid_CFLAGS = -g
|
2009-12-08 21:36:24 +00:00
|
|
|
t_uuid_LDFLAGS =
|
2014-03-04 14:31:35 -08:00
|
|
|
t_uuid_LDADD = libiperf.la
|
2009-12-08 21:36:24 +00:00
|
|
|
|
2018-08-09 15:36:54 -04:00
|
|
|
t_api_SOURCES = t_api.c
|
|
|
|
t_api_CFLAGS = -g
|
|
|
|
t_api_LDFLAGS =
|
|
|
|
t_api_LDADD = libiperf.la
|
2009-12-08 21:36:24 +00:00
|
|
|
|
2020-05-20 14:35:52 -07:00
|
|
|
t_auth_SOURCES = t_auth.c
|
|
|
|
t_auth_CFLAGS = -g
|
|
|
|
t_auth_LDFLAGS =
|
|
|
|
t_auth_LDADD = libiperf.la
|
|
|
|
|
2009-12-08 21:36:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Specify which tests to run during a "make check"
|
|
|
|
TESTS = \
|
|
|
|
t_timer \
|
|
|
|
t_units \
|
2018-08-09 15:36:54 -04:00
|
|
|
t_uuid \
|
2020-05-20 14:35:52 -07:00
|
|
|
t_api \
|
|
|
|
t_auth
|
2009-12-08 21:36:24 +00:00
|
|
|
|
2013-03-11 22:03:36 -07:00
|
|
|
dist_man_MANS = iperf3.1 libiperf.3
|