Update.
[glibc.git] / inet / Makefile
blobab922db4b69463561ec2ee68303d4beb48905821
1 # Copyright (C) 1991-1999, 2000, 2001 Free Software Foundation, Inc.
2 # This file is part of the GNU C Library.
4 # The GNU C Library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License, or (at your option) any later version.
9 # The GNU C Library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with the GNU C Library; if not, write to the Free
16 # Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17 # 02111-1307 USA.
20 # Sub-makefile for inet portion of the library.
22 subdir := inet
24 headers := netinet/ether.h netinet/in.h netinet/in_systm.h \
25 netinet/if_ether.h \
26 netinet/tcp.h netinet/ip.h $(wildcard arpa/*.h protocols/*.h) \
27 aliases.h netinet/ip6.h netinet/icmp6.h bits/in.h
29 distribute := netgroup.h
31 routines := htonl htons \
32 inet_lnaof inet_mkadr \
33 inet_netof inet_ntoa inet_net herrno \
34 gethstbyad gethstbyad_r gethstbynm gethstbynm2 gethstbynm2_r \
35 gethstbynm_r gethstent gethstent_r \
36 getnetbyad getnetbyad_r getnetbynm getnetent getnetent_r \
37 getnetbynm_r \
38 getproto getproto_r getprtent getprtent_r getprtname getprtname_r \
39 getsrvbynm getsrvbynm_r getsrvbypt getsrvbypt_r getservent \
40 getservent_r \
41 getrpcent getrpcbyname getrpcbynumber \
42 getrpcent_r getrpcbyname_r getrpcbynumber_r \
43 ether_aton ether_aton_r ether_hton ether_line \
44 ether_ntoa ether_ntoa_r ether_ntoh \
45 rcmd rexec ruserpass \
46 getnetgrent_r getnetgrent \
47 getaliasent_r getaliasent getaliasname getaliasname_r \
48 in6_addr getnameinfo if_index
50 tests := htontest test_ifindex tst-ntoa tst-ether_aton tst-network \
51 tst-gethnm
53 include ../Rules
55 ifeq ($(have-thread-library),yes)
57 CFLAGS-gethstbyad_r.c = -DUSE_NSCD=1
58 CFLAGS-gethstbynm_r.c = -DUSE_NSCD=1
59 CFLAGS-gethstbynm2_r.c = -DUSE_NSCD=1
61 endif
63 ifeq ($(build-static-nss),yes)
64 CFLAGS += -DSTATIC_NSS
65 endif
67 ifeq (yes,$(build-static-nss))
68 otherlibs += $(nssobjdir)/libnss_files.a $(resolvobjdir)/libnss_dns.a \
69 $(resolvobjdir)/libresolv.a
70 endif