1
0

Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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_MUSL),y)
  8. include ${TOPDIR}/toolchain/musl/Makefile.inc
  9. endif
  10. ifeq ($(ADK_TARGET_LIB_UCLIBC),y)
  11. include ${TOPDIR}/toolchain/uclibc/Makefile.inc
  12. endif
  13. PKG_NAME:= libthread-db
  14. PKG_DESCR:= POSIX threads library for gdb/gdbserver
  15. PKG_SECTION:= libs
  16. PKG_CFLINE_LIBTHREAD_DB:=depends on ADK_PACKAGE_GDB || ADK_PACKAGE_GDBSERVER
  17. NO_DISTFILES:= 1
  18. include ${TOPDIR}/mk/package.mk
  19. $(eval $(call PKG_template,LIBTHREAD_DB,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. CONFIG_STYLE:= manual
  21. BUILD_STYLE:= manual
  22. INSTALL_STYLE:= manual
  23. do-install:
  24. ${INSTALL_DIR} ${IDIR_LIBTHREAD_DB}/lib
  25. ifeq ($(ADK_TARGET_LIB_MUSL),)
  26. ${CP} ${STAGING_TARGET_DIR}/lib/libthread_db*.so* ${IDIR_LIBTHREAD_DB}/lib
  27. endif
  28. include ${TOPDIR}/mk/pkg-bottom.mk