Makefile.in 790 B

123456789101112131415161718192021222324252627
  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-so-y+=$(MISC_DIRENT_OBJ:.o=.os)
  17. libc-multi-y+=$(MISC_DIRENT_SRC)
  18. objclean-y+=misc_dirent_objclean
  19. misc_dirent_objclean:
  20. $(RM) $(MISC_DIRENT_OUT)/*.{o,os}