• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 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                  # 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 (and this condition is true by default)
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
87
88
89# Specify which tests to run during a "make check"
90TESTS                   = \
91                        t_timer \
92                        t_units \
93                        t_uuid  \
94                        t_api
95
96dist_man_MANS          = iperf3.1 libiperf.3
97