nuttx/net/udp/Make.defs

71 lines
1.9 KiB
Plaintext
Raw Normal View History

2014-06-18 18:50:09 +02:00
############################################################################
# net/udp/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
2014-06-18 18:50:09 +02: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)
ifneq ($(CONFIG_NET_UDP_NO_STACK),y)
2014-06-18 18:50:09 +02:00
# Socket layer
SOCK_CSRCS += udp_recvfrom.c
ifeq ($(CONFIG_NET_UDPPROTO_OPTIONS),y)
SOCK_CSRCS += udp_setsockopt.c
endif
ifeq ($(CONFIG_NET_UDP_WRITE_BUFFERS),y)
SOCK_CSRCS += udp_sendto_buffered.c
else
SOCK_CSRCS += udp_sendto_unbuffered.c
endif
ifeq ($(CONFIG_NET_UDP_NOTIFIER),y)
SOCK_CSRCS += udp_notifier.c
ifeq ($(CONFIG_NET_UDP_WRITE_BUFFERS),y)
SOCK_CSRCS += udp_txdrain.c
endif
endif
# Transport layer
NET_CSRCS += udp_conn.c udp_devpoll.c udp_send.c udp_input.c udp_finddev.c
NET_CSRCS += udp_close.c udp_callback.c udp_ipselect.c udp_netpoll.c
NET_CSRCS += udp_ioctl.c
2014-06-18 18:50:09 +02: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
endif # !CONFIG_NET_UDP_NO_STACK
2014-06-18 18:50:09 +02:00
endif # CONFIG_NET_UDP