xref: /iperf/src/Makefile.am (revision ba7b91d2)
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 # 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                        cjson.c \
10                        cjson.h \
11                        iperf.h \
12                        iperf_api.c \
13                        iperf_api.h \
14                        iperf_error.c \
15			iperf_client_api.c \
16                        iperf_server_api.c \
17                        iperf_tcp.c \
18                        iperf_tcp.h \
19                        iperf_udp.c \
20                        iperf_udp.h \
21                        iperf_util.c \
22                        iperf_util.h \
23                        locale.c \
24                        locale.h \
25                        net.c \
26                        net.h \
27                        queue.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          = -g
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 -g -Wall
49iperf3_profile_LDADD    = libiperf.a
50iperf3_profile_LDFLAGS  = -pg -g
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_man_MANS          = iperf3.1 libiperf.3
78