Make.defs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. ############################################################################
  2. # net/udp/Make.defs
  3. #
  4. # Licensed to the Apache Software Foundation (ASF) under one or more
  5. # contributor license agreements. See the NOTICE file distributed with
  6. # this work for additional information regarding copyright ownership. The
  7. # ASF licenses this file to you under the Apache License, Version 2.0 (the
  8. # "License"); you may not use this file except in compliance with the
  9. # License. You may obtain a copy of the License at
  10. #
  11. # http://www.apache.org/licenses/LICENSE-2.0
  12. #
  13. # Unless required by applicable law or agreed to in writing, software
  14. # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  15. # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  16. # License for the specific language governing permissions and limitations
  17. # under the License.
  18. #
  19. ############################################################################
  20. # UDP source files
  21. ifeq ($(CONFIG_NET_UDP),y)
  22. ifneq ($(CONFIG_NET_UDP_NO_STACK),y)
  23. # Socket layer
  24. SOCK_CSRCS += udp_recvfrom.c
  25. ifeq ($(CONFIG_NET_UDPPROTO_OPTIONS),y)
  26. SOCK_CSRCS += udp_setsockopt.c
  27. endif
  28. ifeq ($(CONFIG_NET_UDP_WRITE_BUFFERS),y)
  29. SOCK_CSRCS += udp_sendto_buffered.c
  30. else
  31. SOCK_CSRCS += udp_sendto_unbuffered.c
  32. endif
  33. ifeq ($(CONFIG_NET_UDP_NOTIFIER),y)
  34. SOCK_CSRCS += udp_notifier.c
  35. ifeq ($(CONFIG_NET_UDP_WRITE_BUFFERS),y)
  36. SOCK_CSRCS += udp_txdrain.c
  37. endif
  38. endif
  39. # Transport layer
  40. NET_CSRCS += udp_conn.c udp_devpoll.c udp_send.c udp_input.c udp_finddev.c
  41. NET_CSRCS += udp_close.c udp_callback.c udp_ipselect.c udp_netpoll.c
  42. # UDP write buffering
  43. ifeq ($(CONFIG_NET_UDP_WRITE_BUFFERS),y)
  44. NET_CSRCS += udp_wrbuffer.c
  45. ifeq ($(CONFIG_DEBUG_FEATURES),y)
  46. NET_CSRCS += udp_wrbuffer_dump.c
  47. endif
  48. endif
  49. # Include UDP build support
  50. DEPPATH += --dep-path udp
  51. VPATH += :udp
  52. endif # !CONFIG_NET_UDP_NO_STACK
  53. endif # CONFIG_NET_UDP