xref: /iperf/src/Makefile.am (revision faf335bb)
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                        tcp_window_size.c \
37                        tcp_window_size.h \
38                        timer.c \
39                        timer.h \
40                        units.c \
41                        units.h \
42                        version.h
43
44# Specify the sources and various flags for the iperf binary
45iperf3_SOURCES          = main.c
46iperf3_CFLAGS           = -g
47iperf3_LDADD            = libiperf.la
48iperf3_LDFLAGS          = -g
49
50# Specify the sources and various flags for the profiled iperf binary. This
51# binary recompiles all the source files to make sure they are all profiled.
52iperf3_profile_SOURCES  = main.c \
53						  $(libiperf_la_SOURCES)
54
55iperf3_profile_CFLAGS   = -pg -g
56iperf3_profile_LDADD    = libiperf.la
57iperf3_profile_LDFLAGS  = -pg -g
58
59# Specify the sources and various flags for the test cases
60t_timer_SOURCES         = t_timer.c
61t_timer_CFLAGS          = -g
62t_timer_LDFLAGS         =
63t_timer_LDADD           = libiperf.la
64
65t_units_SOURCES         = t_units.c
66t_units_CFLAGS          = -g
67t_units_LDFLAGS         =
68t_units_LDADD           = libiperf.la
69
70t_uuid_SOURCES          = t_uuid.c
71t_uuid_CFLAGS           = -g
72t_uuid_LDFLAGS          =
73t_uuid_LDADD            = libiperf.la
74
75
76
77
78# Specify which tests to run during a "make check"
79TESTS                   = \
80                        t_timer \
81                        t_units \
82                        t_uuid
83
84dist_man_MANS          = iperf3.1 libiperf.3
85