Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. PKG_NAME:= gcj
  5. PKG_RELEASE:= 1
  6. PKG_VERSION:= 4.5.3
  7. PKG_MD5SUM:= d6559145853fbaaa0fd7556ed93bce9a
  8. PKG_SITES:= ${MASTER_SITE_GNU:=gcc/gcc-${PKG_VERSION}/}
  9. DISTFILES:= gcc-$(PKG_VERSION).tar.bz2
  10. WRKDIST= ${WRKDIR}/gcc-${PKG_VERSION}
  11. include ../rules.mk
  12. GCJ_ENV+= JAR=no
  13. install: ${STAGING_JAVA_HOST_DIR}/usr/bin/gcj
  14. $(WRKBUILD)/.configured: ${WRKDIST}/.prepared
  15. (cd $(WRKBUILD); \
  16. wget -O ecj.jar ftp://sourceware.org/pub/java/ecj-latest.jar; \
  17. env ${GCJ_ENV} ./configure \
  18. --prefix=/usr \
  19. --enable-java-home \
  20. --enable-languages=java \
  21. --enable-shared \
  22. --with-ffi \
  23. --with-mpc=$(STAGING_HOST_DIR) \
  24. --with-mpfr=$(STAGING_HOST_DIR) \
  25. --with-gmp=$(STAGING_HOST_DIR) \
  26. --disable-libmudflap \
  27. --disable-libgomp \
  28. --disable-biarch \
  29. --disable-decimal-float \
  30. --disable-multilib \
  31. --disable-bootstrap \
  32. );
  33. touch $@
  34. $(WRKBUILD)/.compiled: ${WRKDIST}/.configured
  35. env ${GCJ_ENV} ${MAKE} -C ${WRKBUILD} $(MAKE_TRACE)
  36. touch $@
  37. ${STAGING_JAVA_HOST_DIR}/usr/bin/gcj: $(WRKBUILD)/.compiled
  38. $(INSTALL_DIR) ${STAGING_JAVA_HOST_DIR}
  39. env ${GCJ_ENV} ${MAKE} -C ${WRKBUILD} \
  40. DESTDIR=$(STAGING_JAVA_HOST_DIR) install $(MAKE_TRACE)
  41. include $(TOPDIR)/mk/tools.mk