S390: Move utf8-utf32-z9.c to multiarch folder and use s390_libc_ifunc_expr macro.
[glibc.git] / support / Makefile
blob38dbd832e9fe757122906139d1db709fa47c45a0
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_become_root \
39 support_enter_network_namespace \
40 support_format_address_family \
41 support_format_addrinfo \
42 support_format_dns_packet \
43 support_format_herrno \
44 support_format_hostent \
45 support_format_netent \
46 support_record_failure \
47 support_run_diff \
48 support_test_main \
49 support_test_verify_impl \
50 temp_file \
51 write_message \
52 xaccept \
53 xaccept4 \
54 xasprintf \
55 xbind \
56 xcalloc \
57 xclose \
58 xconnect \
59 xfclose \
60 xfopen \
61 xfork \
62 xgetsockname \
63 xlisten \
64 xmalloc \
65 xmemstream \
66 xmmap \
67 xmunmap \
68 xpoll \
69 xpthread_attr_destroy \
70 xpthread_attr_init \
71 xpthread_attr_setdetachstate \
72 xpthread_attr_setstacksize \
73 xpthread_barrier_destroy \
74 xpthread_barrier_init \
75 xpthread_barrier_wait \
76 xpthread_cancel \
77 xpthread_check_return \
78 xpthread_cond_wait \
79 xpthread_create \
80 xpthread_detach \
81 xpthread_join \
82 xpthread_mutex_consistent \
83 xpthread_mutex_destroy \
84 xpthread_mutex_init \
85 xpthread_mutex_lock \
86 xpthread_mutex_unlock \
87 xpthread_mutexattr_destroy \
88 xpthread_mutexattr_init \
89 xpthread_mutexattr_setprotocol \
90 xpthread_mutexattr_setpshared \
91 xpthread_mutexattr_setrobust \
92 xpthread_mutexattr_settype \
93 xpthread_once \
94 xpthread_sigmask \
95 xpthread_spin_lock \
96 xpthread_spin_unlock \
97 xrealloc \
98 xrecvfrom \
99 xsendto \
100 xsetsockopt \
101 xsocket \
102 xstrdup \
103 xwaitpid \
104 xwrite \
106 libsupport-static-only-routines := $(libsupport-routines)
107 # Only build one variant of the library.
108 libsupport-inhibit-o := .os
109 ifeq ($(build-shared),yes)
110 libsupport-inhibit-o += .o
111 endif
113 tests = \
114 README-testing \
115 tst-support-namespace \
116 tst-support_format_dns_packet \
117 tst-support_record_failure \
119 ifeq ($(run-built-tests),yes)
120 tests-special = \
121 $(objpfx)tst-support_record_failure-2.out
123 $(objpfx)tst-support_record_failure-2.out: tst-support_record_failure-2.sh \
124 $(objpfx)tst-support_record_failure
125 $(SHELL) $< $(common-objpfx) '$(test-program-prefix-before-env)' \
126 '$(run-program-env)' '$(test-program-prefix-after-env)' \
127 > $@; \
128 $(evaluate-test)
129 endif
131 $(objpfx)tst-support_format_dns_packet: $(common-objpfx)resolv/libresolv.so
133 include ../Rules