]> git.ipfire.org Git - thirdparty/glibc.git/blame - support/Makefile
support: Add <support/next_to_fault.h>
[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 \
cae87e64 35 next_to_fault \
c23de0aa 36 oom_error \
5840c75c 37 resolv_test \
c23de0aa 38 set_fortify_handler \
2714c5f3 39 support-xstat \
5707a64d 40 support_become_root \
2714c5f3 41 support_can_chroot \
91b6eb11 42 support_capture_subprocess \
2714c5f3 43 support_capture_subprocess_check \
d4165eed 44 support_chroot \
5707a64d 45 support_enter_network_namespace \
5840c75c
FW
46 support_format_address_family \
47 support_format_addrinfo \
48 support_format_dns_packet \
49 support_format_herrno \
50 support_format_hostent \
51 support_format_netent \
2714c5f3 52 support_isolate_in_subprocess \
5f0b8437 53 support_record_failure \
5840c75c 54 support_run_diff \
2714c5f3
FW
55 support_shared_allocate \
56 support_write_file_string \
c23de0aa 57 support_test_main \
5f0b8437 58 support_test_verify_impl \
c23de0aa
FW
59 temp_file \
60 write_message \
5840c75c 61 xaccept \
e9203023 62 xaccept4 \
c23de0aa 63 xasprintf \
5840c75c 64 xbind \
c23de0aa 65 xcalloc \
2714c5f3 66 xchroot \
ed3ea040 67 xclose \
5840c75c 68 xconnect \
1cc9e59a 69 xdlfcn \
91b6eb11 70 xdup2 \
5840c75c
FW
71 xfclose \
72 xfopen \
5f0b8437 73 xfork \
5840c75c
FW
74 xgetsockname \
75 xlisten \
c23de0aa 76 xmalloc \
5840c75c 77 xmemstream \
2714c5f3 78 xmkdir \
faf0e9c8 79 xmmap \
60149b28 80 xmprotect \
faf0e9c8 81 xmunmap \
2714c5f3 82 xopen \
91b6eb11 83 xpipe \
5840c75c 84 xpoll \
f8bf15fe
CD
85 xpthread_attr_destroy \
86 xpthread_attr_init \
87 xpthread_attr_setdetachstate \
88 xpthread_attr_setstacksize \
0edbf123 89 xpthread_attr_setguardsize \
c23de0aa
FW
90 xpthread_barrier_destroy \
91 xpthread_barrier_init \
92 xpthread_barrier_wait \
93 xpthread_cancel \
94 xpthread_check_return \
95 xpthread_cond_wait \
96 xpthread_create \
97 xpthread_detach \
98 xpthread_join \
faf0e9c8
FW
99 xpthread_mutex_consistent \
100 xpthread_mutex_destroy \
101 xpthread_mutex_init \
c23de0aa
FW
102 xpthread_mutex_lock \
103 xpthread_mutex_unlock \
faf0e9c8
FW
104 xpthread_mutexattr_destroy \
105 xpthread_mutexattr_init \
106 xpthread_mutexattr_setprotocol \
107 xpthread_mutexattr_setpshared \
108 xpthread_mutexattr_setrobust \
109 xpthread_mutexattr_settype \
5840c75c 110 xpthread_once \
faf8c066
CD
111 xpthread_rwlock_init \
112 xpthread_rwlock_rdlock \
faf8c066 113 xpthread_rwlock_unlock \
1ffe1ccb 114 xpthread_rwlock_wrlock \
faf8c066
CD
115 xpthread_rwlockattr_init \
116 xpthread_rwlockattr_setkind_np \
c23de0aa
FW
117 xpthread_sigmask \
118 xpthread_spin_lock \
119 xpthread_spin_unlock \
1ffe1ccb 120 xreadlink \
c23de0aa 121 xrealloc \
5840c75c
FW
122 xrecvfrom \
123 xsendto \
124 xsetsockopt \
5707a64d 125 xsocket \
5840c75c 126 xstrdup \
1ffe1ccb
FW
127 xstrndup \
128 xunlink \
5f0b8437 129 xwaitpid \
5840c75c 130 xwrite \
c23de0aa
FW
131
132libsupport-static-only-routines := $(libsupport-routines)
133# Only build one variant of the library.
134libsupport-inhibit-o := .os
135ifeq ($(build-shared),yes)
136libsupport-inhibit-o += .o
137endif
138
5f0b8437
FW
139tests = \
140 README-testing \
5707a64d 141 tst-support-namespace \
91b6eb11 142 tst-support_capture_subprocess \
f889e73f 143 tst-support_format_dns_packet \
5f0b8437 144 tst-support_record_failure \
1ffe1ccb 145 tst-xreadlink \
5f0b8437 146
ef83c83a 147ifeq ($(run-built-tests),yes)
5f0b8437
FW
148tests-special = \
149 $(objpfx)tst-support_record_failure-2.out
150
151$(objpfx)tst-support_record_failure-2.out: tst-support_record_failure-2.sh \
152 $(objpfx)tst-support_record_failure
153 $(SHELL) $< $(common-objpfx) '$(test-program-prefix-before-env)' \
154 '$(run-program-env)' '$(test-program-prefix-after-env)' \
155 > $@; \
156 $(evaluate-test)
ef83c83a 157endif
c23de0aa 158
f889e73f
FW
159$(objpfx)tst-support_format_dns_packet: $(common-objpfx)resolv/libresolv.so
160
c23de0aa 161include ../Rules