1lib_LIBRARIES = libiperf.a # Build and install a static iperf library 2bin_PROGRAMS = iperf3 # Build and install an iperf binary 3noinst_PROGRAMS = t_timer t_units t_uuid iperf3_profile # Build, but don't install the test programs and a profiled version of iperf3 4include_HEADERS = iperf_api.h # Defines the headers that get installed with the program 5 6 7# Specify the source files and flags for the iperf library 8libiperf_a_SOURCES = \ 9 iperf.h \ 10 iperf_api.c \ 11 iperf_api.h \ 12 iperf_error.c \ 13 iperf_client_api.c \ 14 iperf_server_api.c \ 15 iperf_tcp.c \ 16 iperf_tcp.h \ 17 iperf_udp.c \ 18 iperf_udp.h \ 19 iperf_util.c \ 20 iperf_util.h \ 21 locale.c \ 22 locale.h \ 23 net.c \ 24 net.h \ 25 tcp_info.c \ 26 tcp_window_size.c \ 27 tcp_window_size.h \ 28 timer.c \ 29 timer.h \ 30 units.c \ 31 units.h \ 32 version.h 33 34# Specify the sources and various flags for the iperf binary 35iperf3_SOURCES = main.c 36iperf3_CFLAGS = -g -Wall 37iperf3_LDADD = libiperf.a 38iperf3_LDFLAGS = 39 40# Specify the sources and various flags for the profiled iperf binary. This 41# binary recompiles all the source files to make sure they are all profiled. 42iperf3_profile_SOURCES = main.c \ 43 $(libiperf_a_SOURCES) 44 45iperf3_profile_CFLAGS = -pg -Wall 46iperf3_profile_LDADD = libiperf.a 47iperf3_profile_LDFLAGS = 48 49# Specify the sources and various flags for the test cases 50t_timer_SOURCES = t_timer.c 51t_timer_CFLAGS = -g -Wall 52t_timer_LDFLAGS = iperf_error.o 53t_timer_LDADD = libiperf.a 54 55t_units_SOURCES = t_units.c 56t_units_CFLAGS = -g -Wall 57t_units_LDFLAGS = 58t_units_LDADD = libiperf.a 59 60t_uuid_SOURCES = t_uuid.c 61t_uuid_CFLAGS = -g -Wall 62t_uuid_LDFLAGS = 63t_uuid_LDADD = libiperf.a 64 65 66 67 68# Specify which tests to run during a "make check" 69TESTS = \ 70 t_timer \ 71 t_units \ 72 t_uuid 73 74dist_man1_MANS = iperf.1 75