1
0

Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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:= cxxtools
  5. PKG_VERSION:= 2.1.1
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 2026a2bb23b966f13893167b4dbc5d70
  8. PKG_DESCR:= a collection of general-purpose C++ classes (libraries)
  9. PKG_SECTION:= libs
  10. PKG_BUILDDEP:= libiconv-tiny
  11. PKG_URL:= http://www.tntnet.org/
  12. PKG_SITES:= http://www.tntnet.org/download/
  13. PKG_NEED_CXX:= 1
  14. PKG_CXX:= CXXTOOLS
  15. PKG_OPTS:= dev
  16. PKG_ARCH_DEPENDS:= !arm !m68k
  17. include ${TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,CXXTOOLS,cxxtools,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  19. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  20. ifeq (${ADK_COMPILE_CXXTOOLS_WITH_UCLIBCXX},y)
  21. TARGET_CXXFLAGS+= -fno-builtin -nostdinc++ \
  22. -I${STAGING_TARGET_DIR}/usr/include/uClibc++ -Wl,-E
  23. TARGET_LDFLAGS+= -luClibc++ -liconv -lm -lc -nodefaultlibs -shared
  24. else
  25. TARGET_LDFLAGS+= -liconv -shared
  26. endif
  27. TARGET_CFLAGS+= -fPIC
  28. TARGET_CXXFLAGS+= -fPIC
  29. CONFIGURE_ARGS+= --with-libiconv-prefix='${STAGING_TARGET_DIR}/usr' \
  30. --disable-demos --disable-unittest
  31. cxxtools-install:
  32. ${INSTALL_DIR} ${IDIR_CXXTOOLS}/usr/lib
  33. ${CP} ${WRKINST}/usr/lib/libcxxtools.so* ${IDIR_CXXTOOLS}/usr/lib
  34. include ${TOPDIR}/mk/pkg-bottom.mk