Makefile.in 867 B

1234567891011121314151617181920212223242526272829303132333435
  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. subdirs += libc/misc/search
  8. CSRC-y := hsearch.c
  9. # multi source _tsearch.c
  10. CSRC-y += tsearch.c tfind.c tdelete.c twalk.c tdestroy.c
  11. # multi source _lsearch.c
  12. CSRC-y += lfind.c lsearch.c
  13. # multi source insremque.c
  14. CSRC-y += insque.c remque.c
  15. # multi source _hsearch_r.c
  16. CSRC-y += 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-y))
  20. MISC_SEARCH_OBJ := $(patsubst %.c,$(MISC_SEARCH_OUT)/%.o,$(CSRC-y))
  21. libc-y += $(MISC_SEARCH_OBJ)
  22. objclean-y += CLEAN_libc/misc/search
  23. CLEAN_libc/misc/search:
  24. $(do_rm) $(addprefix $(MISC_SEARCH_OUT)/*., o os)