Makefile.in 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. UNISTD_DIR := $(top_srcdir)libc/unistd
  8. UNISTD_OUT := $(top_builddir)libc/unistd
  9. CSRC := $(notdir $(wildcard $(UNISTD_DIR)/*.c))
  10. # multi source
  11. CSRC := $(filter-out exec.c,$(CSRC))
  12. ifeq ($(ARCH_USE_MMU),y)
  13. CSRC := $(filter-out __exec_alloc.c,$(CSRC))
  14. else
  15. CSRC := $(filter-out daemon.c,$(CSRC))
  16. endif
  17. ifeq ($(UCLIBC_HAS_GNU_GETOPT),y)
  18. CSRC := $(filter-out getopt-susv3.c,$(CSRC))
  19. else
  20. CSRC := $(filter-out getopt.c,$(CSRC))
  21. endif
  22. ifeq ($(UCLIBC_HAS_GNU_GETSUBOPT),y)
  23. CSRC := $(filter-out getsubopt-susv3.c,$(CSRC))
  24. else
  25. CSRC := $(filter-out getsubopt.c,$(CSRC))
  26. endif
  27. ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y)
  28. CSRC := $(filter-out sleep.c,$(CSRC))
  29. endif
  30. UNISTD_SRC := $(patsubst %.c,$(UNISTD_DIR)/%.c,$(CSRC))
  31. UNISTD_OBJ := $(patsubst %.c,$(UNISTD_OUT)/%.o,$(CSRC))
  32. libc-y += $(UNISTD_OBJ)
  33. objclean-y += unistd_objclean
  34. unistd_objclean:
  35. $(RM) $(UNISTD_OUT)/*.{o,os}