Makefile.in 701 B

12345678910111213141516171819202122232425262728293031
  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. ifeq ($(UCLIBC_HAS_GNU_GLOB),y)
  8. CSRC := glob.c
  9. ifeq ($(UCLIBC_HAS_LFS),y)
  10. CSRC += glob64.c
  11. endif
  12. else
  13. CSRC := glob-susv3.c
  14. ifeq ($(UCLIBC_HAS_LFS),y)
  15. CSRC += glob64-susv3.c
  16. endif
  17. endif
  18. MISC_GLOB_DIR := $(top_srcdir)libc/misc/glob
  19. MISC_GLOB_OUT := $(top_builddir)libc/misc/glob
  20. MISC_GLOB_SRC := $(patsubst %.c,$(MISC_GLOB_DIR)/%.c,$(CSRC))
  21. MISC_GLOB_OBJ := $(patsubst %.c,$(MISC_GLOB_OUT)/%.o,$(CSRC))
  22. libc-$(UCLIBC_HAS_GLOB) += $(MISC_GLOB_OBJ)
  23. objclean-y += misc_glob_objclean
  24. misc_glob_objclean:
  25. $(RM) $(MISC_GLOB_OUT)/*.{o,os}