Makefile 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  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_MUSL),y)
  8. include ${TOPDIR}/toolchain/musl/Makefile.inc
  9. else
  10. include ${TOPDIR}/toolchain/uclibc/Makefile.inc
  11. endif
  12. endif
  13. PKG_NAME:= libstdcxx
  14. PKG_DESCR:= C++ support library
  15. PKG_SECTION:= libs
  16. PKG_NEED_CXX:= 1
  17. NO_DISTFILES:= 1
  18. include ${TOPDIR}/mk/package.mk
  19. $(eval $(call PKG_template,LIBSTDCXX,${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_LIBSTDCXX}/usr/${ADK_TARGET_LIBC_PATH}
  25. $(CP) ${STAGING_TARGET_DIR}/${ADK_TARGET_LIBC_PATH}/libstdc++.so* ${IDIR_LIBSTDCXX}/usr/${ADK_TARGET_LIBC_PATH}
  26. -@rm ${IDIR_LIBSTDCXX}/usr/${ADK_TARGET_LIBC_PATH}/libstdc++.so.*-gdb.py
  27. include ${TOPDIR}/mk/pkg-bottom.mk