Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 ${TOPDIR}/rules.mk
  4. ifeq ($(ADK_TARGET_LIB_GLIBC),y)
  5. include ${TOPDIR}/toolchain/glibc/Makefile.inc
  6. endif
  7. ifeq ($(ADK_TARGET_LIB_EGLIBC),y)
  8. include ${TOPDIR}/toolchain/eglibc/Makefile.inc
  9. endif
  10. ifeq ($(ADK_TARGET_LIB_MUSL),y)
  11. include ${TOPDIR}/toolchain/musl/Makefile.inc
  12. endif
  13. ifeq ($(ADK_TARGET_LIB_UCLIBC),y)
  14. include ${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
  19. PKG_ARCH_DEPENDS:= !m68k
  20. NO_DISTFILES:= 1
  21. include ${TOPDIR}/mk/package.mk
  22. $(eval $(call PKG_template,LIBTHREAD_DB,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  23. CONFIG_STYLE:= manual
  24. BUILD_STYLE:= manual
  25. INSTALL_STYLE:= manual
  26. do-install:
  27. ifeq ($(ADK_NATIVE),)
  28. ${INSTALL_DIR} ${IDIR_LIBTHREAD_DB}/lib
  29. ifeq ($(ADK_TARGET_LIB_MUSL),)
  30. ${CP} ${STAGING_TARGET_DIR}/lib/libthread_db*.so* ${IDIR_LIBTHREAD_DB}/lib
  31. endif
  32. endif
  33. include ${TOPDIR}/mk/pkg-bottom.mk