Makefile 989 B

123456789101112131415161718192021222324252627282930313233
  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. include ${TOPDIR}/toolchain/gcc/Makefile.inc
  5. PKG_NAME:= libgcc
  6. PKG_DESCR:= GCC library
  7. PKG_SECTION:= libs
  8. NO_DISTFILES:= 1
  9. include ${TOPDIR}/mk/package.mk
  10. $(eval $(call PKG_template,LIBGCC,libgcc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  11. CONFIG_STYLE:= manual
  12. BUILD_STYLE:= manual
  13. INSTALL_STYLE:= manual
  14. do-install:
  15. ${INSTALL_DIR} ${IDIR_LIBGCC}/$(ADK_TARGET_LIBC_PATH)
  16. ifeq ($(ADK_LINUX_SH),y)
  17. ifeq ($(ADK_TARGET_LIB_GLIBC),y)
  18. ${CP} ${STAGING_TARGET_DIR}/lib/libgcc*.so* ${IDIR_LIBGCC}/$(ADK_TARGET_LIBC_PATH)
  19. else
  20. ${CP} ${STAGING_TARGET_DIR}/lib/m4-nofpu/libgcc*.so* ${IDIR_LIBGCC}/$(ADK_TARGET_LIBC_PATH)
  21. endif
  22. else
  23. ${CP} ${STAGING_TARGET_DIR}/$(ADK_TARGET_LIBC_PATH)/libgcc*.so* ${IDIR_LIBGCC}/$(ADK_TARGET_LIBC_PATH)
  24. endif
  25. include ${TOPDIR}/mk/pkg-bottom.mk