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