]> git.ipfire.org Git - thirdparty/glibc.git/blame - inet/Makefile
Replace FSF snail mail address with URLs.
[thirdparty/glibc.git] / inet / Makefile
CommitLineData
aff2453d 1# Copyright (C) 1991-2006, 2007, 2009, 2011 Free Software Foundation, Inc.
28f540f4
RM
2# This file is part of the GNU C Library.
3
4# The GNU C Library is free software; you can redistribute it and/or
41bdb6e2
AJ
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.
28f540f4
RM
8
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
41bdb6e2 12# Lesser General Public License for more details.
28f540f4 13
41bdb6e2 14# You should have received a copy of the GNU Lesser General Public
59ba27a6
PE
15# License along with the GNU C Library; if not, see
16# <http://www.gnu.org/licenses/>.
28f540f4
RM
17
18#
19# Sub-makefile for inet portion of the library.
20#
21subdir := inet
22
e196b7dd 23headers := netinet/ether.h netinet/in.h netinet/in_systm.h \
d9997a45 24 netinet/if_ether.h netinet/igmp.h \
df4ef2ab 25 netinet/tcp.h netinet/ip.h $(wildcard arpa/*.h protocols/*.h) \
7f1deee6 26 aliases.h ifaddrs.h netinet/ip6.h netinet/icmp6.h bits/in.h
28f540f4 27
a68b0d31
UD
28distribute := netgroup.h
29
60c96635 30routines := htonl htons \
3d61b63c 31 inet_lnaof inet_mkadr \
270d9d47 32 inet_netof inet_ntoa inet_net herrno herrno-loc \
5f0e6fc7
RM
33 gethstbyad gethstbyad_r gethstbynm gethstbynm2 gethstbynm2_r \
34 gethstbynm_r gethstent gethstent_r \
7cbc6984 35 getnetbyad getnetbyad_r getnetbynm getnetent getnetent_r \
5f0e6fc7
RM
36 getnetbynm_r \
37 getproto getproto_r getprtent getprtent_r getprtname getprtname_r \
38 getsrvbynm getsrvbynm_r getsrvbypt getsrvbypt_r getservent \
39 getservent_r \
40 getrpcent getrpcbyname getrpcbynumber \
41 getrpcent_r getrpcbyname_r getrpcbynumber_r \
6dbe2837
RM
42 ether_aton ether_aton_r ether_hton ether_line \
43 ether_ntoa ether_ntoa_r ether_ntoh \
a68b0d31 44 rcmd rexec ruserpass \
26761c28 45 getnetgrent_r getnetgrent \
1fb05e3d 46 getaliasent_r getaliasent getaliasname getaliasname_r \
f89d6892
UD
47 in6_addr getnameinfo if_index ifaddrs inet6_option \
48 getipv4sourcefilter setipv4sourcefilter \
07bfff20 49 getsourcefilter setsourcefilter inet6_opt inet6_rth
28f540f4 50
773e79b3 51aux := check_pf check_native ifreq
1dc869d1 52
11a9c0ce 53tests := htontest test_ifindex tst-ntoa tst-ether_aton tst-network \
d4f0720b 54 tst-gethnm test-ifaddrs bug-if1 test-inet6_opt tst-ether_line \
aff2453d 55 tst-getni1 tst-getni2 tst-inet6_rth tst-checks
1522c368 56
28f540f4 57include ../Rules
67479a70
UD
58
59ifeq ($(have-thread-library),yes)
60
443f7933 61CFLAGS-gethstbyad_r.c = -DUSE_NSCD=1 -fexceptions
72ef277e 62CFLAGS-gethstbyad.c = -fexceptions
443f7933 63CFLAGS-gethstbynm_r.c = -DUSE_NSCD=1 -fexceptions
72ef277e 64CFLAGS-gethstbynm.c = -fexceptions
443f7933 65CFLAGS-gethstbynm2_r.c = -DUSE_NSCD=1 -fexceptions
72ef277e
UD
66CFLAGS-gethstbynm2.c = -fexceptions
67CFLAGS-gethstent_r.c = -fexceptions
68CFLAGS-gethstent.c = -fexceptions
b5bc52ef 69CFLAGS-rcmd.c = -fexceptions
72ef277e
UD
70CFLAGS-getnetbynm_r.c = -fexceptions
71CFLAGS-getnetbynm.c = -fexceptions
72CFLAGS-getnetbyad_r.c = -fexceptions
73CFLAGS-getnetbyad.c = -fexceptions
74CFLAGS-getnetent_r.c = -fexceptions
75CFLAGS-getnetent.c = -fexceptions
76CFLAGS-getaliasent_r.c = -fexceptions
77CFLAGS-getaliasent.c = -fexceptions
78CFLAGS-getrpcent_r.c = -fexceptions
79CFLAGS-getrpcent.c = -fexceptions
80CFLAGS-getservent_r.c = -fexceptions
81CFLAGS-getservent.c = -fexceptions
b21fa963
UD
82CFLAGS-getsrvbynm_r.c = -DUSE_NSCD=1
83CFLAGS-getsrvbypt_r.c = -DUSE_NSCD=1
72ef277e
UD
84CFLAGS-getprtent_r.c = -fexceptions
85CFLAGS-getprtent.c = -fexceptions
8dab36a1
UD
86CFLAGS-either_ntoh.c = -fexceptions
87CFLAGS-either_hton.c = -fexceptions
88CFLAGS-getnetgrent.c = -fexceptions
89CFLAGS-getnetgrent_r.c = -fexceptions
67479a70
UD
90
91endif
ce85d65b
UD
92
93ifeq ($(build-static-nss),yes)
94CFLAGS += -DSTATIC_NSS
95endif
b5c69d99
UD
96
97ifeq (yes,$(build-static-nss))
98otherlibs += $(nssobjdir)/libnss_files.a $(resolvobjdir)/libnss_dns.a \
aff2453d 99 $(resolvobjdir)/libresolv.a
b5c69d99 100endif