1 # Include these two in all the Makefile.am's!!!
2 include $(top_srcdir)/Makefile.vars
3 include $(top_srcdir)/Makefile.rules
5 include $(top_srcdir)/Makefile.dirs
7 # General compilation flags
8 INCLUDES = -I. -I$(top_srcdir)/src/include -I$(top_srcdir)/src/testlib
9 AM_CFLAGS = -g -Wall -Wstrict-prototypes -Wimplicit-function-declaration
10 AM_LDFLAGS = -lpthread
11 LDADD = $(top_builddir)/src/testlib/libsctputil.la \
12 $(top_builddir)/src/lib/libsctp.la
14 V6FLAGS = -DCONFIG_IPV6=1 -DTEST_V6=1 ${DEFS} ${INCLUDES} ${CFLAGS}
16 # Test programs and libraries to build
17 PASSING_KERN_TESTS = \
30 test_sctp_sendrecvmsg \
33 test_1_to_1_socket_bind_listen \
34 test_1_to_1_accept_close \
36 test_1_to_1_connectx \
40 test_1_to_1_recvfrom \
42 test_1_to_1_shutdown \
45 test_1_to_1_nonblock \
49 test_1_to_1_initmsg_connect
51 PASSING_V6_KERN_TESTS = \
58 test_sctp_sendrecvmsg_v6 \
62 noinst_PROGRAMS = ${PASSING_KERN_TESTS} ${PASSING_V6_KERN_TESTS}
64 $(top_builddir)/src/lib/libsctp.la:
65 make -C $(top_builddir)/src/lib libsctp.la
67 $(top_builddir)/src/testlib/libsctputil.la:
68 make -C $(top_builddir)/src/testlib libsctputil.la
70 # These are tests for live kernels which pass.
71 v4test: ${PASSING_KERN_TESTS}
87 # These are tests for live kernels which pass.
88 v6test: ${PASSING_V6_KERN_TESTS}
104 # Specifying the sources
105 test_assoc_abort_SOURCES = test_assoc_abort.c
106 test_assoc_shutdown_SOURCES = test_assoc_shutdown.c
107 test_autoclose_SOURCES = test_autoclose.c
108 test_basic_SOURCES = test_basic.c
109 test_fragments_SOURCES = test_fragments.c
110 test_inaddr_any_SOURCES = test_inaddr_any.c
111 test_peeloff_SOURCES = test_peeloff.c
112 test_sockopt_SOURCES = test_sockopt.c
113 test_connect_SOURCES = test_connect.c
114 test_connectx_SOURCES = test_connectx.c
115 test_recvmsg_SOURCES = test_recvmsg.c
116 test_timetolive_SOURCES = test_timetolive.c
117 test_sctp_sendrecvmsg_SOURCES = test_sctp_sendrecvmsg.c
118 test_getname_SOURCES = test_getname.c
119 test_tcp_style_SOURCES = test_tcp_style.c
121 test_1_to_1_socket_bind_listen_SOURCES = test_1_to_1_socket_bind_listen.c
122 test_1_to_1_accept_close_SOURCES = test_1_to_1_accept_close.c
123 test_1_to_1_connect_SOURCES = test_1_to_1_connect.c
124 test_1_to_1_connectx_SOURCES = test_1_to_1_connectx.c
125 test_1_to_1_send_SOURCES = test_1_to_1_send.c
126 test_1_to_1_sendto_SOURCES = test_1_to_1_sendto.c
127 test_1_to_1_sendmsg_SOURCES = test_1_to_1_sendmsg.c
128 test_1_to_1_recvfrom_SOURCES = test_1_to_1_recvfrom.c
129 test_1_to_1_recvmsg_SOURCES = test_1_to_1_recvmsg.c
130 test_1_to_1_shutdown_SOURCES = test_1_to_1_shutdown.c
131 test_1_to_1_sockopt_SOURCES = test_1_to_1_sockopt.c
132 test_1_to_1_addrs_SOURCES = test_1_to_1_addrs.c
133 test_1_to_1_nonblock_SOURCES = test_1_to_1_nonblock.c
134 test_1_to_1_rtoinfo_SOURCES = test_1_to_1_rtoinfo.c
135 test_1_to_1_events_SOURCES = test_1_to_1_events.c
136 test_1_to_1_threads_SOURCES = test_1_to_1_threads.c
137 test_1_to_1_initmsg_connect_SOURCES = test_1_to_1_initmsg_connect.c
140 # Specifying objects rules for "v6test"
142 test_basic_v6_SOURCES = test_basic.c
143 test_basic_v6_CFLAGS = ${V6FLAGS}
145 test_sockopt_v6_SOURCES = test_sockopt.c
146 test_sockopt_v6_CFLAGS = ${V6FLAGS}
148 test_fragments_v6_SOURCES = test_fragments.c
149 test_fragments_v6_CFLAGS = ${V6FLAGS}
151 test_inaddr_any_v6_SOURCES = test_inaddr_any.c
152 test_inaddr_any_v6_CFLAGS = ${V6FLAGS}
154 test_peeloff_v6_SOURCES = test_peeloff.c
155 test_peeloff_v6_CFLAGS = ${V6FLAGS}
157 test_timetolive_v6_SOURCES = test_timetolive.c
158 test_timetolive_v6_CFLAGS = ${V6FLAGS}
160 test_sctp_sendrecvmsg_v6_SOURCES = test_sctp_sendrecvmsg.c
161 test_sctp_sendrecvmsg_v6_CFLAGS = ${V6FLAGS}
163 test_getname_v6_SOURCES = test_getname.c
164 test_getname_v6_CFLAGS = ${V6FLAGS}
166 test_tcp_style_v6_SOURCES = test_tcp_style.c
167 test_tcp_style_v6_CFLAGS = ${V6FLAGS}