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
|
|
|
#
|
2021-06-07 17:31:08 +02: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
|
2011-03-19 22:04:13 +01:00
|
|
|
#
|
2021-06-07 17:31:08 +02:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2011-03-19 22:04:13 +01:00
|
|
|
#
|
2021-06-07 17:31:08 +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.
|
2011-03-19 22:04:13 +01:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
2020-05-20 06:35:03 +02:00
|
|
|
include $(APPDIR)/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
|
2019-11-08 18:30:32 +01:00
|
|
|
|
2019-04-26 21:08:38 +02:00
|
|
|
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
|
2019-11-08 18:30:32 +01:00
|
|
|
ifeq ($(CONFIG_NETLINK_ROUTE),y)
|
|
|
|
CSRCS += netlib_getarptab.c
|
|
|
|
endif
|
2016-02-08 18:44:59 +01:00
|
|
|
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
|
2022-12-13 11:08:12 +01:00
|
|
|
ifeq ($(CONFIG_NET_IPTABLES),y)
|
|
|
|
CSRCS += netlib_iptables.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
|
2022-08-03 11:34:31 +02:00
|
|
|
ifeq ($(CONFIG_NETDB_DNSCLIENT),y)
|
|
|
|
CSRCS += netlib_setipv6dnsaddr.c
|
|
|
|
endif
|
2017-09-20 18:35:56 +02:00
|
|
|
ifeq ($(CONFIG_NET_ROUTE),y)
|
|
|
|
CSRCS += netlib_ipv6route.c netlib_ipv6router.c
|
|
|
|
endif
|
2019-11-08 18:30:32 +01:00
|
|
|
ifeq ($(CONFIG_NETLINK_ROUTE),y)
|
|
|
|
CSRCS += netlib_getnbtab.c
|
|
|
|
endif
|
2015-01-18 21:17:00 +01:00
|
|
|
endif
|
|
|
|
|
2019-11-10 00:38:02 +01:00
|
|
|
# Device support
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_NETLINK_ROUTE),y)
|
|
|
|
CSRCS += netlib_getdevs.c
|
2019-11-10 19:36:34 +01:00
|
|
|
ifeq ($(CONFIG_NET_ROUTE),y)
|
|
|
|
CSRCS += netlib_getroute.c
|
|
|
|
endif
|
2019-11-10 00:38:02 +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
|