2014-06-19 00:50:09 +08:00
|
|
|
############################################################################
|
|
|
|
# net/udp/Make.defs
|
|
|
|
#
|
2024-09-11 20:39:39 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
2021-02-19 19:45:37 +08: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-19 00:50:09 +08:00
|
|
|
#
|
2021-02-19 19:45:37 +08:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2014-06-19 00:50:09 +08:00
|
|
|
#
|
2021-02-19 19:45:37 +08: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-19 00:50:09 +08:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
# UDP source files
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_NET_UDP),y)
|
2017-03-31 22:58:14 +08:00
|
|
|
ifneq ($(CONFIG_NET_UDP_NO_STACK),y)
|
2014-06-19 00:50:09 +08:00
|
|
|
|
2015-01-29 03:41:24 +08:00
|
|
|
# Socket layer
|
|
|
|
|
2020-01-21 15:50:39 +08:00
|
|
|
SOCK_CSRCS += udp_recvfrom.c
|
|
|
|
|
2018-06-26 02:41:28 +08:00
|
|
|
ifeq ($(CONFIG_NET_UDPPROTO_OPTIONS),y)
|
|
|
|
SOCK_CSRCS += udp_setsockopt.c
|
|
|
|
endif
|
|
|
|
|
2018-01-23 08:32:02 +08:00
|
|
|
ifeq ($(CONFIG_NET_UDP_WRITE_BUFFERS),y)
|
2020-01-21 16:43:14 +08:00
|
|
|
SOCK_CSRCS += udp_sendto_buffered.c
|
2018-01-23 08:32:02 +08:00
|
|
|
else
|
2020-01-21 16:43:14 +08:00
|
|
|
SOCK_CSRCS += udp_sendto_unbuffered.c
|
2018-01-23 08:32:02 +08:00
|
|
|
endif
|
2015-01-29 03:41:24 +08:00
|
|
|
|
2019-12-31 23:26:14 +08:00
|
|
|
ifeq ($(CONFIG_NET_UDP_NOTIFIER),y)
|
2018-09-09 23:21:39 +08:00
|
|
|
SOCK_CSRCS += udp_notifier.c
|
2019-07-02 02:25:32 +08:00
|
|
|
ifeq ($(CONFIG_NET_UDP_WRITE_BUFFERS),y)
|
|
|
|
SOCK_CSRCS += udp_txdrain.c
|
|
|
|
endif
|
2015-01-30 21:09:25 +08:00
|
|
|
endif
|
2015-01-29 03:41:24 +08:00
|
|
|
|
2015-01-30 21:09:25 +08:00
|
|
|
# Transport layer
|
|
|
|
|
2015-05-30 00:45:41 +08:00
|
|
|
NET_CSRCS += udp_conn.c udp_devpoll.c udp_send.c udp_input.c udp_finddev.c
|
2020-01-21 14:11:29 +08:00
|
|
|
NET_CSRCS += udp_close.c udp_callback.c udp_ipselect.c udp_netpoll.c
|
2021-06-07 18:06:44 +08:00
|
|
|
NET_CSRCS += udp_ioctl.c
|
2014-06-19 00:50:09 +08:00
|
|
|
|
2018-01-23 08:32:02 +08:00
|
|
|
# UDP write buffering
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_NET_UDP_WRITE_BUFFERS),y)
|
|
|
|
NET_CSRCS += udp_wrbuffer.c
|
|
|
|
ifeq ($(CONFIG_DEBUG_FEATURES),y)
|
|
|
|
NET_CSRCS += udp_wrbuffer_dump.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2014-07-01 09:43:30 +08:00
|
|
|
# Include UDP build support
|
2014-06-19 00:50:09 +08:00
|
|
|
|
|
|
|
DEPPATH += --dep-path udp
|
|
|
|
VPATH += :udp
|
|
|
|
|
2017-03-31 22:58:14 +08:00
|
|
|
endif # !CONFIG_NET_UDP_NO_STACK
|
2014-06-19 00:50:09 +08:00
|
|
|
endif # CONFIG_NET_UDP
|