Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. PKG_NAME:= uClibc++
  5. PKG_VERSION:= 0.2.4
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 394c119363dd8b469fb898442a6764b8
  8. PKG_DESCR:= A standard c++ library for embedded systems
  9. PKG_SECTION:= libs
  10. PKG_URL:= http://cxx.uclibc.org/
  11. PKG_SITES:= http://cxx.uclibc.org/src/
  12. PKG_NEED_CXX:= 1
  13. PKG_NOPARALLEL:= 1
  14. PKG_LIBNAME:= uclibc++
  15. PKG_OPTS:= dev
  16. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  17. PKG_LIBC_DEPENDS:= uclibc
  18. include ${TOPDIR}/mk/package.mk
  19. $(eval $(call PKG_template,UCLIBCXX,uclibc++,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  20. CONFIG_STYLE:= manual
  21. INSTALL_STYLE:= manual
  22. MAKE_FLAGS+= TOPDIR="${WRKBUILD}/" \
  23. ${TARGET_CONFIGURE_OPTS} \
  24. ARCH_CFLAGS="${TARGET_CFLAGS}" \
  25. CROSS="${TARGET_CROSS}"
  26. ifeq ($(ADK_LINUX_AVR32),y)
  27. MAKE_FLAGS+= check_as_needed=
  28. endif
  29. TARGET_CONFIGURE_OPTS=
  30. do-configure:
  31. ${CP} ./files/config ${WRKBUILD}/.config
  32. do-install:
  33. ${INSTALL_DIR} ${IDIR_UCLIBCXX}/usr/lib
  34. ${CP} ${WRKBUILD}/src/libuClibc++*.so* ${IDIR_UCLIBCXX}/usr/lib/
  35. ${INSTALL_DIR} ${WRKINST}/usr/include
  36. ${CP} ${WRKBUILD}/include ${WRKINST}/usr/include/uClibc++
  37. include ${TOPDIR}/mk/pkg-bottom.mk