Makefile.in 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
  4. #
  5. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  6. #
  7. subdirs += libc/signal
  8. CSRC-y := allocrtsig.c killpg.c raise.c sigaction.c sigaddset.c sigandset.c \
  9. sigdelset.c sigempty.c sigfillset.c \
  10. sigisempty.c sigismem.c sigjmp.c signal.c \
  11. sigorset.c sigsetops.c sigwait.c
  12. CSRC-$(UCLIBC_HAS_OBSOLETE_BSD_SIGNAL) += \
  13. sighold.c sigignore.c sigrelse.c sigset.c
  14. CSRC-$(UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL) += sysv_signal.c
  15. CSRC-$(UCLIBC_SUSV4_LEGACY) += sigintr.c sigpause.c
  16. CSRC-$(UCLIBC_HAS_THREADS_NATIVE):=$(filter-out raise.c,$(CSRC-y))
  17. ifneq ($(strip $(ARCH_OBJS-y)),)
  18. CSRC-y := $(filter-out $(notdir $(ARCH_OBJS-y:.o=.c)),$(CSRC-y))
  19. endif
  20. ifneq ($(UCLIBC_HAS_BACKTRACE),)
  21. CFLAGS-raise.c = -fasynchronous-unwind-tables
  22. endif
  23. SIGNAL_DIR := $(top_srcdir)libc/signal
  24. SIGNAL_OUT := $(top_builddir)libc/signal
  25. SIGNAL_SRC := $(patsubst %.c,$(SIGNAL_DIR)/%.c,$(CSRC-y))
  26. SIGNAL_OBJ := $(patsubst %.c,$(SIGNAL_OUT)/%.o,$(CSRC-y))
  27. libc-y += $(SIGNAL_OBJ)
  28. objclean-y += CLEAN_libc/signal
  29. CLEAN_libc/signal:
  30. $(do_rm) $(addprefix $(SIGNAL_OUT)/*., o os)