Makefile.in 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  4. #
  5. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  6. #
  7. # Get the thread include dependencies and shared object name
  8. CFLAGS-linuxthreads.old_db := -DNOT_IN_libc -DLIBPTHREAD_SO="\"libpthread.so.$(MAJOR_VERSION)\""
  9. LDFLAGS-libthread_db.so := $(LDFLAGS_NOSTRIP) -s --warn-unresolved-symbols
  10. LIBS-libthread_db.so := $(LIBS)
  11. libthread_db_FULL_NAME := libthread_db-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so
  12. libthread_db_DIR := $(top_srcdir)libpthread/linuxthreads.old_db
  13. libthread_db_OUT := $(top_builddir)libpthread/linuxthreads.old_db
  14. libthread_db_SRC := $(wildcard $(libthread_db_DIR)/*.c)
  15. libthread_db_OBJ := $(patsubst $(libthread_db_DIR)/%.c,$(libthread_db_OUT)/%.o,$(libthread_db_SRC))
  16. libthread_db-so-y := $(libthread_db_OBJ:.o=.os)
  17. ifeq ($(DOPIC),y)
  18. libthread_db-a-y := $(libthread_db-so-y)
  19. else
  20. libthread_db-a-y := $(libthread_db_OBJ)
  21. endif
  22. lib-a-$(PTHREADS_DEBUG_SUPPORT) += $(top_builddir)lib/libthread_db.a
  23. lib-so-$(PTHREADS_DEBUG_SUPPORT) += $(top_builddir)lib/libthread_db.so
  24. objclean-y += libthread_db_clean
  25. headers-$(PTHREADS_DEBUG_SUPPORT) += linuxthreads_db_headers
  26. headers_clean-y += linuxthreads_db_headers_clean
  27. #ifeq ($(DOMULTI),n)
  28. ifeq ($(DOPIC),y)
  29. $(top_builddir)lib/libthread_db.so: $(top_builddir)lib/libthread_db.a $(libc)
  30. else
  31. $(top_builddir)lib/libthread_db.so: $(libthread_db_OUT)/libthread_db_so.a $(libc)
  32. endif
  33. $(call link.so,$(libthread_db_FULL_NAME),1)
  34. #else
  35. #$(top_builddir)lib/libthread_db.so: $(libthread_db_OUT)/libthread_db.oS | $(libc)
  36. # $(call linkm.so,$(libthread_db_FULL_NAME),1)
  37. #endif
  38. $(libthread_db_OUT)/libthread_db_so.a: $(libthread_db-so-y)
  39. $(Q)$(RM) $@
  40. $(do_strip)
  41. $(do_ar)
  42. $(libthread_db_OUT)/libthread_db.oS: $(libthread_db_SRC)
  43. $(Q)$(RM) $@
  44. $(compile-m)
  45. $(do_t_strip)
  46. $(top_builddir)lib/libthread_db.a: $(libthread_db-a-y)
  47. $(Q)$(INSTALL) -d $(dir $@)
  48. $(Q)$(RM) $@
  49. $(do_strip)
  50. $(do_ar)
  51. linuxthreads_db_headers:
  52. $(LN) -sf ../$(PTDIR)_db/thread_db.h $(top_builddir)include/
  53. linuxthreads_db_headers_clean:
  54. $(RM) $(top_builddir)include/thread_db.h
  55. libthread_db_clean:
  56. $(RM) $(libthread_db_OUT)/*.{o,os,oS,a}