Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${ADK_TOPDIR}/rules.mk
  4. ifeq ($(ADK_TARGET_LIB_GLIBC),y)
  5. include ${ADK_TOPDIR}/toolchain/glibc/Makefile.inc
  6. endif
  7. ifeq ($(ADK_TARGET_LIB_MUSL),y)
  8. include ${ADK_TOPDIR}/toolchain/musl/Makefile.inc
  9. endif
  10. ifeq ($(ADK_TARGET_LIB_UCLIBC_NG),y)
  11. include ${ADK_TOPDIR}/toolchain/uclibc-ng/Makefile.inc
  12. endif
  13. ifeq ($(ADK_TARGET_LIB_UCLIBC),y)
  14. include ${ADK_TOPDIR}/toolchain/uclibc/Makefile.inc
  15. endif
  16. PKG_NAME:= libthread-db
  17. PKG_DESCR:= posix threads library for gdb/gdbserver
  18. PKG_SECTION:= libs/misc
  19. PKG_OPTS:= nostrip
  20. PKG_CFLINE_LIBTHREAD_DB:=depends on ADK_PACKAGE_GDB || ADK_PACKAGE_GDBSERVER
  21. NO_DISTFILES:= 1
  22. include ${ADK_TOPDIR}/mk/package.mk
  23. $(eval $(call PKG_template,LIBTHREAD_DB,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  24. CONFIG_STYLE:= manual
  25. BUILD_STYLE:= manual
  26. INSTALL_STYLE:= manual
  27. do-install:
  28. ${INSTALL_DIR} ${IDIR_LIBTHREAD_DB}/lib
  29. ifeq ($(ADK_TARGET_LIB_MUSL),)
  30. ifeq (${ADK_TARGET_UCLINUX},)
  31. ${CP} ${STAGING_TARGET_DIR}/lib/libthread_db*.so* ${IDIR_LIBTHREAD_DB}/lib
  32. endif
  33. endif
  34. include ${ADK_TOPDIR}/mk/pkg-bottom.mk