Make.defs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. ############################################################################
  2. # net/icmpv6/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. ifeq ($(CONFIG_NET_ICMPv6),y)
  21. ifneq ($(CONFIG_NET_ICMPv6_NO_STACK),y)
  22. # ICMPv6 source files
  23. NET_CSRCS += icmpv6_input.c icmpv6_solicit.c icmpv6_advertise.c
  24. NET_CSRCS += icmpv6_linkipaddr.c
  25. ifeq ($(CONFIG_NET_ICMPv6_SOCKET),y)
  26. SOCK_CSRCS += icmpv6_sockif.c icmpv6_conn.c icmpv6_sendmsg.c
  27. SOCK_CSRCS += icmpv6_recvmsg.c icmpv6_netpoll.c
  28. endif
  29. ifeq ($(CONFIG_NET_ICMPv6_NEIGHBOR),y)
  30. NET_CSRCS += icmpv6_neighbor.c icmpv6_notify.c
  31. endif
  32. ifeq ($(CONFIG_NET_ICMPv6_SOCKET),y)
  33. SOCK_CSRCS += icmpv6_poll.c
  34. else ifeq ($(CONFIG_NET_ICMPv6_NEIGHBOR),y)
  35. NET_CSRCS += icmpv6_poll.c
  36. endif
  37. ifeq ($(CONFIG_NET_ICMPv6_AUTOCONF),y)
  38. NET_CSRCS += icmpv6_autoconfig.c icmpv6_rsolicit.c icmpv6_rnotify.c
  39. endif
  40. ifeq ($(CONFIG_NET_ICMPv6_ROUTER),y)
  41. NET_CSRCS += icmpv6_radvertise.c
  42. endif
  43. # Include ICMPv6 build support
  44. DEPPATH += --dep-path icmpv6
  45. VPATH += :icmpv6
  46. endif # !CONFIG_NET_ICMPv6_NO_STACK
  47. endif # CONFIG_NET_ICMPv6