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