Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. #PKG_DFLT_LIBGCC:= y if !ADK_TOOLCHAIN_ONLY
  9. NO_DISTFILES:= 1
  10. PKG_ARCH_DEPENDS:= !avr32
  11. include ${TOPDIR}/mk/package.mk
  12. $(eval $(call PKG_template,LIBGCC,libgcc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  13. CONFIG_STYLE:= manual
  14. BUILD_STYLE:= manual
  15. INSTALL_STYLE:= manual
  16. do-install:
  17. ifeq ($(ADK_NATIVE),)
  18. ${INSTALL_DIR} ${IDIR_LIBGCC}/$(ADK_TARGET_LIBC_PATH)
  19. ifeq ($(ADK_LINUX_SH),y)
  20. ifeq ($(ADK_TARGET_LIB_GLIBC),y)
  21. ${CP} ${STAGING_TARGET_DIR}/lib/libgcc*.so* ${IDIR_LIBGCC}/$(ADK_TARGET_LIBC_PATH)
  22. else
  23. ${CP} ${STAGING_TARGET_DIR}/lib/!m4/libgcc*.so* ${IDIR_LIBGCC}/$(ADK_TARGET_LIBC_PATH)
  24. endif
  25. else
  26. ${CP} ${STAGING_TARGET_DIR}/$(ADK_TARGET_LIBC_PATH)/libgcc*.so* ${IDIR_LIBGCC}/$(ADK_TARGET_LIBC_PATH)
  27. endif
  28. endif
  29. include ${TOPDIR}/mk/pkg-bottom.mk