1lib_LTLIBRARIES = libiperf.la # Build and install an 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_la_SOURCES = \ 9 cjson.c \ 10 cjson.h \ 11 flowlabel.h \ 12 iperf.h \ 13 iperf_api.c \ 14 iperf_api.h \ 15 iperf_error.c \ 16 iperf_auth.h \ 17 iperf_auth.c \ 18 iperf_client_api.c \ 19 iperf_locale.c \ 20 iperf_locale.h \ 21 iperf_server_api.c \ 22 iperf_tcp.c \ 23 iperf_tcp.h \ 24 iperf_udp.c \ 25 iperf_udp.h \ 26 iperf_sctp.c \ 27 iperf_sctp.h \ 28 iperf_util.c \ 29 iperf_util.h \ 30 dscp.c \ 31 net.c \ 32 net.h \ 33 portable_endian.h \ 34 queue.h \ 35 tcp_info.c \ 36 timer.c \ 37 timer.h \ 38 units.c \ 39 units.h \ 40 version.h 41 42# Specify the sources and various flags for the iperf binary 43iperf3_SOURCES = main.c 44iperf3_CFLAGS = -g 45iperf3_LDADD = libiperf.la 46iperf3_LDFLAGS = -g 47 48# Specify the sources and various flags for the profiled iperf binary. This 49# binary recompiles all the source files to make sure they are all profiled. 50iperf3_profile_SOURCES = main.c \ 51 $(libiperf_la_SOURCES) 52 53iperf3_profile_CFLAGS = -pg -g 54iperf3_profile_LDADD = libiperf.la 55iperf3_profile_LDFLAGS = -pg -g 56 57# Specify the sources and various flags for the test cases 58t_timer_SOURCES = t_timer.c 59t_timer_CFLAGS = -g 60t_timer_LDFLAGS = 61t_timer_LDADD = libiperf.la 62 63t_units_SOURCES = t_units.c 64t_units_CFLAGS = -g 65t_units_LDFLAGS = 66t_units_LDADD = libiperf.la 67 68t_uuid_SOURCES = t_uuid.c 69t_uuid_CFLAGS = -g 70t_uuid_LDFLAGS = 71t_uuid_LDADD = libiperf.la 72 73 74 75 76# Specify which tests to run during a "make check" 77TESTS = \ 78 t_timer \ 79 t_units \ 80 t_uuid 81 82dist_man_MANS = iperf3.1 libiperf.3 83