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