Blame rt/Makefile

Packit 6c4009
# Copyright (C) 1997-2018 Free Software Foundation, Inc.
Packit 6c4009
# This file is part of the GNU C Library.
Packit 6c4009
Packit 6c4009
# The GNU C Library is free software; you can redistribute it and/or
Packit 6c4009
# modify it under the terms of the GNU Lesser General Public
Packit 6c4009
# License as published by the Free Software Foundation; either
Packit 6c4009
# version 2.1 of the License, or (at your option) any later version.
Packit 6c4009
Packit 6c4009
# The GNU C Library is distributed in the hope that it will be useful,
Packit 6c4009
# but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 6c4009
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 6c4009
# Lesser General Public License for more details.
Packit 6c4009
Packit 6c4009
# You should have received a copy of the GNU Lesser General Public
Packit 6c4009
# License along with the GNU C Library; if not, see
Packit 6c4009
# <http://www.gnu.org/licenses/>.
Packit 6c4009
Packit 6c4009
#
Packit 6c4009
#	Sub-makefile for real-time portion of the library.
Packit 6c4009
#
Packit 6c4009
subdir	:= rt
Packit 6c4009
Packit 6c4009
include ../Makeconfig
Packit 6c4009
Packit 6c4009
headers	:= aio.h mqueue.h bits/mqueue.h bits/mqueue2.h
Packit 6c4009
Packit 6c4009
aio-routines   := aio_cancel aio_error aio_fsync aio_misc aio_read	\
Packit 6c4009
		  aio_read64 aio_return aio_suspend aio_write		\
Packit 6c4009
		  aio_write64 lio_listio lio_listio64 aio_sigqueue	\
Packit 6c4009
		  aio_notify
Packit 6c4009
timer-routines := timer_create timer_delete timer_getoverr		\
Packit 6c4009
		  timer_gettime timer_settime
Packit 6c4009
shm-routines   := shm_open shm_unlink
Packit 6c4009
mq-routines    := mq_open mq_close mq_unlink mq_getattr mq_setattr	\
Packit 6c4009
		  mq_notify mq_send mq_receive mq_timedsend		\
Packit 6c4009
		  mq_timedreceive
Packit 6c4009
Packit 6c4009
librt-routines = $(aio-routines) \
Packit 6c4009
		 $(timer-routines) \
Packit Service f5e169
		 $(shm-routines) $(mq-routines)
Packit 6c4009
Packit Service f5e169
tests := tst-shm tst-timer tst-timer2 \
Packit 6c4009
	 tst-aio tst-aio64 tst-aio2 tst-aio3 tst-aio4 tst-aio5 tst-aio6 \
Packit 6c4009
	 tst-aio7 tst-aio8 tst-aio9 tst-aio10 \
Packit 6c4009
	 tst-mqueue1 tst-mqueue2 tst-mqueue3 tst-mqueue4 \
Packit 6c4009
	 tst-mqueue5 tst-mqueue6 tst-mqueue7 tst-mqueue8 tst-mqueue9 \
Packit 6c4009
	 tst-timer3 tst-timer4 tst-timer5 \
Packit Service f5e169
	 tst-cpuclock2 tst-cputimer1 tst-cputimer2 tst-cputimer3 \
Packit Service f5e169
	 tst-shm-cancel
Packit 6c4009
Packit 6c4009
extra-libs := librt
Packit 6c4009
extra-libs-others := $(extra-libs)
Packit 6c4009
Packit 6c4009
include ../Rules
Packit 6c4009
Packit 6c4009
CFLAGS-aio_suspend.c += -fexceptions
Packit 6c4009
CFLAGS-mq_timedreceive.c += -fexceptions -fasynchronous-unwind-tables
Packit 6c4009
CFLAGS-mq_timedsend.c += -fexceptions -fasynchronous-unwind-tables
Packit 6c4009
CFLAGS-clock_nanosleep.c += -fexceptions -fasynchronous-unwind-tables
Packit 6c4009
CFLAGS-librt-cancellation.c += -fasynchronous-unwind-tables
Packit 6c4009
Packit 6c4009
LDFLAGS-rt.so = -Wl,--enable-new-dtags,-z,nodelete
Packit 6c4009
Packit 6c4009
$(objpfx)librt.so: $(shared-thread-library)
Packit 6c4009
Packit 6c4009
ifeq (yes,$(build-shared))
Packit 6c4009
$(addprefix $(objpfx),$(tests)): $(objpfx)librt.so $(shared-thread-library)
Packit 6c4009
else
Packit 6c4009
$(addprefix $(objpfx),$(tests)): $(objpfx)librt.a $(static-thread-library)
Packit 6c4009
endif
Packit 6c4009
Packit 6c4009
tst-mqueue7-ARGS = -- $(host-test-program-cmd)