2014-06-18 18:21:21 +02: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 18:21:21 +02:00
|
|
|
#
|
2021-02-19 12:45:37 +01:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2014-06-18 18:21:21 +02: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 18:21:21 +02:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
# TCP/IP source files
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_NET_TCP),y)
|
2017-03-31 16:58:14 +02:00
|
|
|
ifneq ($(CONFIG_NET_TCP_NO_STACK),y)
|
2014-06-18 18:21:21 +02:00
|
|
|
|
2014-06-24 16:03:44 +02:00
|
|
|
# Socket layer
|
|
|
|
|
2020-01-21 08:50:39 +01:00
|
|
|
SOCK_CSRCS += tcp_connect.c tcp_accept.c tcp_recvfrom.c
|
2015-01-25 22:46:05 +01:00
|
|
|
|
2014-06-24 16:03:44 +02: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 17:25:22 +02:00
|
|
|
ifeq ($(CONFIG_NET_SENDFILE),y)
|
|
|
|
SOCK_CSRCS += tcp_sendfile.c
|
|
|
|
endif
|
|
|
|
|
2019-12-31 16:26:14 +01:00
|
|
|
ifeq ($(CONFIG_NET_TCP_NOTIFIER),y)
|
2018-09-09 17:21:39 +02:00
|
|
|
SOCK_CSRCS += tcp_notifier.c
|
2019-07-01 20:25:32 +02:00
|
|
|
ifeq ($(CONFIG_NET_TCP_WRITE_BUFFERS),y)
|
|
|
|
SOCK_CSRCS += tcp_txdrain.c
|
|
|
|
endif
|
2018-09-09 17:21:39 +02:00
|
|
|
endif
|
2015-01-30 14:25:01 +01:00
|
|
|
|
2018-03-12 17:59:46 +01:00
|
|
|
ifeq ($(CONFIG_NET_TCPPROTO_OPTIONS),y)
|
|
|
|
SOCK_CSRCS += tcp_setsockopt.c tcp_getsockopt.c
|
|
|
|
endif
|
|
|
|
|
2014-06-24 16:03:44 +02:00
|
|
|
# Transport layer
|
|
|
|
|
2015-05-30 17:12:27 +02:00
|
|
|
NET_CSRCS += tcp_conn.c tcp_seqno.c tcp_devpoll.c tcp_finddev.c tcp_timer.c
|
2020-01-21 07:11:29 +01:00
|
|
|
NET_CSRCS += tcp_send.c tcp_input.c tcp_appsend.c tcp_listen.c tcp_close.c
|
2017-08-29 16:40:13 +02:00
|
|
|
NET_CSRCS += tcp_monitor.c tcp_callback.c tcp_backlog.c tcp_ipselect.c
|
2021-06-07 12:06:44 +02:00
|
|
|
NET_CSRCS += tcp_recvwindow.c tcp_netpoll.c tcp_ioctl.c
|
2014-06-18 18:21:21 +02:00
|
|
|
|
2014-06-24 23:38:00 +02:00
|
|
|
# TCP write buffering
|
2014-06-18 18:21:21 +02:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_NET_TCP_WRITE_BUFFERS),y)
|
|
|
|
NET_CSRCS += tcp_wrbuffer.c
|
2016-06-11 22:14:08 +02:00
|
|
|
ifeq ($(CONFIG_DEBUG_FEATURES),y)
|
2014-06-22 19:27:57 +02:00
|
|
|
NET_CSRCS += tcp_wrbuffer_dump.c
|
|
|
|
endif
|
2014-06-18 18:21:21 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Include TCP build support
|
|
|
|
|
|
|
|
DEPPATH += --dep-path tcp
|
|
|
|
VPATH += :tcp
|
|
|
|
|
2017-03-31 16:58:14 +02:00
|
|
|
endif # !CONFIG_NET_TCP_NO_STACK
|
2014-06-18 18:21:21 +02:00
|
|
|
endif # CONFIG_NET_TCP
|