x86-64: Remove sysdeps/x86_64/fpu/s_sinf.S
[glibc.git] / support / Makefile
blobbfde79333e9f38e931a852e3835ea61c293af20d
1 # Makefile for support library, used only at build and test time
2 # Copyright (C) 2016-2017 Free Software Foundation, Inc.
3 # This file is part of the GNU C Library.
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.
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.
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/>.
19 subdir := support
21 include ../Makeconfig
23 extra-libs := libsupport
24 extra-libs-others = $(extra-libs)
25 extra-libs-noinstall := $(extra-libs)
27 libsupport-routines = \
28 check \
29 check_addrinfo \
30 check_dns_packet \
31 check_hostent \
32 check_netent \
33 delayed_exit \
34 ignore_stderr \
35 next_to_fault \
36 oom_error \
37 resolv_test \
38 set_fortify_handler \
39 support-xstat \
40 support_become_root \
41 support_can_chroot \
42 support_capture_subprocess \
43 support_capture_subprocess_check \
44 support_chroot \
45 support_enter_mount_namespace \
46 support_enter_network_namespace \
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 \
53 support_isolate_in_subprocess \
54 support_record_failure \
55 support_run_diff \
56 support_shared_allocate \
57 support_test_compare_failure \
58 support_write_file_string \
59 support_test_main \
60 support_test_verify_impl \
61 temp_file \
62 write_message \
63 xaccept \
64 xaccept4 \
65 xasprintf \
66 xbind \
67 xcalloc \
68 xchroot \
69 xclose \
70 xconnect \
71 xdlfcn \
72 xdup2 \
73 xfclose \
74 xfopen \
75 xfork \
76 xgetsockname \
77 xlisten \
78 xmalloc \
79 xmemstream \
80 xmkdir \
81 xmmap \
82 xmprotect \
83 xmunmap \
84 xopen \
85 xpipe \
86 xpoll \
87 xpthread_attr_destroy \
88 xpthread_attr_init \
89 xpthread_attr_setdetachstate \
90 xpthread_attr_setguardsize \
91 xpthread_attr_setstacksize \
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 \
101 xpthread_mutex_consistent \
102 xpthread_mutex_destroy \
103 xpthread_mutex_init \
104 xpthread_mutex_lock \
105 xpthread_mutex_unlock \
106 xpthread_mutexattr_destroy \
107 xpthread_mutexattr_init \
108 xpthread_mutexattr_setprotocol \
109 xpthread_mutexattr_setpshared \
110 xpthread_mutexattr_setrobust \
111 xpthread_mutexattr_settype \
112 xpthread_once \
113 xpthread_rwlock_init \
114 xpthread_rwlock_rdlock \
115 xpthread_rwlock_unlock \
116 xpthread_rwlock_wrlock \
117 xpthread_rwlockattr_init \
118 xpthread_rwlockattr_setkind_np \
119 xpthread_sigmask \
120 xpthread_spin_lock \
121 xpthread_spin_unlock \
122 xraise \
123 xreadlink \
124 xrealloc \
125 xrecvfrom \
126 xsendto \
127 xsetsockopt \
128 xsigaction \
129 xsignal \
130 xsocket \
131 xstrdup \
132 xstrndup \
133 xsysconf \
134 xunlink \
135 xwaitpid \
136 xwrite \
138 libsupport-static-only-routines := $(libsupport-routines)
139 # Only build one variant of the library.
140 libsupport-inhibit-o := .os
141 ifeq ($(build-shared),yes)
142 libsupport-inhibit-o += .o
143 endif
145 tests = \
146 README-testing \
147 tst-support-namespace \
148 tst-support_capture_subprocess \
149 tst-support_format_dns_packet \
150 tst-support_record_failure \
151 tst-test_compare \
152 tst-xreadlink \
154 ifeq ($(run-built-tests),yes)
155 tests-special = \
156 $(objpfx)tst-support_record_failure-2.out
158 $(objpfx)tst-support_record_failure-2.out: tst-support_record_failure-2.sh \
159 $(objpfx)tst-support_record_failure
160 $(SHELL) $< $(common-objpfx) '$(test-program-prefix-before-env)' \
161 '$(run-program-env)' '$(test-program-prefix-after-env)' \
162 > $@; \
163 $(evaluate-test)
164 endif
166 $(objpfx)tst-support_format_dns_packet: $(common-objpfx)resolv/libresolv.so
168 include ../Rules