Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. 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/lib
  25. ifeq ($(ADK_NATIVE),y)
  26. $(CP) /usr/lib/libstdc++.so* ${IDIR_LIBSTDCXX}/usr/lib
  27. else
  28. $(CP) ${STAGING_TARGET_DIR}/lib/libstdc++.so* ${IDIR_LIBSTDCXX}/usr/lib
  29. -@rm ${IDIR_LIBSTDCXX}/usr/lib/libstdc++.so.*-gdb.py
  30. endif
  31. include ${TOPDIR}/mk/pkg-bottom.mk