Makefile.in 769 B

123456789101112131415161718192021222324252627
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2001 by Lineo, inc.
  4. # Copyright (C) 2000-2006 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-y += $(MISC_DIRENT_OBJ)
  18. objclean-y += misc_dirent_objclean
  19. misc_dirent_objclean:
  20. $(RM) $(MISC_DIRENT_OUT)/*.{o,os}