]> git.ipfire.org Git - thirdparty/glibc.git/blame - support/Makefile
Assume that accept4 is always available and works
[thirdparty/glibc.git] / support / Makefile
CommitLineData
c23de0aa 1# Makefile for support library, used only at build and test time
bfff8b1b 2# Copyright (C) 2016-2017 Free Software Foundation, Inc.
c23de0aa
FW
3# This file is part of the GNU C Library.
4
5# The GNU C Library is free software; you can redistribute it and/or
6# modify it under the terms of the GNU Lesser General Public
7# License as published by the Free Software Foundation; either
8# version 2.1 of the License, or (at your option) any later version.
9
10# The GNU C Library is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13# Lesser General Public License for more details.
14
15# You should have received a copy of the GNU Lesser General Public
16# License along with the GNU C Library; if not, see
17# <http://www.gnu.org/licenses/>.
18
19subdir := support
20
21include ../Makeconfig
22
23extra-libs := libsupport
24extra-libs-others = $(extra-libs)
25extra-libs-noinstall := $(extra-libs)
26
27libsupport-routines = \
28 check \
5840c75c
FW
29 check_addrinfo \
30 check_dns_packet \
31 check_hostent \
32 check_netent \
c23de0aa
FW
33 delayed_exit \
34 ignore_stderr \
35 oom_error \
5840c75c 36 resolv_test \
c23de0aa 37 set_fortify_handler \
5707a64d
FW
38 support_become_root \
39 support_enter_network_namespace \
5840c75c
FW
40 support_format_address_family \
41 support_format_addrinfo \
42 support_format_dns_packet \
43 support_format_herrno \
44 support_format_hostent \
45 support_format_netent \
5f0b8437 46 support_record_failure \
5840c75c 47 support_run_diff \
c23de0aa 48 support_test_main \
5f0b8437 49 support_test_verify_impl \
c23de0aa
FW
50 temp_file \
51 write_message \
5840c75c 52 xaccept \
e9203023 53 xaccept4 \
c23de0aa 54 xasprintf \
5840c75c 55 xbind \
c23de0aa 56 xcalloc \
ed3ea040 57 xclose \
5840c75c
FW
58 xconnect \
59 xfclose \
60 xfopen \
5f0b8437 61 xfork \
5840c75c
FW
62 xgetsockname \
63 xlisten \
c23de0aa 64 xmalloc \
5840c75c 65 xmemstream \
faf0e9c8
FW
66 xmmap \
67 xmunmap \
5840c75c 68 xpoll \
f8bf15fe
CD
69 xpthread_attr_destroy \
70 xpthread_attr_init \
71 xpthread_attr_setdetachstate \
72 xpthread_attr_setstacksize \
c23de0aa
FW
73 xpthread_barrier_destroy \
74 xpthread_barrier_init \
75 xpthread_barrier_wait \
76 xpthread_cancel \
77 xpthread_check_return \
78 xpthread_cond_wait \
79 xpthread_create \
80 xpthread_detach \
81 xpthread_join \
faf0e9c8
FW
82 xpthread_mutex_consistent \
83 xpthread_mutex_destroy \
84 xpthread_mutex_init \
c23de0aa
FW
85 xpthread_mutex_lock \
86 xpthread_mutex_unlock \
faf0e9c8
FW
87 xpthread_mutexattr_destroy \
88 xpthread_mutexattr_init \
89 xpthread_mutexattr_setprotocol \
90 xpthread_mutexattr_setpshared \
91 xpthread_mutexattr_setrobust \
92 xpthread_mutexattr_settype \
5840c75c 93 xpthread_once \
c23de0aa
FW
94 xpthread_sigmask \
95 xpthread_spin_lock \
96 xpthread_spin_unlock \
97 xrealloc \
5840c75c
FW
98 xrecvfrom \
99 xsendto \
100 xsetsockopt \
5707a64d 101 xsocket \
5840c75c 102 xstrdup \
5f0b8437 103 xwaitpid \
5840c75c 104 xwrite \
c23de0aa
FW
105
106libsupport-static-only-routines := $(libsupport-routines)
107# Only build one variant of the library.
108libsupport-inhibit-o := .os
109ifeq ($(build-shared),yes)
110libsupport-inhibit-o += .o
111endif
112
5f0b8437
FW
113tests = \
114 README-testing \
5707a64d 115 tst-support-namespace \
f889e73f 116 tst-support_format_dns_packet \
5f0b8437
FW
117 tst-support_record_failure \
118
ef83c83a 119ifeq ($(run-built-tests),yes)
5f0b8437
FW
120tests-special = \
121 $(objpfx)tst-support_record_failure-2.out
122
123$(objpfx)tst-support_record_failure-2.out: tst-support_record_failure-2.sh \
124 $(objpfx)tst-support_record_failure
125 $(SHELL) $< $(common-objpfx) '$(test-program-prefix-before-env)' \
126 '$(run-program-env)' '$(test-program-prefix-after-env)' \
127 > $@; \
128 $(evaluate-test)
ef83c83a 129endif
c23de0aa 130
f889e73f
FW
131$(objpfx)tst-support_format_dns_packet: $(common-objpfx)resolv/libresolv.so
132
c23de0aa 133include ../Rules