Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. ifeq ($(ADK_NATIVE),y)
  17. PKG_VERSION:= 1.0
  18. PKG_RELEASE:= 1
  19. endif
  20. PKG_NAME:= libpthread
  21. PKG_DESCR:= POSIX threading library
  22. PKG_SECTION:= libs
  23. PKG_OPTS:= noremove
  24. NO_DISTFILES:= 1
  25. ifeq ($(ADK_STATIC),y)
  26. PKG_OPTS+= libonly
  27. endif
  28. include ${TOPDIR}/mk/package.mk
  29. $(eval $(call PKG_template,LIBPTHREAD,libpthread,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  30. CONFIG_STYLE:= manual
  31. BUILD_STYLE:= manual
  32. INSTALL_STYLE:= manual
  33. libpthread-install:
  34. ifeq ($(ADK_NATIVE),)
  35. ifeq ($(ADK_TARGET_LIB_MUSL),)
  36. ${INSTALL_DIR} ${IDIR_LIBPTHREAD}/$(ADK_TARGET_LIBC_PATH)
  37. ${CP} ${STAGING_TARGET_DIR}/lib/libpthread*.so* ${IDIR_LIBPTHREAD}/$(ADK_TARGET_LIBC_PATH)
  38. endif
  39. endif
  40. include ${TOPDIR}/mk/pkg-bottom.mk