2014-06-18 10:50:09 -06:00
|
|
|
############################################################################
|
|
|
|
# net/udp/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:50:09 -06:00
|
|
|
#
|
2021-02-19 12:45:37 +01:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2014-06-18 10:50:09 -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:50:09 -06:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
# UDP source files
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_NET_UDP),y)
|
2017-03-31 08:58:14 -06:00
|
|
|
ifneq ($(CONFIG_NET_UDP_NO_STACK),y)
|
2014-06-18 10:50:09 -06:00
|
|
|
|
2015-01-28 13:41:24 -06:00
|
|
|
# Socket layer
|
|
|
|
|
2020-01-21 15:50:39 +08:00
|
|
|
SOCK_CSRCS += udp_recvfrom.c
|
|
|
|
|
2018-06-25 12:41:28 -06:00
|
|
|
ifeq ($(CONFIG_NET_UDPPROTO_OPTIONS),y)
|
|
|
|
SOCK_CSRCS += udp_setsockopt.c
|
|
|
|
endif
|
|
|
|
|
2018-01-22 18:32:02 -06:00
|
|
|
ifeq ($(CONFIG_NET_UDP_WRITE_BUFFERS),y)
|
2020-01-21 16:43:14 +08:00
|
|
|
SOCK_CSRCS += udp_sendto_buffered.c
|
2018-01-22 18:32:02 -06:00
|
|
|
else
|
2020-01-21 16:43:14 +08:00
|
|
|
SOCK_CSRCS += udp_sendto_unbuffered.c
|
2018-01-22 18:32:02 -06:00
|
|
|
endif
|
2015-01-28 13:41:24 -06:00
|
|
|
|
2019-12-31 09:26:14 -06:00
|
|
|
ifeq ($(CONFIG_NET_UDP_NOTIFIER),y)
|
2018-09-09 09:21:39 -06:00
|
|
|
SOCK_CSRCS += udp_notifier.c
|
2019-07-01 12:25:32 -06:00
|
|
|
ifeq ($(CONFIG_NET_UDP_WRITE_BUFFERS),y)
|
|
|
|
SOCK_CSRCS += udp_txdrain.c
|
|
|
|
endif
|
2015-01-30 07:09:25 -06:00
|
|
|
endif
|
2015-01-28 13:41:24 -06:00
|
|
|
|
2015-01-30 07:09:25 -06:00
|
|
|
# Transport layer
|
|
|
|
|
2015-05-29 10:45:41 -06: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
|
2014-06-18 10:50:09 -06:00
|
|
|
|
2018-01-22 18:32:02 -06: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-06-30 19:43:30 -06:00
|
|
|
# Include UDP build support
|
2014-06-18 10:50:09 -06:00
|
|
|
|
|
|
|
DEPPATH += --dep-path udp
|
|
|
|
VPATH += :udp
|
|
|
|
|
2017-03-31 08:58:14 -06:00
|
|
|
endif # !CONFIG_NET_UDP_NO_STACK
|
2014-06-18 10:50:09 -06:00
|
|
|
endif # CONFIG_NET_UDP
|