Makefile.in 931 B

123456789101112131415161718192021222324252627282930
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000 by Lineo, inc.
  4. # Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
  5. #
  6. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  7. #
  8. CSRC:=glob.c glob64.c glob-hooks.c
  9. MISC_GLOB_DIR:=$(top_srcdir)libc/misc/glob
  10. MISC_GLOB_OUT:=$(top_builddir)libc/misc/glob
  11. MISC_GLOB_SRC:=$(patsubst %.c,$(MISC_GLOB_DIR)/%.c,$(CSRC))
  12. MISC_GLOB_OBJ:=$(patsubst %.c,$(MISC_GLOB_OUT)/%.o,$(CSRC))
  13. $(MISC_GLOB_OUT)/glob64.o $(MISC_GLOB_OUT)/glob64.os: $(MISC_GLOB_DIR)/glob64.c $(MISC_GLOB_DIR)/glob.c
  14. libc-a-$(UCLIBC_HAS_GLOB)+=$(MISC_GLOB_OBJ)
  15. libc-a-pic-$(UCLIBC_HAS_GLOB)+=$(MISC_GLOB_OBJ:.o=.os)
  16. libc-so-$(UCLIBC_HAS_GLOB)+=$(MISC_GLOB_OBJ:.o=.os)
  17. # glob has to be rewritten to allow multi
  18. #libc-multi-$(UCLIBC_HAS_GLOB)+=$(MISC_GLOB_SRC)
  19. libc-nomulti-$(UCLIBC_HAS_GLOB)+=$(MISC_GLOB_OBJ)
  20. objclean-y+=misc_glob_objclean
  21. misc_glob_objclean:
  22. $(RM) $(MISC_GLOB_OUT)/*.{o,os}