]> git.ipfire.org Git - thirdparty/glibc.git/blob - rt/Makefile
Linux: Move aio_write, aio_write64 into libc
[thirdparty/glibc.git] / rt / Makefile
1 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
2 # This file is part of the GNU C Library.
3
4 # The GNU C Library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License, or (at your option) any later version.
8
9 # The GNU C Library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
13
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with the GNU C Library; if not, see
16 # <https://www.gnu.org/licenses/>.
17
18 #
19 # Sub-makefile for real-time portion of the library.
20 #
21 subdir := rt
22
23 include ../Makeconfig
24
25 headers := aio.h mqueue.h bits/mqueue.h bits/mqueue2.h
26
27 routines = \
28 shm_open \
29 shm_unlink \
30
31 librt-routines = \
32 librt-compat \
33 lio_listio \
34 lio_listio64 \
35 mq_close \
36 mq_getattr \
37 mq_notify \
38 mq_open \
39 mq_receive \
40 mq_send \
41 mq_setattr \
42 mq_timedreceive \
43 mq_timedsend \
44 mq_unlink \
45 timer_create \
46 timer_delete \
47 timer_getoverr \
48 timer_gettime \
49 timer_settime \
50
51 librt-shared-only-routines = librt-compat
52
53 $(librt-routines-var) += \
54 aio_cancel \
55 aio_error \
56 aio_fsync \
57 aio_misc \
58 aio_notify \
59 aio_read \
60 aio_read64 \
61 aio_return \
62 aio_sigqueue \
63 aio_suspend \
64 aio_write \
65 aio_write64 \
66
67 tests := tst-shm tst-timer tst-timer2 \
68 tst-aio tst-aio64 tst-aio2 tst-aio3 tst-aio4 tst-aio5 tst-aio6 \
69 tst-aio7 tst-aio8 tst-aio9 tst-aio10 \
70 tst-mqueue1 tst-mqueue2 tst-mqueue3 tst-mqueue4 \
71 tst-mqueue5 tst-mqueue6 tst-mqueue7 tst-mqueue8 tst-mqueue9 \
72 tst-timer3 tst-timer4 tst-timer5 \
73 tst-cpuclock2 tst-cputimer1 tst-cputimer2 tst-cputimer3 \
74 tst-shm-cancel \
75 tst-mqueue10
76 tests-internal := tst-timer-sigmask
77
78 tests-time64 := \
79 tst-aio6-time64 \
80 tst-cpuclock2-time64 \
81 tst-mqueue1-time64 \
82 tst-mqueue2-time64 \
83 tst-mqueue4-time64 \
84 tst-mqueue8-time64 \
85 tst-mqueue10-time64 \
86 tst-timer4-time64
87
88 extra-libs := librt
89 extra-libs-others := $(extra-libs)
90
91 include ../Rules
92
93 CFLAGS-aio_suspend.c += -fexceptions
94 CFLAGS-mq_timedreceive.c += -fexceptions -fasynchronous-unwind-tables
95 CFLAGS-mq_timedsend.c += -fexceptions -fasynchronous-unwind-tables
96
97 LDFLAGS-rt.so = -Wl,--enable-new-dtags,-z,nodelete
98
99 $(objpfx)librt.so: $(shared-thread-library)
100
101 ifeq (yes,$(build-shared))
102 $(addprefix $(objpfx),$(tests) $(tests-internal)): \
103 $(objpfx)librt.so $(shared-thread-library)
104 else
105 $(addprefix $(objpfx),$(tests)) $(tests-internal): \
106 $(objpfx)librt.a $(static-thread-library)
107 endif
108
109 tst-mqueue7-ARGS = -- $(host-test-program-cmd)