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