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