Makefile.in 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000 by Lineo, inc.
  4. # Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
  5. #
  6. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  7. #
  8. MSRC1:=tsearch.c
  9. MOBJ1:=tsearch.o tfind.o tdelete.o twalk.o tdestroy.o
  10. MSRC2:=lsearch.c
  11. MOBJ2:=lfind.o lsearch.o
  12. MSRC3:=insremque.c
  13. MOBJ3:=insque.o remque.o
  14. MSRC4:=hsearch_r.c
  15. MOBJ4:=hcreate_r.o hdestroy_r.o hsearch_r.o
  16. CSRC:=hsearch.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. MISC_SEARCH_MSRC1:=$(MISC_SEARCH_DIR)/$(MSRC1)
  22. MISC_SEARCH_MSRC2:=$(MISC_SEARCH_DIR)/$(MSRC2)
  23. MISC_SEARCH_MSRC3:=$(MISC_SEARCH_DIR)/$(MSRC3)
  24. MISC_SEARCH_MSRC4:=$(MISC_SEARCH_DIR)/$(MSRC4)
  25. MISC_SEARCH_MOBJ1:=$(patsubst %.o,$(MISC_SEARCH_OUT)/%.o,$(MOBJ1))
  26. MISC_SEARCH_MOBJ2:=$(patsubst %.o,$(MISC_SEARCH_OUT)/%.o,$(MOBJ2))
  27. MISC_SEARCH_MOBJ3:=$(patsubst %.o,$(MISC_SEARCH_OUT)/%.o,$(MOBJ3))
  28. MISC_SEARCH_MOBJ4:=$(patsubst %.o,$(MISC_SEARCH_OUT)/%.o,$(MOBJ4))
  29. MISC_SEARCH_MSRC:=$(MISC_SEARCH_MSRC1) $(MISC_SEARCH_MSRC2) $(MISC_SEARCH_MSRC3) $(MISC_SEARCH_MSRC4)
  30. MISC_SEARCH_MOBJ:=$(MISC_SEARCH_MOBJ1) $(MISC_SEARCH_MOBJ2) $(MISC_SEARCH_MOBJ3) $(MISC_SEARCH_MOBJ4)
  31. MISC_SEARCH_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(MISC_SEARCH_MOBJ))))
  32. MISC_SEARCH_OBJS:=$(MISC_SEARCH_OBJ) $(MISC_SEARCH_MOBJ)
  33. $(MISC_SEARCH_MOBJ1) $(MISC_SEARCH_MOBJ1:.o=.os): $(MISC_SEARCH_MSRC1)
  34. $(compile.m)
  35. $(MISC_SEARCH_MOBJ2) $(MISC_SEARCH_MOBJ2:.o=.os): $(MISC_SEARCH_MSRC2)
  36. $(compile.m)
  37. $(MISC_SEARCH_MOBJ3) $(MISC_SEARCH_MOBJ3:.o=.os): $(MISC_SEARCH_MSRC3)
  38. $(compile.m)
  39. $(MISC_SEARCH_MOBJ4) $(MISC_SEARCH_MOBJ4:.o=.os): $(MISC_SEARCH_MSRC4)
  40. $(compile.m)
  41. libc-a-y+=$(MISC_SEARCH_OBJS)
  42. libc-a-pic-y+=$(MISC_SEARCH_OBJS:.o=.os)
  43. libc-so-y+=$(MISC_SEARCH_OBJS:.o=.os)
  44. CFLAGS-multi-y+=$(MISC_SEARCH_DEF)
  45. libc-multi-y+=$(MISC_SEARCH_SRC) $(MISC_SEARCH_MSRC)
  46. objclean-y+=misc_search_objclean
  47. misc_search_objclean:
  48. $(RM) $(MISC_SEARCH_OUT)/*.{o,os}