summaryrefslogtreecommitdiff
path: root/libc/signal/Makefile.in
blob: c9f74ee13d2e4b38fd1a5b0a76e802461624a2c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Makefile for uClibc
#
# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
#
# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
#

subdirs += libc/signal

CSRC-y := allocrtsig.c killpg.c raise.c sigaction.c sigaddset.c sigandset.c \
	sigdelset.c sigempty.c sigfillset.c \
	sigisempty.c sigismem.c sigjmp.c signal.c \
	sigorset.c sigsetops.c sigwait.c
CSRC-$(UCLIBC_HAS_OBSOLETE_BSD_SIGNAL) += \
	sighold.c sigignore.c sigrelse.c sigset.c
CSRC-$(UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL) += sysv_signal.c
CSRC-$(UCLIBC_SUSV4_LEGACY) += sigintr.c sigpause.c

ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y)
CSRC-y:=$(filter-out raise.c,$(CSRC-y))
endif

ifneq ($(strip $(ARCH_OBJS)),)
CSRC-y := $(filter-out $(notdir $(ARCH_OBJS:.o=.c)),$(CSRC-y))
endif

ifneq ($(UCLIBC_HAS_BACKTRACE),)
CFLAGS-raise.c = -fasynchronous-unwind-tables
endif

SIGNAL_DIR := $(top_srcdir)libc/signal
SIGNAL_OUT := $(top_builddir)libc/signal

SIGNAL_SRC := $(patsubst %.c,$(SIGNAL_DIR)/%.c,$(CSRC-y))
SIGNAL_OBJ := $(patsubst %.c,$(SIGNAL_OUT)/%.o,$(CSRC-y))

libc-y += $(SIGNAL_OBJ)

objclean-y += CLEAN_libc/signal

CLEAN_libc/signal:
	$(do_rm) $(addprefix $(SIGNAL_OUT)/*., o os)