2014-06-18 10:21:21 -06:00
|
|
|
############################################################################
|
|
|
|
# net/tcp/Make.defs
|
|
|
|
#
|
2021-02-19 12:45:37 +01:00
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
|
|
# this work for additional information regarding copyright ownership. The
|
|
|
|
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
|
|
# "License"); you may not use this file except in compliance with the
|
|
|
|
# License. You may obtain a copy of the License at
|
2014-06-18 10:21:21 -06:00
|
|
|
#
|
2021-02-19 12:45:37 +01:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2014-06-18 10:21:21 -06:00
|
|
|
#
|
2021-02-19 12:45:37 +01:00
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
# License for the specific language governing permissions and limitations
|
|
|
|
# under the License.
|
2014-06-18 10:21:21 -06:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
# TCP/IP source files
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_NET_TCP),y)
|
2017-03-31 08:58:14 -06:00
|
|
|
ifneq ($(CONFIG_NET_TCP_NO_STACK),y)
|
2014-06-18 10:21:21 -06:00
|
|
|
|
2014-06-24 08:03:44 -06:00
|
|
|
# Socket layer
|
|
|
|
|
2020-01-21 15:50:39 +08:00
|
|
|
SOCK_CSRCS += tcp_connect.c tcp_accept.c tcp_recvfrom.c
|
2015-01-25 15:46:05 -06:00
|
|
|
|
2014-06-24 08:03:44 -06:00
|
|
|
ifeq ($(CONFIG_NET_TCP_WRITE_BUFFERS),y)
|
|
|
|
SOCK_CSRCS += tcp_send_buffered.c
|
|
|
|
else
|
|
|
|
SOCK_CSRCS += tcp_send_unbuffered.c
|
|
|
|
endif
|
|
|
|
|
2017-08-29 09:25:22 -06:00
|
|
|
ifeq ($(CONFIG_NET_SENDFILE),y)
|
|
|
|
SOCK_CSRCS += tcp_sendfile.c
|
|
|
|
endif
|
|
|
|
|
2019-12-31 09:26:14 -06:00
|
|
|
ifeq ($(CONFIG_NET_TCP_NOTIFIER),y)
|
2018-09-09 09:21:39 -06:00
|
|
|
SOCK_CSRCS += tcp_notifier.c
|
2019-07-01 12:25:32 -06:00
|
|
|
ifeq ($(CONFIG_NET_TCP_WRITE_BUFFERS),y)
|
|
|
|
SOCK_CSRCS += tcp_txdrain.c
|
|
|
|
endif
|
2018-09-09 09:21:39 -06:00
|
|
|
endif
|
2015-01-30 07:25:01 -06:00
|
|
|
|
2018-03-12 10:59:46 -06:00
|
|
|
ifeq ($(CONFIG_NET_TCPPROTO_OPTIONS),y)
|
|
|
|
SOCK_CSRCS += tcp_setsockopt.c tcp_getsockopt.c
|
|
|
|
endif
|
|
|
|
|
2014-06-24 08:03:44 -06:00
|
|
|
# Transport layer
|
|
|
|
|
2015-05-30 09:12:27 -06:00
|
|
|
NET_CSRCS += tcp_conn.c tcp_seqno.c tcp_devpoll.c tcp_finddev.c tcp_timer.c
|
2020-01-21 14:11:29 +08:00
|
|
|
NET_CSRCS += tcp_send.c tcp_input.c tcp_appsend.c tcp_listen.c tcp_close.c
|
2017-08-29 08:40:13 -06:00
|
|
|
NET_CSRCS += tcp_monitor.c tcp_callback.c tcp_backlog.c tcp_ipselect.c
|
2023-01-18 18:28:32 +08:00
|
|
|
NET_CSRCS += tcp_recvwindow.c tcp_netpoll.c tcp_ioctl.c tcp_shutdown.c
|
2014-06-18 10:21:21 -06:00
|
|
|
|
2014-06-24 15:38:00 -06:00
|
|
|
# TCP write buffering
|
2014-06-18 10:21:21 -06:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_NET_TCP_WRITE_BUFFERS),y)
|
|
|
|
NET_CSRCS += tcp_wrbuffer.c
|
2022-05-17 18:42:39 +02:00
|
|
|
endif
|
|
|
|
|
2023-04-20 11:08:02 +08:00
|
|
|
# TCP congestion control
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_NET_TCP_CC_NEWRENO),y)
|
|
|
|
NET_CSRCS += tcp_cc.c
|
|
|
|
endif
|
|
|
|
|
2022-05-17 18:42:39 +02:00
|
|
|
# TCP debug
|
|
|
|
|
2016-06-11 14:14:08 -06:00
|
|
|
ifeq ($(CONFIG_DEBUG_FEATURES),y)
|
2022-01-29 21:13:22 +03:00
|
|
|
NET_CSRCS += tcp_dump.c
|
2014-06-22 11:27:57 -06:00
|
|
|
endif
|
2014-06-18 10:21:21 -06:00
|
|
|
|
|
|
|
# Include TCP build support
|
|
|
|
|
|
|
|
DEPPATH += --dep-path tcp
|
|
|
|
VPATH += :tcp
|
|
|
|
|
2017-03-31 08:58:14 -06:00
|
|
|
endif # !CONFIG_NET_TCP_NO_STACK
|
2014-06-18 10:21:21 -06:00
|
|
|
endif # CONFIG_NET_TCP
|