2009-12-08 21:36:24 +00:00
|
|
|
lib_LIBRARIES = libiperf.a # Build and install a static iperf library
|
|
|
|
bin_PROGRAMS = iperf3 # Build and install an iperf binary
|
|
|
|
noinst_PROGRAMS = t_timer t_units t_uuid iperf3_profile # Build, but don't install the test programs and a profiled version of iperf3
|
2012-09-28 16:00:14 -07:00
|
|
|
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
|
|
|
|
libiperf_a_SOURCES = \
|
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 \
|
2012-09-28 16:00:14 -07:00
|
|
|
iperf_client_api.c \
|
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 \
|
2010-07-09 00:29:51 +00:00
|
|
|
iperf_util.c \
|
2010-07-19 20:38:40 +00:00
|
|
|
iperf_util.h \
|
2009-12-08 21:36:24 +00:00
|
|
|
locale.c \
|
|
|
|
locale.h \
|
2010-07-19 20:38:40 +00:00
|
|
|
net.c \
|
2009-12-08 21:36:24 +00:00
|
|
|
net.h \
|
2010-07-19 20:38:40 +00:00
|
|
|
tcp_info.c \
|
|
|
|
tcp_window_size.c \
|
2009-12-08 21:36:24 +00:00
|
|
|
tcp_window_size.h \
|
2010-07-19 20:38:40 +00:00
|
|
|
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
|
|
|
|
iperf3_CFLAGS = -g -Wall
|
|
|
|
iperf3_LDADD = libiperf.a
|
|
|
|
iperf3_LDFLAGS =
|
|
|
|
|
|
|
|
# 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 \
|
2010-07-19 20:38:40 +00:00
|
|
|
$(libiperf_a_SOURCES)
|
|
|
|
|
2009-12-08 21:36:24 +00:00
|
|
|
iperf3_profile_CFLAGS = -pg -Wall
|
|
|
|
iperf3_profile_LDADD = libiperf.a
|
|
|
|
iperf3_profile_LDFLAGS =
|
|
|
|
|
|
|
|
# Specify the sources and various flags for the test cases
|
|
|
|
t_timer_SOURCES = t_timer.c
|
|
|
|
t_timer_CFLAGS = -g -Wall
|
2010-07-23 23:48:45 +00:00
|
|
|
t_timer_LDFLAGS = iperf_error.o
|
2009-12-08 21:36:24 +00:00
|
|
|
t_timer_LDADD = libiperf.a
|
|
|
|
|
|
|
|
t_units_SOURCES = t_units.c
|
|
|
|
t_units_CFLAGS = -g -Wall
|
|
|
|
t_units_LDFLAGS =
|
|
|
|
t_units_LDADD = libiperf.a
|
|
|
|
|
|
|
|
t_uuid_SOURCES = t_uuid.c
|
|
|
|
t_uuid_CFLAGS = -g -Wall
|
|
|
|
t_uuid_LDFLAGS =
|
|
|
|
t_uuid_LDADD = libiperf.a
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Specify which tests to run during a "make check"
|
|
|
|
TESTS = \
|
|
|
|
t_timer \
|
|
|
|
t_units \
|
|
|
|
t_uuid
|
|
|
|
|
|
|
|
dist_man1_MANS = iperf.1
|