Makefile.in 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
  4. #
  5. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  6. #
  7. #CFLAGS+=$(SSP_ALL_CFLAGS)
  8. PT_MAJOR_VERSION:=$(MAJOR_VERSION)
  9. # Get the thread include dependencies and shared object name
  10. CFLAGS+=-DLIBPTHREAD_SO="\"libpthread.so.$(PT_MAJOR_VERSION)\""
  11. # Remove any -z defs since this lib will have undefined symbols
  12. LDFLAGS:=$(subst -z defs,,$(LDFLAGS)) --warn-unresolved-symbols
  13. ifeq ($(PTHREADS_DEBUG_SUPPORT),y)
  14. STRIP_FLAGS:=-X --strip-debug -R .note -R .comment
  15. endif
  16. DOMULTI=n
  17. LIB_NAME:=libthread_db
  18. libthread_db_FULL_NAME:=$(LIB_NAME)-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so
  19. MAJOR_VERSION:=1
  20. libthread_db_DIR:=$(top_srcdir)libpthread/linuxthreads_db
  21. libthread_db_OUT:=$(top_builddir)libpthread/linuxthreads_db
  22. libthread_db_SRC:=$(wildcard $(libthread_db_DIR)/*.c)
  23. libthread_db_OBJ:=$(patsubst $(libthread_db_DIR)/%.c,$(libthread_db_OUT)/%.o,$(libthread_db_SRC))
  24. libthread_db-a-$(PTHREADS_DEBUG_SUPPORT)+=$(libthread_db_OBJ)
  25. libthread_db-so-$(PTHREADS_DEBUG_SUPPORT)+=$(libthread_db_OBJ:.o=.os)
  26. libthread_db-multi-$(PTHREADS_DEBUG_SUPPORT)+=$(libthread_db_SRC)
  27. objclean-y+=libthread_db_clean
  28. lib-a-$(PTHREADS_DEBUG_SUPPORT)+=$(top_builddir)lib/libthread_db.a
  29. lib-so-$(PTHREADS_DEBUG_SUPPORT)+=$(top_builddir)lib/libthread_db.so