Makefile.in 840 B

12345678910111213141516171819202122232425262728293031323334
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000 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 := hsearch.c
  9. # multi source _tsearch.c
  10. CSRC += tsearch.c tfind.c tdelete.c twalk.c tdestroy.c
  11. # multi source _lsearch.c
  12. CSRC += lfind.c lsearch.c
  13. # multi source insremque.c
  14. CSRC += insque.c remque.c
  15. # multi source _hsearch_r.c
  16. CSRC += hcreate_r.c hdestroy_r.c hsearch_r.c
  17. MISC_SEARCH_DIR := $(top_srcdir)libc/misc/search
  18. MISC_SEARCH_OUT := $(top_builddir)libc/misc/search
  19. MISC_SEARCH_SRC := $(patsubst %.c,$(MISC_SEARCH_DIR)/%.c,$(CSRC))
  20. MISC_SEARCH_OBJ := $(patsubst %.c,$(MISC_SEARCH_OUT)/%.o,$(CSRC))
  21. libc-y += $(MISC_SEARCH_OBJ)
  22. objclean-y += misc_search_objclean
  23. misc_search_objclean:
  24. $(RM) $(MISC_SEARCH_OUT)/*.{o,os}