Makefile.in 830 B

12345678910111213141516171819202122232425262728
  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 readdir64.c alphasort64.c scandir64.c readdir_r.c \
  10. readdir64_r.c
  11. MISC_DIRENT_DIR:=$(top_srcdir)libc/misc/dirent
  12. MISC_DIRENT_OUT:=$(top_builddir)libc/misc/dirent
  13. MISC_DIRENT_SRC:=$(patsubst %.c,$(MISC_DIRENT_DIR)/%.c,$(CSRC))
  14. MISC_DIRENT_OBJ:=$(patsubst %.c,$(MISC_DIRENT_OUT)/%.o,$(CSRC))
  15. libc-a-y+=$(MISC_DIRENT_OBJ)
  16. libc-a-pic-y+=$(MISC_DIRENT_OBJ:.o=.os)
  17. libc-so-y+=$(MISC_DIRENT_OBJ:.o=.os)
  18. libc-multi-y+=$(MISC_DIRENT_SRC)
  19. objclean-y+=misc_dirent_objclean
  20. misc_dirent_objclean:
  21. $(RM) $(MISC_DIRENT_OUT)/*.{o,os}