2015-07-10 20:11:40 +02:00
|
|
|
############################################################################
|
2018-05-29 21:21:26 +02:00
|
|
|
# libs/libc/netdb/Make.defs
|
2015-07-10 20:11:40 +02:00
|
|
|
#
|
2021-03-02 15:54:21 +01: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
|
2015-07-10 20:11:40 +02:00
|
|
|
#
|
2021-03-02 15:54:21 +01:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2015-07-10 20:11:40 +02:00
|
|
|
#
|
2021-03-02 15:54:21 +01: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.
|
2015-07-10 20:11:40 +02:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_LIBC_NETDB),y)
|
|
|
|
|
|
|
|
# Add the netdb C files to the build
|
|
|
|
|
2015-07-17 17:43:28 +02:00
|
|
|
CSRCS += lib_netdb.c lib_gethostbyname.c lib_gethostbynamer.c
|
2020-03-31 20:21:04 +02:00
|
|
|
CSRCS += lib_gethostbyname2.c lib_gethostbyname2r.c
|
|
|
|
CSRCS += lib_gethostentbynamer.c
|
2020-03-29 12:31:45 +02:00
|
|
|
CSRCS += lib_gethostbyaddr.c lib_gethostbyaddrr.c
|
2018-06-08 15:07:21 +02:00
|
|
|
CSRCS += lib_getservbyname.c lib_getservbynamer.c
|
2019-06-30 23:12:34 +02:00
|
|
|
CSRCS += lib_getservbyport.c lib_getservbyportr.c
|
2018-06-08 15:07:21 +02:00
|
|
|
CSRCS += lib_gaistrerror.c lib_freeaddrinfo.c lib_getaddrinfo.c
|
2022-03-14 08:50:22 +01:00
|
|
|
CSRCS += lib_getnameinfo.c lib_rexec.c lib_dn.c
|
2022-12-02 13:03:15 +01:00
|
|
|
CSRCS += lib_proto.c lib_protor.c
|
2015-07-10 21:30:09 +02:00
|
|
|
|
2015-07-10 20:11:40 +02:00
|
|
|
# Add host file support
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_NETDB_HOSTFILE),y)
|
2020-03-29 12:31:45 +02:00
|
|
|
CSRCS += lib_parsehostfile.c
|
2015-07-10 20:11:40 +02:00
|
|
|
endif
|
|
|
|
|
2015-07-10 21:30:09 +02:00
|
|
|
# Add DNS lookup support
|
2015-07-10 20:11:40 +02:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_NETDB_DNSCLIENT),y)
|
2020-04-24 11:21:37 +02:00
|
|
|
CSRCS += lib_dnsinit.c lib_dnsbind.c lib_dnsquery.c
|
|
|
|
CSRCS += lib_dnsaddserver.c lib_dnsdefaultserver.c
|
2019-03-19 17:02:10 +01:00
|
|
|
CSRCS += lib_dnsforeach.c lib_dnsnotify.c
|
2016-01-14 17:17:15 +01:00
|
|
|
|
|
|
|
ifneq ($(CONFIG_NETDB_DNSCLIENT_ENTRIES),0)
|
|
|
|
CSRCS += lib_dnscache.c
|
|
|
|
endif
|
2015-07-10 20:11:40 +02:00
|
|
|
endif
|
|
|
|
|
2018-06-08 15:07:21 +02:00
|
|
|
# Add the netdb directory to the build
|
2015-07-10 20:11:40 +02:00
|
|
|
|
|
|
|
DEPPATH += --dep-path netdb
|
|
|
|
VPATH += :netdb
|
|
|
|
|
|
|
|
endif
|