diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 18:21:43 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 18:21:43 +0000 |
commit | c8c3bd06ef1a7248c8195d050d8a4075d051256e (patch) | |
tree | 419655deec1b0af0c5d3ec488693f1494fb20959 /src/Makefile.am | |
parent | Initial commit. (diff) | |
download | iperf3-c8c3bd06ef1a7248c8195d050d8a4075d051256e.tar.xz iperf3-c8c3bd06ef1a7248c8195d050d8a4075d051256e.zip |
Adding upstream version 3.16.upstream/3.16
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..11d3e17 --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,102 @@ +lib_LTLIBRARIES = libiperf.la # Build and install an iperf library +bin_PROGRAMS = iperf3 # Build and install an iperf binary +if ENABLE_PROFILING +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 +else +noinst_PROGRAMS = t_timer t_units t_uuid t_api t_auth # Build, but don't install the test programs +endif +include_HEADERS = iperf_api.h # Defines the headers that get installed with the program + + +# Specify the source files and flags for the iperf library +libiperf_la_SOURCES = \ + cjson.c \ + cjson.h \ + flowlabel.h \ + iperf.h \ + iperf_api.c \ + iperf_api.h \ + iperf_error.c \ + iperf_auth.h \ + iperf_auth.c \ + iperf_client_api.c \ + iperf_locale.c \ + iperf_locale.h \ + iperf_server_api.c \ + iperf_tcp.c \ + iperf_tcp.h \ + iperf_udp.c \ + iperf_udp.h \ + iperf_sctp.c \ + iperf_sctp.h \ + iperf_util.c \ + iperf_util.h \ + iperf_time.c \ + iperf_time.h \ + dscp.c \ + net.c \ + net.h \ + portable_endian.h \ + queue.h \ + tcp_info.c \ + timer.c \ + timer.h \ + units.c \ + units.h \ + version.h + +# Specify the sources and various flags for the iperf binary +iperf3_SOURCES = main.c +iperf3_CFLAGS = -g +iperf3_LDADD = libiperf.la +iperf3_LDFLAGS = -g + +if ENABLE_PROFILING +# If the iperf-profiled-binary is enabled +# 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 \ + $(libiperf_la_SOURCES) + +iperf3_profile_CFLAGS = -pg -g +iperf3_profile_LDADD = libiperf.la +iperf3_profile_LDFLAGS = -pg -g +endif + +# Specify the sources and various flags for the test cases +t_timer_SOURCES = t_timer.c +t_timer_CFLAGS = -g +t_timer_LDFLAGS = +t_timer_LDADD = libiperf.la + +t_units_SOURCES = t_units.c +t_units_CFLAGS = -g +t_units_LDFLAGS = +t_units_LDADD = libiperf.la + +t_uuid_SOURCES = t_uuid.c +t_uuid_CFLAGS = -g +t_uuid_LDFLAGS = +t_uuid_LDADD = libiperf.la + +t_api_SOURCES = t_api.c +t_api_CFLAGS = -g +t_api_LDFLAGS = +t_api_LDADD = libiperf.la + +t_auth_SOURCES = t_auth.c +t_auth_CFLAGS = -g +t_auth_LDFLAGS = +t_auth_LDADD = libiperf.la + + + +# Specify which tests to run during a "make check" +TESTS = \ + t_timer \ + t_units \ + t_uuid \ + t_api \ + t_auth + +dist_man_MANS = iperf3.1 libiperf.3 |