]>
Commit | Line | Data |
---|---|---|
32c075e1 | 1 | # Copyright (C) 1991-2006, 2007 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 AJ |
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. | |
28f540f4 RM |
18 | |
19 | # | |
20 | # Sub-makefile for inet portion of the library. | |
21 | # | |
22 | subdir := inet | |
23 | ||
e196b7dd | 24 | headers := netinet/ether.h netinet/in.h netinet/in_systm.h \ |
d9997a45 | 25 | netinet/if_ether.h netinet/igmp.h \ |
df4ef2ab | 26 | netinet/tcp.h netinet/ip.h $(wildcard arpa/*.h protocols/*.h) \ |
7f1deee6 | 27 | aliases.h ifaddrs.h netinet/ip6.h netinet/icmp6.h bits/in.h |
28f540f4 | 28 | |
a68b0d31 UD |
29 | distribute := netgroup.h |
30 | ||
60c96635 | 31 | routines := htonl htons \ |
3d61b63c | 32 | inet_lnaof inet_mkadr \ |
270d9d47 | 33 | inet_netof inet_ntoa inet_net herrno herrno-loc \ |
5f0e6fc7 RM |
34 | gethstbyad gethstbyad_r gethstbynm gethstbynm2 gethstbynm2_r \ |
35 | gethstbynm_r gethstent gethstent_r \ | |
7cbc6984 | 36 | getnetbyad getnetbyad_r getnetbynm getnetent getnetent_r \ |
5f0e6fc7 RM |
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 \ | |
6dbe2837 RM |
43 | ether_aton ether_aton_r ether_hton ether_line \ |
44 | ether_ntoa ether_ntoa_r ether_ntoh \ | |
a68b0d31 | 45 | rcmd rexec ruserpass \ |
26761c28 | 46 | getnetgrent_r getnetgrent \ |
1fb05e3d | 47 | getaliasent_r getaliasent getaliasname getaliasname_r \ |
f89d6892 UD |
48 | in6_addr getnameinfo if_index ifaddrs inet6_option \ |
49 | getipv4sourcefilter setipv4sourcefilter \ | |
07bfff20 | 50 | getsourcefilter setsourcefilter inet6_opt inet6_rth |
28f540f4 | 51 | |
dd9423a6 | 52 | aux := check_pf ifreq |
1dc869d1 | 53 | |
11a9c0ce | 54 | tests := htontest test_ifindex tst-ntoa tst-ether_aton tst-network \ |
32c075e1 | 55 | tst-gethnm test-ifaddrs bug-if1 test-inet6_opt |
1522c368 | 56 | |
28f540f4 | 57 | include ../Rules |
67479a70 UD |
58 | |
59 | ifeq ($(have-thread-library),yes) | |
60 | ||
443f7933 | 61 | CFLAGS-gethstbyad_r.c = -DUSE_NSCD=1 -fexceptions |
72ef277e | 62 | CFLAGS-gethstbyad.c = -fexceptions |
443f7933 | 63 | CFLAGS-gethstbynm_r.c = -DUSE_NSCD=1 -fexceptions |
72ef277e | 64 | CFLAGS-gethstbynm.c = -fexceptions |
443f7933 | 65 | CFLAGS-gethstbynm2_r.c = -DUSE_NSCD=1 -fexceptions |
72ef277e UD |
66 | CFLAGS-gethstbynm2.c = -fexceptions |
67 | CFLAGS-gethstent_r.c = -fexceptions | |
68 | CFLAGS-gethstent.c = -fexceptions | |
b5bc52ef | 69 | CFLAGS-rcmd.c = -fexceptions |
72ef277e UD |
70 | CFLAGS-getnetbynm_r.c = -fexceptions |
71 | CFLAGS-getnetbynm.c = -fexceptions | |
72 | CFLAGS-getnetbyad_r.c = -fexceptions | |
73 | CFLAGS-getnetbyad.c = -fexceptions | |
74 | CFLAGS-getnetent_r.c = -fexceptions | |
75 | CFLAGS-getnetent.c = -fexceptions | |
76 | CFLAGS-getaliasent_r.c = -fexceptions | |
77 | CFLAGS-getaliasent.c = -fexceptions | |
78 | CFLAGS-getrpcent_r.c = -fexceptions | |
79 | CFLAGS-getrpcent.c = -fexceptions | |
80 | CFLAGS-getservent_r.c = -fexceptions | |
81 | CFLAGS-getservent.c = -fexceptions | |
82 | CFLAGS-getprtent_r.c = -fexceptions | |
83 | CFLAGS-getprtent.c = -fexceptions | |
8dab36a1 UD |
84 | CFLAGS-either_ntoh.c = -fexceptions |
85 | CFLAGS-either_hton.c = -fexceptions | |
86 | CFLAGS-getnetgrent.c = -fexceptions | |
87 | CFLAGS-getnetgrent_r.c = -fexceptions | |
67479a70 UD |
88 | |
89 | endif | |
ce85d65b UD |
90 | |
91 | ifeq ($(build-static-nss),yes) | |
92 | CFLAGS += -DSTATIC_NSS | |
93 | endif | |
b5c69d99 UD |
94 | |
95 | ifeq (yes,$(build-static-nss)) | |
96 | otherlibs += $(nssobjdir)/libnss_files.a $(resolvobjdir)/libnss_dns.a \ | |
97 | $(resolvobjdir)/libresolv.a | |
98 | endif |