Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. else
  7. ifeq ($(ADK_TARGET_LIB_EGLIBC),y)
  8. include ${TOPDIR}/toolchain/eglibc/Makefile.inc
  9. else
  10. ifeq ($(ADK_TARGET_LIB_MUSL),y)
  11. include ${TOPDIR}/toolchain/musl/Makefile.inc
  12. else
  13. include ${TOPDIR}/toolchain/uClibc/Makefile.inc
  14. endif
  15. endif
  16. endif
  17. ifeq ($(ADK_LINUX_AVR32),y)
  18. LIBSTDCXX_VER:= 13
  19. else
  20. ifeq ($(ADK_LINUX_MICROBLAZE),y)
  21. LIBSTDCXX_VER:= 18
  22. else
  23. LIBSTDCXX_VER:= 17
  24. endif
  25. endif
  26. PKG_NAME:= libstdcxx
  27. PKG_DESCR:= C++ support library
  28. PKG_SECTION:= libs
  29. PKG_NEED_CXX:= 1
  30. NO_DISTFILES:= 1
  31. include ${TOPDIR}/mk/package.mk
  32. $(eval $(call PKG_template,LIBSTDCXX,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  33. CONFIG_STYLE:= manual
  34. BUILD_STYLE:= manual
  35. INSTALL_STYLE:= manual
  36. do-install:
  37. ${INSTALL_DIR} ${IDIR_LIBSTDCXX}/usr/${ADK_TARGET_LIBC_PATH}
  38. ifeq ($(ADK_NATIVE),y)
  39. $(CP) /usr/lib/libstdc++.so* ${IDIR_LIBSTDCXX}/usr/lib
  40. else
  41. (cd ${IDIR_LIBSTDCXX}/usr/${ADK_TARGET_LIBC_PATH}; ln -sf libstdc++.so.6.0.${LIBSTDCXX_VER} libstdc++.so.6)
  42. (cd ${IDIR_LIBSTDCXX}/usr/${ADK_TARGET_LIBC_PATH}; ln -sf libstdc++.so.6.0.${LIBSTDCXX_VER} libstdc++.so)
  43. (cd ${STAGING_TARGET_DIR}/${ADK_TARGET_LIBC_PATH}/; ln -sf libstdc++.so.6.0.${LIBSTDCXX_VER} libstdc++.so)
  44. $(CP) ${STAGING_TARGET_DIR}/${ADK_TARGET_LIBC_PATH}/libstdc++.so.6.0.${LIBSTDCXX_VER} ${IDIR_LIBSTDCXX}/usr/${ADK_TARGET_LIBC_PATH}
  45. -@rm ${IDIR_LIBSTDCXX}/usr/${ADK_TARGET_LIBC_PATH}/libstdc++.so.*-gdb.py
  46. endif
  47. include ${TOPDIR}/mk/pkg-bottom.mk