2006-05-25 04:50:06 +00:00
|
|
|
# Copyright (C) 1991-2002, 2003, 2004, 2006 Free Software Foundation, Inc.
|
1995-02-18 01:27:10 +00:00
|
|
|
# This file is part of the GNU C Library.
|
|
|
|
|
|
|
|
|
|
# The GNU C Library is free software; you can redistribute it and/or
|
2001-07-06 04:58:11 +00:00
|
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
|
|
|
# License as published by the Free Software Foundation; either
|
|
|
|
|
# version 2.1 of the License, or (at your option) any later version.
|
1995-02-18 01:27:10 +00:00
|
|
|
|
|
|
|
|
# The GNU C Library is distributed in the hope that it will be useful,
|
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
2001-07-06 04:58:11 +00:00
|
|
|
# Lesser General Public License for more details.
|
1995-02-18 01:27:10 +00:00
|
|
|
|
2001-07-06 04:58:11 +00:00
|
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
# License along with the GNU C Library; if not, write to the Free
|
|
|
|
|
# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
|
|
|
|
# 02111-1307 USA.
|
1995-02-18 01:27:10 +00:00
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Sub-makefile for inet portion of the library.
|
|
|
|
|
#
|
|
|
|
|
subdir := inet
|
|
|
|
|
|
1999-05-16 08:52:16 +00:00
|
|
|
headers := netinet/ether.h netinet/in.h netinet/in_systm.h \
|
2003-05-10 08:39:58 +00:00
|
|
|
netinet/if_ether.h netinet/igmp.h \
|
1997-01-06 22:07:28 +00:00
|
|
|
netinet/tcp.h netinet/ip.h $(wildcard arpa/*.h protocols/*.h) \
|
2002-07-24 22:56:44 +00:00
|
|
|
aliases.h ifaddrs.h netinet/ip6.h netinet/icmp6.h bits/in.h
|
1995-02-18 01:27:10 +00:00
|
|
|
|
1996-10-02 01:40:17 +00:00
|
|
|
distribute := netgroup.h
|
|
|
|
|
|
1997-07-22 00:10:33 +00:00
|
|
|
routines := htonl htons \
|
1995-07-26 10:14:02 +00:00
|
|
|
inet_lnaof inet_mkadr \
|
2002-12-28 10:24:40 +00:00
|
|
|
inet_netof inet_ntoa inet_net herrno herrno-loc \
|
1996-06-25 08:56:57 +00:00
|
|
|
gethstbyad gethstbyad_r gethstbynm gethstbynm2 gethstbynm2_r \
|
|
|
|
|
gethstbynm_r gethstent gethstent_r \
|
1996-07-01 22:16:08 +00:00
|
|
|
getnetbyad getnetbyad_r getnetbynm getnetent getnetent_r \
|
1996-06-25 08:56:57 +00:00
|
|
|
getnetbynm_r \
|
|
|
|
|
getproto getproto_r getprtent getprtent_r getprtname getprtname_r \
|
|
|
|
|
getsrvbynm getsrvbynm_r getsrvbypt getsrvbypt_r getservent \
|
|
|
|
|
getservent_r \
|
|
|
|
|
getrpcent getrpcbyname getrpcbynumber \
|
|
|
|
|
getrpcent_r getrpcbyname_r getrpcbynumber_r \
|
1996-06-28 08:56:59 +00:00
|
|
|
ether_aton ether_aton_r ether_hton ether_line \
|
|
|
|
|
ether_ntoa ether_ntoa_r ether_ntoh \
|
1996-10-02 01:40:17 +00:00
|
|
|
rcmd rexec ruserpass \
|
1996-11-14 02:04:07 +00:00
|
|
|
getnetgrent_r getnetgrent \
|
1997-02-19 04:43:53 +00:00
|
|
|
getaliasent_r getaliasent getaliasname getaliasname_r \
|
2004-07-26 04:29:07 +00:00
|
|
|
in6_addr getnameinfo if_index ifaddrs inet6_option \
|
|
|
|
|
getipv4sourcefilter setipv4sourcefilter \
|
2006-05-25 04:50:06 +00:00
|
|
|
getsourcefilter setsourcefilter inet6_opt inet6_rth
|
1995-02-18 01:27:10 +00:00
|
|
|
|
2003-06-11 21:57:23 +00:00
|
|
|
aux := check_pf ifreq
|
2003-06-10 08:58:05 +00:00
|
|
|
|
2000-08-12 06:52:46 +00:00
|
|
|
tests := htontest test_ifindex tst-ntoa tst-ether_aton tst-network \
|
2004-12-22 20:10:10 +00:00
|
|
|
tst-gethnm test-ifaddrs bug-if1
|
1997-07-24 01:36:01 +00:00
|
|
|
|
1995-02-18 01:27:10 +00:00
|
|
|
include ../Rules
|
1998-10-18 15:16:22 +00:00
|
|
|
|
|
|
|
|
ifeq ($(have-thread-library),yes)
|
|
|
|
|
|
2003-08-30 18:51:25 +00:00
|
|
|
CFLAGS-gethstbyad_r.c = -DUSE_NSCD=1 -fexceptions
|
2003-09-03 09:26:15 +00:00
|
|
|
CFLAGS-gethstbyad.c = -fexceptions
|
2003-08-30 18:51:25 +00:00
|
|
|
CFLAGS-gethstbynm_r.c = -DUSE_NSCD=1 -fexceptions
|
2003-09-03 09:26:15 +00:00
|
|
|
CFLAGS-gethstbynm.c = -fexceptions
|
2003-08-30 18:51:25 +00:00
|
|
|
CFLAGS-gethstbynm2_r.c = -DUSE_NSCD=1 -fexceptions
|
2003-09-03 09:26:15 +00:00
|
|
|
CFLAGS-gethstbynm2.c = -fexceptions
|
|
|
|
|
CFLAGS-gethstent_r.c = -fexceptions
|
|
|
|
|
CFLAGS-gethstent.c = -fexceptions
|
2003-08-31 17:24:25 +00:00
|
|
|
CFLAGS-rcmd.c = -fexceptions
|
2003-09-03 09:26:15 +00:00
|
|
|
CFLAGS-getnetbynm_r.c = -fexceptions
|
|
|
|
|
CFLAGS-getnetbynm.c = -fexceptions
|
|
|
|
|
CFLAGS-getnetbyad_r.c = -fexceptions
|
|
|
|
|
CFLAGS-getnetbyad.c = -fexceptions
|
|
|
|
|
CFLAGS-getnetent_r.c = -fexceptions
|
|
|
|
|
CFLAGS-getnetent.c = -fexceptions
|
|
|
|
|
CFLAGS-getaliasent_r.c = -fexceptions
|
|
|
|
|
CFLAGS-getaliasent.c = -fexceptions
|
|
|
|
|
CFLAGS-getrpcent_r.c = -fexceptions
|
|
|
|
|
CFLAGS-getrpcent.c = -fexceptions
|
|
|
|
|
CFLAGS-getservent_r.c = -fexceptions
|
|
|
|
|
CFLAGS-getservent.c = -fexceptions
|
|
|
|
|
CFLAGS-getprtent_r.c = -fexceptions
|
|
|
|
|
CFLAGS-getprtent.c = -fexceptions
|
2003-09-12 22:37:19 +00:00
|
|
|
CFLAGS-either_ntoh.c = -fexceptions
|
|
|
|
|
CFLAGS-either_hton.c = -fexceptions
|
|
|
|
|
CFLAGS-getnetgrent.c = -fexceptions
|
|
|
|
|
CFLAGS-getnetgrent_r.c = -fexceptions
|
1998-10-18 15:16:22 +00:00
|
|
|
|
|
|
|
|
endif
|
1998-10-19 15:22:14 +00:00
|
|
|
|
|
|
|
|
ifeq ($(build-static-nss),yes)
|
|
|
|
|
CFLAGS += -DSTATIC_NSS
|
|
|
|
|
endif
|
1999-09-20 02:18:14 +00:00
|
|
|
|
|
|
|
|
ifeq (yes,$(build-static-nss))
|
|
|
|
|
otherlibs += $(nssobjdir)/libnss_files.a $(resolvobjdir)/libnss_dns.a \
|
|
|
|
|
$(resolvobjdir)/libresolv.a
|
|
|
|
|
endif
|