source: branches/libc-0.6/src/libctests/glibc/inet/Makefile

Last change on this file was 2036, checked in by bird, 20 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 3.4 KB
Line 
1# Copyright (C) 1991-2002, 2003, 2004 Free Software Foundation, Inc.
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 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.
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# Lesser General Public License for more details.
13
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.
18
19#
20# Sub-makefile for inet portion of the library.
21#
22subdir := inet
23
24headers := netinet/ether.h netinet/in.h netinet/in_systm.h \
25 netinet/if_ether.h netinet/igmp.h \
26 netinet/tcp.h netinet/ip.h $(wildcard arpa/*.h protocols/*.h) \
27 aliases.h ifaddrs.h netinet/ip6.h netinet/icmp6.h bits/in.h
28
29distribute := netgroup.h
30
31routines := htonl htons \
32 inet_lnaof inet_mkadr \
33 inet_netof inet_ntoa inet_net herrno herrno-loc \
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 ifaddrs inet6_option \
49 getipv4sourcefilter setipv4sourcefilter \
50 getsourcefilter setsourcefilter
51
52aux := check_pf ifreq
53
54tests := htontest test_ifindex tst-ntoa tst-ether_aton tst-network \
55 tst-gethnm test-ifaddrs bug-if1
56
57include ../Rules
58
59ifeq ($(have-thread-library),yes)
60
61CFLAGS-gethstbyad_r.c = -DUSE_NSCD=1 -fexceptions
62CFLAGS-gethstbyad.c = -fexceptions
63CFLAGS-gethstbynm_r.c = -DUSE_NSCD=1 -fexceptions
64CFLAGS-gethstbynm.c = -fexceptions
65CFLAGS-gethstbynm2_r.c = -DUSE_NSCD=1 -fexceptions
66CFLAGS-gethstbynm2.c = -fexceptions
67CFLAGS-gethstent_r.c = -fexceptions
68CFLAGS-gethstent.c = -fexceptions
69CFLAGS-rcmd.c = -fexceptions
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
82CFLAGS-getprtent_r.c = -fexceptions
83CFLAGS-getprtent.c = -fexceptions
84CFLAGS-either_ntoh.c = -fexceptions
85CFLAGS-either_hton.c = -fexceptions
86CFLAGS-getnetgrent.c = -fexceptions
87CFLAGS-getnetgrent_r.c = -fexceptions
88
89endif
90
91ifeq ($(build-static-nss),yes)
92CFLAGS += -DSTATIC_NSS
93endif
94
95ifeq (yes,$(build-static-nss))
96otherlibs += $(nssobjdir)/libnss_files.a $(resolvobjdir)/libnss_dns.a \
97 $(resolvobjdir)/libresolv.a
98endif
Note: See TracBrowser for help on using the repository browser.