Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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_UCLIBC),y)
  11. include ${TOPDIR}/toolchain/uClibc/Makefile.inc
  12. endif
  13. ifeq ($(ADK_NATIVE),y)
  14. PKG_VERSION:= 1.0
  15. PKG_RELEASE:= 1
  16. endif
  17. PKG_NAME:= libpthread
  18. PKG_DESCR:= POSIX threading library
  19. PKG_SECTION:= libs
  20. PKG_OPTS:= noremove
  21. NO_DISTFILES:= 1
  22. PKG_SUBPKGS:= LIBPTHREAD LIBPTHREAD_DEV
  23. PKGSC_LIBPTHREAD_DEV:= devel
  24. ifeq ($(ADK_STATIC),y)
  25. PKG_OPTS+= libonly
  26. endif
  27. include ${TOPDIR}/mk/package.mk
  28. $(eval $(call PKG_template,LIBPTHREAD,libpthread,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  29. $(eval $(call PKG_template,LIBPTHREAD_DEV,libpthread-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKGSC_LIBPTHREAD_DEV},${PKG_OPTS}))
  30. CONFIG_STYLE:= manual
  31. BUILD_STYLE:= manual
  32. INSTALL_STYLE:= manual
  33. libpthread-install:
  34. ifeq ($(ADK_NATIVE),)
  35. ${INSTALL_DIR} ${IDIR_LIBPTHREAD}/lib
  36. ${CP} ${STAGING_TARGET_DIR}/lib/libpthread*.so* ${IDIR_LIBPTHREAD}/lib
  37. (cd ${STAGING_TARGET_DIR}/lib && ln -sf libpthread.so.0 libpthread.so)
  38. endif
  39. libpthread-dev-install:
  40. ifeq ($(ADK_NATIVE),)
  41. ${INSTALL_DIR} ${IDIR_LIBPTHREAD_DEV}/usr/lib
  42. -${CP} ./files/libpthread.so.$(ARCH) ${IDIR_LIBPTHREAD_DEV}/usr/lib/libpthread.so
  43. -${CP} ${STAGING_TARGET_DIR}/usr/lib/libpthread_nonshared.a ${IDIR_LIBPTHREAD_DEV}/usr/lib
  44. endif
  45. include ${TOPDIR}/mk/pkg-bottom.mk