Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 ${ADK_TOPDIR}/rules.mk
  4. ifeq ($(ADK_TARGET_LIB_GLIBC),y)
  5. include ${ADK_TOPDIR}/toolchain/glibc/Makefile.inc
  6. endif
  7. ifeq ($(ADK_TARGET_LIB_UCLIBC),y)
  8. include ${ADK_TOPDIR}/toolchain/uclibc/Makefile.inc
  9. endif
  10. ifeq ($(ADK_TARGET_LIB_UCLIBC_NG),y)
  11. include ${ADK_TOPDIR}/toolchain/uclibc-ng/Makefile.inc
  12. endif
  13. PKG_NAME:= libgcc
  14. PKG_DESCR:= gcc library
  15. PKG_SECTION:= base/libs
  16. PKG_OPTS:= noremove
  17. PKG_DFLT_LIBGCC:= y if !(ADK_TOOLCHAIN_ONLY)
  18. PKG_LIBC_DEPENDS:= uclibc uclibc-ng glibc
  19. NO_DISTFILES:= 1
  20. include ${ADK_TOPDIR}/mk/package.mk
  21. $(eval $(call PKG_template,LIBGCC,libgcc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  22. CONFIG_STYLE:= manual
  23. BUILD_STYLE:= manual
  24. INSTALL_STYLE:= manual
  25. libgcc-install:
  26. $(INSTALL_DIR) ${IDIR_LIBGCC}/$(ADK_TARGET_LIBC_PATH)
  27. ifeq ($(ADK_TARGET_UCLINUX),)
  28. ifeq ($(ADK_TARGET_USE_STATIC_LIBS),)
  29. ifeq ($(ADK_LINUX_SH),y)
  30. ifeq ($(ADK_TARGET_LIB_GLIBC),)
  31. ${CP} ${STAGING_TARGET_DIR}/lib/m4-nofpu/libgcc*.so* ${IDIR_LIBGCC}/$(ADK_TARGET_LIBC_PATH)
  32. endif
  33. else
  34. ${CP} ${STAGING_TARGET_DIR}/lib/libgcc*.so* ${IDIR_LIBGCC}/$(ADK_TARGET_LIBC_PATH)
  35. endif
  36. endif
  37. endif
  38. include ${ADK_TOPDIR}/mk/pkg-bottom.mk