Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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_DESCR:= GNU compiler collection
  6. PKG_SECTION:= comp
  7. PKG_DEPENDS:= mpfr
  8. PKG_OPTS:= noremove
  9. include ${TOPDIR}/mk/package.mk
  10. $(eval $(call PKG_template,GCC,gcc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  11. TCFLAGS:= ''
  12. TCPPFLAGS:= ''
  13. CONFIGURE_STYLE= gnu
  14. ifeq ($(ADK_LINUX_MIPS64_LEMOTE),y)
  15. CONFIGURE_ARGS+= --with-abi=64
  16. endif
  17. CONFIGURE_ENV+= ac_cv_func_fputc_unlocked=no
  18. CONFIGURE_ARGS+= --enable-languages=c \
  19. --libexecdir=/usr/lib \
  20. --host=$(REAL_GNU_TARGET_NAME) \
  21. --target=$(REAL_GNU_TARGET_NAME) \
  22. --disable-__cxa_atexit \
  23. --without-headers \
  24. --with-gnu-ld \
  25. --disable-libssp \
  26. --disable-nls \
  27. --disable-libmudflap \
  28. --disable-libgomp \
  29. --disable-multilib
  30. BUILD_STYLE:= auto
  31. ALL_TARGET:= all-gcc all-target-libgcc
  32. INSTALL_STYLE:= auto
  33. INSTALL_TARGET:= install-gcc install-target-libgcc
  34. post-install:
  35. ${INSTALL_DIR} ${IDIR_GCC}/usr/lib/gcc ${IDIR_GCC}/usr/bin
  36. ${INSTALL_BIN} ${WRKINST}/usr/bin/gcc ${IDIR_GCC}/usr/bin/
  37. ${INSTALL_BIN} ${WRKINST}/usr/bin/cpp ${IDIR_GCC}/usr/bin/
  38. ${CP} ${WRKINST}/usr/lib/gcc/* ${IDIR_GCC}/usr/lib/gcc/
  39. ifeq ($(ADK_TARGET_LIB_UCLIBC),y)
  40. ${CP} ${STAGING_DIR}/lib/crt* ${IDIR_GCC}/usr/lib
  41. else
  42. ${CP} ${STAGING_DIR}/usr/lib/crt* ${IDIR_GCC}/usr/lib
  43. endif
  44. rm -rf ${IDIR_GCC}/usr/lib/gcc/*/*/include-fixed
  45. rm -rf ${IDIR_GCC}/usr/lib/gcc/*/*/install-tools
  46. include ${TOPDIR}/mk/pkg-bottom.mk