OSDN Git Service

- adds several config-options to allow for turning off certain features
[uclinux-h8/uClibc.git] / libc / signal / Makefile.in
1 # Makefile for uClibc
2 #
3 # Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
4 #
5 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
6 #
7
8 CSRC := allocrtsig.c killpg.c raise.c sigaction.c sigaddset.c sigandset.c \
9         sigblock.c sigdelset.c sigempty.c sigfillset.c siggetmask.c \
10         sigintr.c sigisempty.c sigismem.c sigjmp.c signal.c \
11         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
14 endif
15 ifeq ($(UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL),y)
16 CSRC += sysv_signal.c
17 endif
18
19 ifneq ($(strip $(ARCH_OBJS)),)
20 CSRC := $(filter-out $(notdir $(ARCH_OBJS:.o=.c)),$(CSRC))
21 endif
22
23 SIGNAL_DIR := $(top_srcdir)libc/signal
24 SIGNAL_OUT := $(top_builddir)libc/signal
25
26 SIGNAL_SRC := $(patsubst %.c,$(SIGNAL_DIR)/%.c,$(CSRC))
27 SIGNAL_OBJ := $(patsubst %.c,$(SIGNAL_OUT)/%.o,$(CSRC))
28
29 libc-y += $(SIGNAL_OBJ)
30
31 objclean-y += signal_objclean
32
33 signal_objclean:
34         $(RM) $(SIGNAL_OUT)/*.{o,os}