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