x86-64: Fold ifunc-sse4_1.h into wcsnlen.c
[glibc.git] / support / Makefile
blob20b0343ade0995013eb41e59d341ec3e2e69dae3
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 oom_error \
36 resolv_test \
37 set_fortify_handler \
38 support-xstat \
39 support_become_root \
40 support_can_chroot \
41 support_capture_subprocess \
42 support_capture_subprocess_check \
43 support_enter_network_namespace \
44 support_format_address_family \
45 support_format_addrinfo \
46 support_format_dns_packet \
47 support_format_herrno \
48 support_format_hostent \
49 support_format_netent \
50 support_isolate_in_subprocess \
51 support_record_failure \
52 support_run_diff \
53 support_shared_allocate \
54 support_write_file_string \
55 support_test_main \
56 support_test_verify_impl \
57 temp_file \
58 write_message \
59 xaccept \
60 xaccept4 \
61 xasprintf \
62 xbind \
63 xcalloc \
64 xchroot \
65 xclose \
66 xconnect \
67 xdup2 \
68 xfclose \
69 xfopen \
70 xfork \
71 xgetsockname \
72 xlisten \
73 xmalloc \
74 xmemstream \
75 xmkdir \
76 xmmap \
77 xmunmap \
78 xopen \
79 xpipe \
80 xpoll \
81 xpthread_attr_destroy \
82 xpthread_attr_init \
83 xpthread_attr_setdetachstate \
84 xpthread_attr_setstacksize \
85 xpthread_barrier_destroy \
86 xpthread_barrier_init \
87 xpthread_barrier_wait \
88 xpthread_cancel \
89 xpthread_check_return \
90 xpthread_cond_wait \
91 xpthread_create \
92 xpthread_detach \
93 xpthread_join \
94 xpthread_mutex_consistent \
95 xpthread_mutex_destroy \
96 xpthread_mutex_init \
97 xpthread_mutex_lock \
98 xpthread_mutex_unlock \
99 xpthread_mutexattr_destroy \
100 xpthread_mutexattr_init \
101 xpthread_mutexattr_setprotocol \
102 xpthread_mutexattr_setpshared \
103 xpthread_mutexattr_setrobust \
104 xpthread_mutexattr_settype \
105 xpthread_once \
106 xpthread_sigmask \
107 xpthread_spin_lock \
108 xpthread_spin_unlock \
109 xrealloc \
110 xrecvfrom \
111 xsendto \
112 xsetsockopt \
113 xsocket \
114 xstrdup \
115 xwaitpid \
116 xwrite \
118 libsupport-static-only-routines := $(libsupport-routines)
119 # Only build one variant of the library.
120 libsupport-inhibit-o := .os
121 ifeq ($(build-shared),yes)
122 libsupport-inhibit-o += .o
123 endif
125 tests = \
126 README-testing \
127 tst-support-namespace \
128 tst-support_capture_subprocess \
129 tst-support_format_dns_packet \
130 tst-support_record_failure \
132 ifeq ($(run-built-tests),yes)
133 tests-special = \
134 $(objpfx)tst-support_record_failure-2.out
136 $(objpfx)tst-support_record_failure-2.out: tst-support_record_failure-2.sh \
137 $(objpfx)tst-support_record_failure
138 $(SHELL) $< $(common-objpfx) '$(test-program-prefix-before-env)' \
139 '$(run-program-env)' '$(test-program-prefix-after-env)' \
140 > $@; \
141 $(evaluate-test)
142 endif
144 $(objpfx)tst-support_format_dns_packet: $(common-objpfx)resolv/libresolv.so
146 include ../Rules