|
Packit Service |
82fcde |
# Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
|
Packit Service |
82fcde |
# This file is part of the GNU C Library.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
# The GNU C Library is free software; you can redistribute it and/or
|
|
Packit Service |
82fcde |
# modify it under the terms of the GNU Lesser General Public
|
|
Packit Service |
82fcde |
# License as published by the Free Software Foundation; either
|
|
Packit Service |
82fcde |
# version 2.1 of the License, or (at your option) any later version.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
# The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit Service |
82fcde |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
82fcde |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
82fcde |
# Lesser General Public License for more details.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
# You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
82fcde |
# License along with the GNU C Library; if not, see
|
|
Packit Service |
82fcde |
# <http://www.gnu.org/licenses/>.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#
|
|
Packit Service |
82fcde |
# Sub-makefile for inet portion of the library.
|
|
Packit Service |
82fcde |
#
|
|
Packit Service |
82fcde |
subdir := inet
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
include ../Makeconfig
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
headers := netinet/ether.h netinet/in.h netinet/in_systm.h \
|
|
Packit Service |
82fcde |
netinet/if_ether.h netinet/igmp.h \
|
|
Packit Service |
82fcde |
netinet/tcp.h netinet/ip.h $(wildcard arpa/*.h protocols/*.h) \
|
|
Packit Service |
82fcde |
aliases.h ifaddrs.h netinet/ip6.h netinet/icmp6.h bits/in.h
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
routines := htonl htons \
|
|
Packit Service |
82fcde |
inet_lnaof inet_mkadr \
|
|
Packit Service |
82fcde |
inet_netof inet_ntoa inet_net herrno herrno-loc \
|
|
Packit Service |
82fcde |
gethstbyad gethstbyad_r gethstbynm gethstbynm2 gethstbynm2_r \
|
|
Packit Service |
82fcde |
gethstbynm_r gethstent gethstent_r \
|
|
Packit Service |
82fcde |
getnetbyad getnetbyad_r getnetbynm getnetent getnetent_r \
|
|
Packit Service |
82fcde |
getnetbynm_r \
|
|
Packit Service |
82fcde |
getproto getproto_r getprtent getprtent_r getprtname getprtname_r \
|
|
Packit Service |
82fcde |
getsrvbynm getsrvbynm_r getsrvbypt getsrvbypt_r getservent \
|
|
Packit Service |
82fcde |
getservent_r \
|
|
Packit Service |
82fcde |
ether_aton ether_aton_r ether_hton ether_line \
|
|
Packit Service |
82fcde |
ether_ntoa ether_ntoa_r ether_ntoh \
|
|
Packit Service |
82fcde |
rcmd rexec ruserpass \
|
|
Packit Service |
82fcde |
getnetgrent_r getnetgrent \
|
|
Packit Service |
82fcde |
getaliasent_r getaliasent getaliasname getaliasname_r \
|
|
Packit Service |
82fcde |
in6_addr getnameinfo if_index ifaddrs inet6_option \
|
|
Packit Service |
82fcde |
getipv4sourcefilter setipv4sourcefilter \
|
|
Packit Service |
82fcde |
getsourcefilter setsourcefilter inet6_opt inet6_rth \
|
|
Packit Service |
82fcde |
inet6_scopeid_pton deadline idna idna_name_classify
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
aux := check_pf check_native ifreq
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
tests := htontest test_ifindex tst-ntoa tst-ether_aton tst-network \
|
|
Packit Service |
82fcde |
tst-gethnm test-ifaddrs bug-if1 test-inet6_opt tst-ether_line \
|
|
Packit Service |
82fcde |
tst-getni1 tst-getni2 tst-inet6_rth tst-checks tst-checks-posix \
|
|
Packit Service |
2ce813 |
tst-sockaddr test-hnto-types tst-if_index-long
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
# tst-deadline must be linked statically so that we can access
|
|
Packit Service |
82fcde |
# internal functions.
|
|
Packit Service |
82fcde |
tests-static += tst-deadline
|
|
Packit Service |
82fcde |
tests-internal += tst-deadline
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
# tst-idna_name_classify must be linked statically because it tests
|
|
Packit Service |
82fcde |
# internal functionality.
|
|
Packit Service |
82fcde |
tests-static += tst-idna_name_classify
|
|
Packit Service |
82fcde |
tests-internal += tst-idna_name_classify
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
# tst-inet6_scopeid_pton also needs internal functions but does not
|
|
Packit Service |
82fcde |
# need to be linked statically.
|
|
Packit Service |
82fcde |
tests-internal += tst-inet6_scopeid_pton
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
include ../Rules
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
LOCALES := en_US.UTF-8 en_US.ISO-8859-1
|
|
Packit Service |
82fcde |
include ../gen-locales.mk
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
ifeq ($(have-thread-library),yes)
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
CFLAGS-gethstbyad_r.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-gethstbyad.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-gethstbynm_r.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-gethstbynm.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-gethstbynm2_r.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-gethstbynm2.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-gethstent_r.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-gethstent.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-rcmd.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-getnetbynm_r.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-getnetbynm.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-getnetbyad_r.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-getnetbyad.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-getnetent_r.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-getnetent.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-getaliasent_r.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-getaliasent.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-getrpcent_r.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-getrpcent.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-getservent_r.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-getservent.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-getprtent_r.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-getprtent.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-either_ntoh.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-either_hton.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-getnetgrent.c += -fexceptions
|
|
Packit Service |
82fcde |
CFLAGS-getnetgrent_r.c += -fexceptions
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
CFLAGS-tst-checks-posix.c += -std=c99
|
|
Packit Service |
82fcde |
CFLAGS-tst-sockaddr.c += -fno-strict-aliasing
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
endif
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
ifeq ($(build-static-nss),yes)
|
|
Packit Service |
82fcde |
CFLAGS += -DSTATIC_NSS
|
|
Packit Service |
82fcde |
endif
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
$(objpfx)tst-idna_name_classify.out: $(gen-locales)
|