Makefile.in 814 B

123456789101112131415161718192021222324252627282930313233
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
  4. #
  5. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  6. #
  7. CSRC := hsearch.c
  8. # multi source _tsearch.c
  9. CSRC += tsearch.c tfind.c tdelete.c twalk.c tdestroy.c
  10. # multi source _lsearch.c
  11. CSRC += lfind.c lsearch.c
  12. # multi source insremque.c
  13. CSRC += insque.c remque.c
  14. # multi source _hsearch_r.c
  15. CSRC += hcreate_r.c hdestroy_r.c hsearch_r.c
  16. MISC_SEARCH_DIR := $(top_srcdir)libc/misc/search
  17. MISC_SEARCH_OUT := $(top_builddir)libc/misc/search
  18. MISC_SEARCH_SRC := $(patsubst %.c,$(MISC_SEARCH_DIR)/%.c,$(CSRC))
  19. MISC_SEARCH_OBJ := $(patsubst %.c,$(MISC_SEARCH_OUT)/%.o,$(CSRC))
  20. libc-y += $(MISC_SEARCH_OBJ)
  21. objclean-y += misc_search_clean
  22. misc_search_clean:
  23. $(do_rm) $(addprefix $(MISC_SEARCH_OUT)/*., o os)