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