Use libm_alias_float for aarch64.
[glibc.git] / support / Makefile
blob384fecb65a217b4a1a023f743233e29d6886de14
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_write_file_string \
58 support_test_main \
59 support_test_verify_impl \
60 temp_file \
61 write_message \
62 xaccept \
63 xaccept4 \
64 xasprintf \
65 xbind \
66 xcalloc \
67 xchroot \
68 xclose \
69 xconnect \
70 xdlfcn \
71 xdup2 \
72 xfclose \
73 xfopen \
74 xfork \
75 xgetsockname \
76 xlisten \
77 xmalloc \
78 xmemstream \
79 xmkdir \
80 xmmap \
81 xmprotect \
82 xmunmap \
83 xopen \
84 xpipe \
85 xpoll \
86 xpthread_attr_destroy \
87 xpthread_attr_init \
88 xpthread_attr_setdetachstate \
89 xpthread_attr_setstacksize \
90 xpthread_attr_setguardsize \
91 xpthread_barrier_destroy \
92 xpthread_barrier_init \
93 xpthread_barrier_wait \
94 xpthread_cancel \
95 xpthread_check_return \
96 xpthread_cond_wait \
97 xpthread_create \
98 xpthread_detach \
99 xpthread_join \
100 xpthread_mutex_consistent \
101 xpthread_mutex_destroy \
102 xpthread_mutex_init \
103 xpthread_mutex_lock \
104 xpthread_mutex_unlock \
105 xpthread_mutexattr_destroy \
106 xpthread_mutexattr_init \
107 xpthread_mutexattr_setprotocol \
108 xpthread_mutexattr_setpshared \
109 xpthread_mutexattr_setrobust \
110 xpthread_mutexattr_settype \
111 xpthread_once \
112 xpthread_rwlock_init \
113 xpthread_rwlock_rdlock \
114 xpthread_rwlock_unlock \
115 xpthread_rwlock_wrlock \
116 xpthread_rwlockattr_init \
117 xpthread_rwlockattr_setkind_np \
118 xpthread_sigmask \
119 xpthread_spin_lock \
120 xpthread_spin_unlock \
121 xreadlink \
122 xrealloc \
123 xrecvfrom \
124 xsendto \
125 xsetsockopt \
126 xsocket \
127 xstrdup \
128 xstrndup \
129 xunlink \
130 xwaitpid \
131 xwrite \
133 libsupport-static-only-routines := $(libsupport-routines)
134 # Only build one variant of the library.
135 libsupport-inhibit-o := .os
136 ifeq ($(build-shared),yes)
137 libsupport-inhibit-o += .o
138 endif
140 tests = \
141 README-testing \
142 tst-support-namespace \
143 tst-support_capture_subprocess \
144 tst-support_format_dns_packet \
145 tst-support_record_failure \
146 tst-xreadlink \
148 ifeq ($(run-built-tests),yes)
149 tests-special = \
150 $(objpfx)tst-support_record_failure-2.out
152 $(objpfx)tst-support_record_failure-2.out: tst-support_record_failure-2.sh \
153 $(objpfx)tst-support_record_failure
154 $(SHELL) $< $(common-objpfx) '$(test-program-prefix-before-env)' \
155 '$(run-program-env)' '$(test-program-prefix-after-env)' \
156 > $@; \
157 $(evaluate-test)
158 endif
160 $(objpfx)tst-support_format_dns_packet: $(common-objpfx)resolv/libresolv.so
162 include ../Rules