Makefile.in 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
  4. #
  5. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  6. #
  7. MSRC:=ftw.c
  8. MOBJ:=ftw.o ftw64.o
  9. MISC_FTW_DIR:=$(top_srcdir)libc/misc/ftw
  10. MISC_FTW_OUT:=$(top_builddir)libc/misc/ftw
  11. # ftw.c has to be rewritten to allow multi
  12. MISC_FTW_NO_MULTI:=ftw64.o
  13. MISC_FTW_MSRC:=$(MISC_FTW_DIR)/$(MSRC)
  14. MISC_FTW_MOBJ:=$(patsubst %.o,$(MISC_FTW_OUT)/%.o,$(MOBJ))
  15. MISC_FTW_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(filter-out $(MISC_FTW_NO_MULTI),$(notdir $(MISC_FTW_MOBJ)))))
  16. MISC_FTW_OBJS:=$(MISC_FTW_MOBJ)
  17. $(MISC_FTW_OBJS): $(MISC_FTW_MSRC)
  18. $(compile.m)
  19. $(MISC_FTW_OBJS:.o=.os): $(MISC_FTW_MSRC)
  20. $(compile.m)
  21. libc-a-$(UCLIBC_HAS_FTW)+=$(MISC_FTW_OBJS)
  22. libc-so-$(UCLIBC_HAS_FTW)+=$(MISC_FTW_OBJS:.o=.os)
  23. CFLAGS-multi-$(UCLIBC_HAS_FTW)+=$(MISC_FTW_DEF)
  24. libc-multi-$(UCLIBC_HAS_FTW)+=$(MISC_FTW_MSRC)
  25. libc-nomulti-$(UCLIBC_HAS_FTW)+=$(patsubst %.o,$(MISC_FTW_OUT)/%.o,$(MISC_FTW_NO_MULTI))
  26. objclean-y+=misc_ftw_objclean
  27. misc_ftw_objclean:
  28. $(RM) $(MISC_FTW_OUT)/*.{o,os}