uk_UA: Add alternative month names (bug 10871).
[glibc.git] / support / Makefile
blob1bda81e55e519a57cd8b8c6838277649c2045c69
1 # Makefile for support library, used only at build and test time
2 # Copyright (C) 2016-2018 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-xfstat \
40 support-xstat \
41 support_become_root \
42 support_can_chroot \
43 support_capture_subprocess \
44 support_capture_subprocess_check \
45 support_chroot \
46 support_enter_mount_namespace \
47 support_enter_network_namespace \
48 support_format_address_family \
49 support_format_addrinfo \
50 support_format_dns_packet \
51 support_format_herrno \
52 support_format_hostent \
53 support_format_netent \
54 support_isolate_in_subprocess \
55 support_record_failure \
56 support_run_diff \
57 support_shared_allocate \
58 support_test_compare_failure \
59 support_write_file_string \
60 support_test_main \
61 support_test_verify_impl \
62 temp_file \
63 write_message \
64 xaccept \
65 xaccept4 \
66 xasprintf \
67 xbind \
68 xcalloc \
69 xchroot \
70 xclose \
71 xconnect \
72 xdlfcn \
73 xdup2 \
74 xfclose \
75 xfopen \
76 xfork \
77 xftruncate \
78 xgetsockname \
79 xlisten \
80 xlseek \
81 xmalloc \
82 xmemstream \
83 xmkdir \
84 xmmap \
85 xmprotect \
86 xmunmap \
87 xopen \
88 xpipe \
89 xpoll \
90 xpthread_attr_destroy \
91 xpthread_attr_init \
92 xpthread_attr_setdetachstate \
93 xpthread_attr_setguardsize \
94 xpthread_attr_setstacksize \
95 xpthread_barrier_destroy \
96 xpthread_barrier_init \
97 xpthread_barrier_wait \
98 xpthread_cancel \
99 xpthread_check_return \
100 xpthread_cond_wait \
101 xpthread_create \
102 xpthread_detach \
103 xpthread_join \
104 xpthread_mutex_consistent \
105 xpthread_mutex_destroy \
106 xpthread_mutex_init \
107 xpthread_mutex_lock \
108 xpthread_mutex_unlock \
109 xpthread_mutexattr_destroy \
110 xpthread_mutexattr_init \
111 xpthread_mutexattr_setprotocol \
112 xpthread_mutexattr_setpshared \
113 xpthread_mutexattr_setrobust \
114 xpthread_mutexattr_settype \
115 xpthread_once \
116 xpthread_rwlock_init \
117 xpthread_rwlock_rdlock \
118 xpthread_rwlock_unlock \
119 xpthread_rwlock_wrlock \
120 xpthread_rwlockattr_init \
121 xpthread_rwlockattr_setkind_np \
122 xpthread_sigmask \
123 xpthread_spin_lock \
124 xpthread_spin_unlock \
125 xraise \
126 xreadlink \
127 xrealloc \
128 xrecvfrom \
129 xsendto \
130 xsetsockopt \
131 xsigaction \
132 xsignal \
133 xsocket \
134 xstrdup \
135 xstrndup \
136 xsysconf \
137 xunlink \
138 xwaitpid \
139 xwrite \
141 libsupport-static-only-routines := $(libsupport-routines)
142 # Only build one variant of the library.
143 libsupport-inhibit-o := .os
144 ifeq ($(build-shared),yes)
145 libsupport-inhibit-o += .o
146 endif
148 tests = \
149 README-testing \
150 tst-support-namespace \
151 tst-support_capture_subprocess \
152 tst-support_format_dns_packet \
153 tst-support_record_failure \
154 tst-test_compare \
155 tst-xreadlink \
157 ifeq ($(run-built-tests),yes)
158 tests-special = \
159 $(objpfx)tst-support_record_failure-2.out
161 $(objpfx)tst-support_record_failure-2.out: tst-support_record_failure-2.sh \
162 $(objpfx)tst-support_record_failure
163 $(SHELL) $< $(common-objpfx) '$(test-program-prefix-before-env)' \
164 '$(run-program-env)' '$(test-program-prefix-after-env)' \
165 > $@; \
166 $(evaluate-test)
167 endif
169 $(objpfx)tst-support_format_dns_packet: $(common-objpfx)resolv/libresolv.so
171 include ../Rules