Blame inet/Makefile

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