]> git.ipfire.org Git - thirdparty/glibc.git/blame - inet/Makefile
1999-05-16 Roland McGrath <roland@baalperazim.frob.com>
[thirdparty/glibc.git] / inet / Makefile
CommitLineData
e196b7dd 1# Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 98, 99 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
5# modify it under the terms of the GNU Library General Public License as
6# published by the Free Software Foundation; either version 2 of the
7# License, or (at your option) any later version.
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
12# Library General Public License for more details.
13
14# You should have received a copy of the GNU Library General Public
26761c28
UD
15# License along with the GNU C Library; see the file COPYING.LIB. If not,
16# write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17# Boston, MA 02111-1307, USA.
28f540f4
RM
18
19#
20# Sub-makefile for inet portion of the library.
21#
22subdir := inet
23
e196b7dd
RM
24headers := netinet/ether.h netinet/in.h netinet/in_systm.h \
25 netinet/if_ether.h \
df4ef2ab 26 netinet/tcp.h netinet/ip.h $(wildcard arpa/*.h protocols/*.h) \
8f2ece69 27 aliases.h netinet/ip6.h netinet/icmp6.h bits/in.h
28f540f4 28
a68b0d31
UD
29distribute := netgroup.h
30
60c96635 31routines := htonl htons \
3d61b63c 32 inet_lnaof inet_mkadr \
5f0e6fc7
RM
33 inet_netof inet_ntoa inet_net herrno \
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 \
1f205a47 48 in6_addr getnameinfo if_index
28f540f4 49
6739da7f 50tests := htontest test_ifindex tst-ntoa tst-ether_aton
1522c368 51
28f540f4 52# No warnings about losing BSD code.
afd4eb37
UD
53CFLAGS-rcmd.c = -w
54CFLAGS-rexec.c = -w
55CFLAGS-ruserpass.c = -w
28f540f4
RM
56
57include ../Rules
67479a70
UD
58
59ifeq ($(have-thread-library),yes)
60
61CFLAGS-gethstbyad_r.c = -DUSE_NSCD=1
62CFLAGS-gethstbynm_r.c = -DUSE_NSCD=1
63CFLAGS-gethstbynm2_r.c = -DUSE_NSCD=1
64
65endif
ce85d65b
UD
66
67ifeq ($(build-static-nss),yes)
68CFLAGS += -DSTATIC_NSS
69endif