Makefile 1.2 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. 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. PKG_NAME:= libstdcxx
  18. PKG_DESCR:= C++ support library
  19. PKG_SECTION:= libs
  20. PKG_NEED_CXX:= 1
  21. NO_DISTFILES:= 1
  22. include ${TOPDIR}/mk/package.mk
  23. $(eval $(call PKG_template,LIBSTDCXX,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  24. CONFIG_STYLE:= manual
  25. BUILD_STYLE:= manual
  26. INSTALL_STYLE:= manual
  27. do-install:
  28. ${INSTALL_DIR} ${IDIR_LIBSTDCXX}/usr/${ADK_TARGET_LIBC_PATH}
  29. ifeq ($(ADK_NATIVE),y)
  30. $(CP) /usr/lib/libstdc++.so* ${IDIR_LIBSTDCXX}/usr/lib
  31. else
  32. $(CP) ${STAGING_TARGET_DIR}/${ADK_TARGET_LIBC_PATH}/libstdc++.so* ${IDIR_LIBSTDCXX}/usr/${ADK_TARGET_LIBC_PATH}
  33. -@rm ${IDIR_LIBSTDCXX}/usr/${ADK_TARGET_LIBC_PATH}/libstdc++.so.*-gdb.py
  34. endif
  35. include ${TOPDIR}/mk/pkg-bottom.mk