Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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:= libpthread
  14. PKG_DESCR:= POSIX threading library
  15. PKG_SECTION:= libs
  16. PKG_OPTS:= noremove
  17. NO_DISTFILES:= 1
  18. ifeq ($(ADK_STATIC),y)
  19. PKG_OPTS+= libonly
  20. endif
  21. include ${TOPDIR}/mk/package.mk
  22. $(eval $(call PKG_template,LIBPTHREAD,libpthread,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  23. CONFIG_STYLE:= manual
  24. BUILD_STYLE:= manual
  25. INSTALL_STYLE:= manual
  26. libpthread-install:
  27. ifeq ($(ADK_TARGET_LIB_MUSL),)
  28. ${INSTALL_DIR} ${IDIR_LIBPTHREAD}/$(ADK_TARGET_LIBC_PATH)
  29. ${CP} ${STAGING_TARGET_DIR}/lib/libpthread*.so* ${IDIR_LIBPTHREAD}/$(ADK_TARGET_LIBC_PATH)
  30. (cd ${IDIR_LIBPTHREAD}/$(ADK_TARGET_LIBC_PATH); ln -sf libpthread.so.0 libpthread.so)
  31. endif
  32. include ${TOPDIR}/mk/pkg-bottom.mk