1lib_LTLIBRARIES = libiperf.la # Build and install an iperf library 2bin_PROGRAMS = iperf3 # Build and install an iperf binary 3if ENABLE_PROFILING 4noinst_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 5else 6noinst_PROGRAMS = t_timer t_units t_uuid t_api t_auth # Build, but don't install the test programs 7endif 8include_HEADERS = iperf_api.h # Defines the headers that get installed with the program 9 10 11# Specify the source files and flags for the iperf library 12libiperf_la_SOURCES = \ 13 cjson.c \ 14 cjson.h \ 15 flowlabel.h \ 16 iperf.h \ 17 iperf_api.c \ 18 iperf_api.h \ 19 iperf_error.c \ 20 iperf_auth.h \ 21 iperf_auth.c \ 22 iperf_client_api.c \ 23 iperf_locale.c \ 24 iperf_locale.h \ 25 iperf_server_api.c \ 26 iperf_tcp.c \ 27 iperf_tcp.h \ 28 iperf_udp.c \ 29 iperf_udp.h \ 30 iperf_sctp.c \ 31 iperf_sctp.h \ 32 iperf_util.c \ 33 iperf_util.h \ 34 iperf_time.c \ 35 iperf_time.h \ 36 dscp.c \ 37 net.c \ 38 net.h \ 39 portable_endian.h \ 40 queue.h \ 41 tcp_info.c \ 42 timer.c \ 43 timer.h \ 44 units.c \ 45 units.h \ 46 version.h 47 48# Specify the sources and various flags for the iperf binary 49iperf3_SOURCES = main.c 50iperf3_CFLAGS = -g 51iperf3_LDADD = libiperf.la 52iperf3_LDFLAGS = -g 53 54if ENABLE_PROFILING 55# If the iperf-profiled-binary is enabled 56# Specify the sources and various flags for the profiled iperf binary. This 57# binary recompiles all the source files to make sure they are all profiled. 58iperf3_profile_SOURCES = main.c \ 59 $(libiperf_la_SOURCES) 60 61iperf3_profile_CFLAGS = -pg -g 62iperf3_profile_LDADD = libiperf.la 63iperf3_profile_LDFLAGS = -pg -g 64endif 65 66# Specify the sources and various flags for the test cases 67t_timer_SOURCES = t_timer.c 68t_timer_CFLAGS = -g 69t_timer_LDFLAGS = 70t_timer_LDADD = libiperf.la 71 72t_units_SOURCES = t_units.c 73t_units_CFLAGS = -g 74t_units_LDFLAGS = 75t_units_LDADD = libiperf.la 76 77t_uuid_SOURCES = t_uuid.c 78t_uuid_CFLAGS = -g 79t_uuid_LDFLAGS = 80t_uuid_LDADD = libiperf.la 81 82t_api_SOURCES = t_api.c 83t_api_CFLAGS = -g 84t_api_LDFLAGS = 85t_api_LDADD = libiperf.la 86 87t_auth_SOURCES = t_auth.c 88t_auth_CFLAGS = -g 89t_auth_LDFLAGS = 90t_auth_LDADD = libiperf.la 91 92 93 94# Specify which tests to run during a "make check" 95TESTS = \ 96 t_timer \ 97 t_units \ 98 t_uuid \ 99 t_api \ 100 t_auth 101 102dist_man_MANS = iperf3.1 libiperf.3 103