Makefile.in 671 B

12345678910111213141516171819202122232425
  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/misc/glob
  8. VARIANT := $(if $(UCLIBC_HAS_GNU_GLOB),,-susv3)
  9. CSRC-y := glob$(VARIANT).c
  10. CSRC-y += glob64$(VARIANT).c
  11. MISC_GLOB_DIR := $(top_srcdir)libc/misc/glob
  12. MISC_GLOB_OUT := $(top_builddir)libc/misc/glob
  13. MISC_GLOB_SRC := $(patsubst %.c,$(MISC_GLOB_DIR)/%.c,$(CSRC-y))
  14. MISC_GLOB_OBJ := $(patsubst %.c,$(MISC_GLOB_OUT)/%.o,$(CSRC-y))
  15. libc-$(UCLIBC_HAS_GLOB) += $(MISC_GLOB_OBJ)
  16. objclean-y += CLEAN_libc/misc/glob
  17. CLEAN_libc/misc/glob:
  18. $(do_rm) $(addprefix $(MISC_GLOB_OUT)/*., o os)