Makefile 1012 B

1234567891011121314151617181920212223242526272829303132333435
  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. ifeq ($(ADK_NATIVE),)
  16. ${INSTALL_DIR} ${IDIR_LIBGCC}/$(ADK_TARGET_LIBC_PATH)
  17. ifeq ($(ADK_LINUX_SH),y)
  18. ifeq ($(ADK_TARGET_LIB_GLIBC),y)
  19. ${CP} ${STAGING_TARGET_DIR}/lib/libgcc*.so* ${IDIR_LIBGCC}/$(ADK_TARGET_LIBC_PATH)
  20. else
  21. ${CP} ${STAGING_TARGET_DIR}/lib/!m4/libgcc*.so* ${IDIR_LIBGCC}/$(ADK_TARGET_LIBC_PATH)
  22. endif
  23. else
  24. ${CP} ${STAGING_TARGET_DIR}/$(ADK_TARGET_LIBC_PATH)/libgcc*.so* ${IDIR_LIBGCC}/$(ADK_TARGET_LIBC_PATH)
  25. endif
  26. endif
  27. include ${TOPDIR}/mk/pkg-bottom.mk