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/>.
23 extra-libs
:= libsupport
24 extra-libs-others
= $(extra-libs
)
25 extra-libs-noinstall
:= $(extra-libs
)
27 libsupport-routines
= \
42 support_capture_subprocess \
43 support_capture_subprocess_check \
45 support_enter_network_namespace \
46 support_format_address_family \
47 support_format_addrinfo \
48 support_format_dns_packet \
49 support_format_herrno \
50 support_format_hostent \
51 support_format_netent \
52 support_isolate_in_subprocess \
53 support_record_failure \
55 support_shared_allocate \
56 support_write_file_string \
58 support_test_verify_impl \
85 xpthread_attr_destroy \
87 xpthread_attr_setdetachstate \
88 xpthread_attr_setstacksize \
89 xpthread_attr_setguardsize \
90 xpthread_barrier_destroy \
91 xpthread_barrier_init \
92 xpthread_barrier_wait \
94 xpthread_check_return \
99 xpthread_mutex_consistent \
100 xpthread_mutex_destroy \
101 xpthread_mutex_init \
102 xpthread_mutex_lock \
103 xpthread_mutex_unlock \
104 xpthread_mutexattr_destroy \
105 xpthread_mutexattr_init \
106 xpthread_mutexattr_setprotocol \
107 xpthread_mutexattr_setpshared \
108 xpthread_mutexattr_setrobust \
109 xpthread_mutexattr_settype \
111 xpthread_rwlock_init \
112 xpthread_rwlock_rdlock \
113 xpthread_rwlock_unlock \
114 xpthread_rwlock_wrlock \
115 xpthread_rwlockattr_init \
116 xpthread_rwlockattr_setkind_np \
119 xpthread_spin_unlock \
132 libsupport-static-only-routines
:= $(libsupport-routines
)
133 # Only build one variant of the library.
134 libsupport-inhibit-o
:= .os
135 ifeq ($(build-shared
),yes
)
136 libsupport-inhibit-o
+= .o
141 tst-support-namespace \
142 tst-support_capture_subprocess \
143 tst-support_format_dns_packet \
144 tst-support_record_failure \
147 ifeq ($(run-built-tests
),yes
)
149 $(objpfx
)tst-support_record_failure-2.out
151 $(objpfx
)tst-support_record_failure-2.out
: tst-support_record_failure-2.sh \
152 $(objpfx
)tst-support_record_failure
153 $(SHELL
) $< $(common-objpfx
) '$(test-program-prefix-before-env)' \
154 '$(run-program-env)' '$(test-program-prefix-after-env)' \
159 $(objpfx
)tst-support_format_dns_packet
: $(common-objpfx
)resolv
/libresolv.so