Makefile.in 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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_MSRC1)
  34. $(compile.m)
  35. $(MISC_SEARCH_MOBJ1:.o=.os): $(MISC_SEARCH_MSRC1)
  36. $(compile.m)
  37. $(MISC_SEARCH_MOBJ2): $(MISC_SEARCH_MSRC2)
  38. $(compile.m)
  39. $(MISC_SEARCH_MOBJ2:.o=.os): $(MISC_SEARCH_MSRC2)
  40. $(compile.m)
  41. $(MISC_SEARCH_MOBJ3): $(MISC_SEARCH_MSRC3)
  42. $(compile.m)
  43. $(MISC_SEARCH_MOBJ3:.o=.os): $(MISC_SEARCH_MSRC3)
  44. $(compile.m)
  45. $(MISC_SEARCH_MOBJ4): $(MISC_SEARCH_MSRC4)
  46. $(compile.m)
  47. $(MISC_SEARCH_MOBJ4:.o=.os): $(MISC_SEARCH_MSRC4)
  48. $(compile.m)
  49. libc-a-y+=$(MISC_SEARCH_OBJS)
  50. libc-so-y+=$(MISC_SEARCH_OBJS:.o=.os)
  51. CFLAGS-multi-y+=$(MISC_SEARCH_DEF)
  52. libc-multi-y+=$(MISC_SEARCH_SRC) $(MISC_SEARCH_MSRC)
  53. objclean-y+=misc_search_objclean
  54. misc_search_objclean:
  55. $(RM) $(MISC_SEARCH_OUT)/*.{o,os}