13c4ef74eSBruce A. Mahlib_LTLIBRARIES = libiperf.la # Build and install an iperf library 2f4a3ddaaSAaronMatthewBrownbin_PROGRAMS = iperf3 # Build and install an iperf binary 3e6689a8cSHkif ENABLE_PROFILING 4*5b7b99edSBruce A. Mahnoinst_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 5e6689a8cSHkelse 6*5b7b99edSBruce A. Mahnoinst_PROGRAMS = t_timer t_units t_uuid t_api t_auth # Build, but don't install the test programs 7e6689a8cSHkendif 898ce496bSjefinclude_HEADERS = iperf_api.h # Defines the headers that get installed with the program 9f4a3ddaaSAaronMatthewBrown 10f4a3ddaaSAaronMatthewBrown 11f4a3ddaaSAaronMatthewBrown# Specify the source files and flags for the iperf library 123c4ef74eSBruce A. Mahlibiperf_la_SOURCES = \ 13a497129bSjef cjson.c \ 14a497129bSjef cjson.h \ 153c4ef74eSBruce A. Mah flowlabel.h \ 16f4a3ddaaSAaronMatthewBrown iperf.h \ 1701ca972bSsethdelliott iperf_api.c \ 1801ca972bSsethdelliott iperf_api.h \ 1901ca972bSsethdelliott iperf_error.c \ 20ac2604ddSasavah iperf_auth.h \ 21ac2604ddSasavah iperf_auth.c \ 22eb85608fSsethdelliott iperf_client_api.c \ 23a1861d5fSBruce A. Mah iperf_locale.c \ 24a1861d5fSBruce A. Mah iperf_locale.h \ 2501ca972bSsethdelliott iperf_server_api.c \ 2601ca972bSsethdelliott iperf_tcp.c \ 27f4a3ddaaSAaronMatthewBrown iperf_tcp.h \ 2801ca972bSsethdelliott iperf_udp.c \ 29f4a3ddaaSAaronMatthewBrown iperf_udp.h \ 3060bd98a5SBruce A. Mah iperf_sctp.c \ 3160bd98a5SBruce A. Mah iperf_sctp.h \ 3201ca972bSsethdelliott iperf_util.c \ 33b0b16b86SJon Dugan iperf_util.h \ 34cde81d76SBen Fox-Moore iperf_time.c \ 35cde81d76SBen Fox-Moore iperf_time.h \ 3697c95c3bSDave Täht dscp.c \ 3701ca972bSsethdelliott net.c \ 3801ca972bSsethdelliott net.h \ 39883a465aSBruce A. Mah portable_endian.h \ 40861c06d8SAndy Lake queue.h \ 4101ca972bSsethdelliott tcp_info.c \ 4201ca972bSsethdelliott timer.c \ 4301ca972bSsethdelliott timer.h \ 4401ca972bSsethdelliott units.c \ 4501ca972bSsethdelliott units.h \ 46f4a3ddaaSAaronMatthewBrown version.h 47f4a3ddaaSAaronMatthewBrown 48f4a3ddaaSAaronMatthewBrown# Specify the sources and various flags for the iperf binary 49f4a3ddaaSAaronMatthewBrowniperf3_SOURCES = main.c 508de51b58SBruce A. Mahiperf3_CFLAGS = -g 513c4ef74eSBruce A. Mahiperf3_LDADD = libiperf.la 5296609aecSJef Poskanzeriperf3_LDFLAGS = -g 53f4a3ddaaSAaronMatthewBrown 54e6689a8cSHkif ENABLE_PROFILING 554a3efb37SBruce A. Mah# If the iperf-profiled-binary is enabled 56f4a3ddaaSAaronMatthewBrown# Specify the sources and various flags for the profiled iperf binary. This 57f4a3ddaaSAaronMatthewBrown# binary recompiles all the source files to make sure they are all profiled. 58f4a3ddaaSAaronMatthewBrowniperf3_profile_SOURCES = main.c \ 593c4ef74eSBruce A. Mah $(libiperf_la_SOURCES) 6001ca972bSsethdelliott 618de51b58SBruce A. Mahiperf3_profile_CFLAGS = -pg -g 623c4ef74eSBruce A. Mahiperf3_profile_LDADD = libiperf.la 6396609aecSJef Poskanzeriperf3_profile_LDFLAGS = -pg -g 64e6689a8cSHkendif 65f4a3ddaaSAaronMatthewBrown 66f4a3ddaaSAaronMatthewBrown# Specify the sources and various flags for the test cases 67f4a3ddaaSAaronMatthewBrownt_timer_SOURCES = t_timer.c 688de51b58SBruce A. Maht_timer_CFLAGS = -g 693c4ef74eSBruce A. Maht_timer_LDFLAGS = 703c4ef74eSBruce A. Maht_timer_LDADD = libiperf.la 71f4a3ddaaSAaronMatthewBrown 72f4a3ddaaSAaronMatthewBrownt_units_SOURCES = t_units.c 738de51b58SBruce A. Maht_units_CFLAGS = -g 74f4a3ddaaSAaronMatthewBrownt_units_LDFLAGS = 753c4ef74eSBruce A. Maht_units_LDADD = libiperf.la 76f4a3ddaaSAaronMatthewBrown 77f4a3ddaaSAaronMatthewBrownt_uuid_SOURCES = t_uuid.c 788de51b58SBruce A. Maht_uuid_CFLAGS = -g 79f4a3ddaaSAaronMatthewBrownt_uuid_LDFLAGS = 803c4ef74eSBruce A. Maht_uuid_LDADD = libiperf.la 81f4a3ddaaSAaronMatthewBrown 82beac6881SRollingSlackt_api_SOURCES = t_api.c 83beac6881SRollingSlackt_api_CFLAGS = -g 84beac6881SRollingSlackt_api_LDFLAGS = 85beac6881SRollingSlackt_api_LDADD = libiperf.la 86f4a3ddaaSAaronMatthewBrown 87*5b7b99edSBruce A. Maht_auth_SOURCES = t_auth.c 88*5b7b99edSBruce A. Maht_auth_CFLAGS = -g 89*5b7b99edSBruce A. Maht_auth_LDFLAGS = 90*5b7b99edSBruce A. Maht_auth_LDADD = libiperf.la 91*5b7b99edSBruce A. Mah 92f4a3ddaaSAaronMatthewBrown 93f4a3ddaaSAaronMatthewBrown 94f4a3ddaaSAaronMatthewBrown# Specify which tests to run during a "make check" 95f4a3ddaaSAaronMatthewBrownTESTS = \ 96f4a3ddaaSAaronMatthewBrown t_timer \ 97f4a3ddaaSAaronMatthewBrown t_units \ 98beac6881SRollingSlack t_uuid \ 99*5b7b99edSBruce A. Mah t_api \ 100*5b7b99edSBruce A. Mah t_auth 101f4a3ddaaSAaronMatthewBrown 1023e587542SJef Poskanzerdist_man_MANS = iperf3.1 libiperf.3 103