Makefile.in 828 B

123456789101112131415161718192021222324252627282930
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2001 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:= alphasort.c closedir.c dirfd.c opendir.c readdir.c rewinddir.c scandir.c \
  9. seekdir.c telldir.c readdir_r.c
  10. ifeq ($(UCLIBC_HAS_LFS),y)
  11. CSRC+= readdir64.c alphasort64.c scandir64.c readdir64_r.c
  12. endif
  13. MISC_DIRENT_DIR:=$(top_srcdir)libc/misc/dirent
  14. MISC_DIRENT_OUT:=$(top_builddir)libc/misc/dirent
  15. MISC_DIRENT_SRC:=$(patsubst %.c,$(MISC_DIRENT_DIR)/%.c,$(CSRC))
  16. MISC_DIRENT_OBJ:=$(patsubst %.c,$(MISC_DIRENT_OUT)/%.o,$(CSRC))
  17. libc-a-y+=$(MISC_DIRENT_OBJ)
  18. libc-so-y+=$(MISC_DIRENT_OBJ:.o=.os)
  19. libc-multi-y+=$(MISC_DIRENT_SRC)
  20. objclean-y+=misc_dirent_objclean
  21. misc_dirent_objclean:
  22. $(RM) $(MISC_DIRENT_OUT)/*.{o,os}