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