2011-03-19 22:04:13 +01:00
|
|
|
############################################################################
|
2014-07-03 00:04:25 +02:00
|
|
|
# apps/netutils/netlib/Makefile
|
2011-03-19 22:04:13 +01:00
|
|
|
#
|
2017-08-02 20:40:50 +02:00
|
|
|
# Copyright (C) 2011-2012, 2014-2015, 2017 Gregory Nutt. All rights reserved.
|
2012-09-13 18:58:49 +02:00
|
|
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
2011-03-19 22:04:13 +01:00
|
|
|
#
|
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
# modification, are permitted provided that the following conditions
|
|
|
|
# are met:
|
|
|
|
#
|
|
|
|
# 1. Redistributions of source code must retain the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer.
|
|
|
|
# 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer in
|
|
|
|
# the documentation and/or other materials provided with the
|
|
|
|
# distribution.
|
|
|
|
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
|
|
# used to endorse or promote products derived from this software
|
|
|
|
# without specific prior written permission.
|
|
|
|
#
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
|
|
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
|
|
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
|
|
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
|
|
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
|
|
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
|
|
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
# POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
2019-10-04 16:35:46 +02:00
|
|
|
include $(TOPDIR)/Make.defs
|
2011-03-19 22:04:13 +01:00
|
|
|
|
2017-04-07 00:00:41 +02:00
|
|
|
# Network Library
|
2011-03-19 22:04:13 +01:00
|
|
|
|
2016-02-08 23:09:24 +01:00
|
|
|
CSRCS = netlib_ipv4addrconv.c netlib_ethaddrconv.c netlib_parsehttpurl.c
|
2014-07-03 00:52:02 +02:00
|
|
|
CSRCS += netlib_setifstatus.c netlib_getifstatus.c
|
2012-09-17 20:18:44 +02:00
|
|
|
|
2019-04-26 21:08:38 +02:00
|
|
|
# Generic URL parsing support
|
|
|
|
ifeq ($(CONFIG_NETUTILS_NETLIB_GENERICURLPARSER),y)
|
|
|
|
CSRCS += netlib_parseurl.c
|
|
|
|
endif
|
|
|
|
|
2015-01-18 21:17:00 +01:00
|
|
|
# IP address support
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_NET_IPv4),y)
|
|
|
|
CSRCS += netlib_setipv4addr.c netlib_getipv4addr.c
|
|
|
|
CSRCS += netlib_setdripv4addr.c netlib_setipv4netmask.c
|
2016-01-14 14:24:36 +01:00
|
|
|
CSRCS += netlib_getdripv4addr.c netlib_getipv4netmask.c
|
2017-09-19 23:21:13 +02:00
|
|
|
CSRCS += netlib_ipv4adaptor.c
|
2016-02-08 18:44:59 +01:00
|
|
|
ifeq ($(CONFIG_NET_ARP),y)
|
|
|
|
CSRCS += netlib_getarp.c netlib_setarp.c netlib_delarp.c
|
|
|
|
endif
|
2015-07-12 19:53:23 +02:00
|
|
|
ifeq ($(CONFIG_NETDB_DNSCLIENT),y)
|
2016-01-13 22:08:59 +01:00
|
|
|
CSRCS += netlib_setipv4dnsaddr.c
|
2015-07-12 19:53:23 +02:00
|
|
|
endif
|
2017-09-20 18:35:56 +02:00
|
|
|
ifeq ($(CONFIG_NET_ROUTE),y)
|
|
|
|
CSRCS += netlib_ipv4route.c netlib_ipv4router.c
|
|
|
|
endif
|
2015-01-18 21:17:00 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_NET_IPv6),y)
|
|
|
|
CSRCS += netlib_setipv6addr.c netlib_getipv6addr.c
|
|
|
|
CSRCS += netlib_setdripv6addr.c netlib_setipv6netmask.c
|
2015-02-06 17:23:15 +01:00
|
|
|
CSRCS += netlib_prefix2ipv6netmask.c netlib_ipv6netmask2prefix.c
|
2017-09-19 23:21:13 +02:00
|
|
|
CSRCS += netlib_ipv6adaptor.c
|
2015-02-03 15:01:55 +01:00
|
|
|
ifeq ($(CONFIG_NET_ICMPv6_AUTOCONF),y)
|
|
|
|
CSRCS += netlib_autoconfig.c
|
|
|
|
endif
|
2017-09-20 18:35:56 +02:00
|
|
|
ifeq ($(CONFIG_NET_ROUTE),y)
|
|
|
|
CSRCS += netlib_ipv6route.c netlib_ipv6router.c
|
|
|
|
endif
|
2015-01-18 21:17:00 +01:00
|
|
|
endif
|
|
|
|
|
2012-09-17 20:18:44 +02:00
|
|
|
# These require TCP support
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_NET_TCP),y)
|
2015-01-19 18:41:46 +01:00
|
|
|
ifeq ($(CONFIG_NET_IPv4),y) # Not yet available for IPv6
|
2014-07-03 00:16:51 +02:00
|
|
|
CSRCS += netlib_server.c netlib_listenon.c
|
2012-09-17 20:18:44 +02:00
|
|
|
endif
|
2015-01-19 18:41:46 +01:00
|
|
|
endif
|
2011-03-19 22:04:13 +01:00
|
|
|
|
2017-03-13 17:16:20 +01:00
|
|
|
# These require wireless IOCTL support */
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_NETDEV_WIRELESS_IOCTL),y)
|
2017-03-13 21:16:26 +01:00
|
|
|
CSRCS += netlib_getessid.c netlib_setessid.c
|
2017-03-13 17:16:20 +01:00
|
|
|
endif
|
|
|
|
|
2017-06-19 00:02:11 +02:00
|
|
|
# MAC address support(Ethernet and 6LoWPAN only)
|
2011-03-19 22:04:13 +01:00
|
|
|
|
2014-11-15 20:52:39 +01:00
|
|
|
ifeq ($(CONFIG_NET_ETHERNET),y)
|
2014-07-03 00:16:51 +02:00
|
|
|
CSRCS += netlib_setmacaddr.c netlib_getmacaddr.c
|
2011-03-19 22:04:13 +01:00
|
|
|
endif
|
|
|
|
|
2017-08-02 20:40:50 +02:00
|
|
|
ifeq ($(CONFIG_WIRELESS_IEEE802154),y)
|
2017-08-18 20:07:41 +02:00
|
|
|
CSRCS += netlib_seteaddr.c netlib_getpanid.c netlib_saddrconv.c netlib_eaddrconv.c
|
2017-04-07 00:00:41 +02:00
|
|
|
endif
|
2017-08-20 17:09:47 +02:00
|
|
|
|
2017-08-02 20:40:50 +02:00
|
|
|
ifeq ($(CONFIG_WIRELESS_PKTRADIO),y)
|
|
|
|
CSRCS += netlib_getproperties.c netlib_getnodeaddr.c netlib_setnodeaddr.c
|
|
|
|
CSRCS += netlib_nodeaddrconv.c
|
|
|
|
endif
|
2017-04-07 00:00:41 +02:00
|
|
|
|
2011-03-19 22:04:13 +01:00
|
|
|
# IGMP support
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_NET_IGMP),y)
|
2015-01-19 18:41:46 +01:00
|
|
|
ifeq ($(CONFIG_NET_IPv4),y) # Not yet available for IPv6
|
2014-07-03 00:16:51 +02:00
|
|
|
CSRCS += netlib_ipmsfilter.c
|
2011-03-19 22:04:13 +01:00
|
|
|
endif
|
2015-01-19 18:41:46 +01:00
|
|
|
endif
|
2011-03-19 22:04:13 +01:00
|
|
|
|
2018-09-03 17:29:56 +02:00
|
|
|
include $(APPDIR)/Application.mk
|