5
5
# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
8
CSRC := allocrtsig.c killpg.c raise.c sigaction.c sigaddset.c sigandset.c \
10
CSRC-y := allocrtsig.c killpg.c raise.c sigaction.c sigaddset.c sigandset.c \
9
11
sigblock.c sigdelset.c sigempty.c sigfillset.c siggetmask.c \
10
sigintr.c sigisempty.c sigismem.c sigjmp.c signal.c \
12
sigisempty.c sigismem.c sigjmp.c signal.c \
11
13
sigorset.c sigpause.c sigsetmask.c sigsetops.c sigwait.c
12
ifeq ($(UCLIBC_HAS_OBSOLETE_BSD_SIGNAL),y)
13
CSRC += sighold.c sigignore.c sigrelse.c sigset.c
15
ifeq ($(UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL),y)
14
CSRC-$(UCLIBC_HAS_OBSOLETE_BSD_SIGNAL) += \
15
sighold.c sigignore.c sigrelse.c sigset.c
16
CSRC-$(UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL) += sysv_signal.c
17
CSRC-$(UCLIBC_SUSV4_LEGACY) += sigintr.c
19
ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y)
20
CSRC-y:=$(filter-out raise.c sigaction.c,$(CSRC-y))
19
23
ifneq ($(strip $(ARCH_OBJS)),)
20
CSRC := $(filter-out $(notdir $(ARCH_OBJS:.o=.c)),$(CSRC))
24
CSRC-y := $(filter-out $(notdir $(ARCH_OBJS:.o=.c)),$(CSRC-y))
23
27
SIGNAL_DIR := $(top_srcdir)libc/signal
24
28
SIGNAL_OUT := $(top_builddir)libc/signal
26
SIGNAL_SRC := $(patsubst %.c,$(SIGNAL_DIR)/%.c,$(CSRC))
27
SIGNAL_OBJ := $(patsubst %.c,$(SIGNAL_OUT)/%.o,$(CSRC))
30
SIGNAL_SRC := $(patsubst %.c,$(SIGNAL_DIR)/%.c,$(CSRC-y))
31
SIGNAL_OBJ := $(patsubst %.c,$(SIGNAL_OUT)/%.o,$(CSRC-y))
29
33
libc-y += $(SIGNAL_OBJ)
31
objclean-y += signal_clean
35
objclean-y += CLEAN_libc/signal
34
38
$(do_rm) $(addprefix $(SIGNAL_OUT)/*., o os)