summaryrefslogtreecommitdiff
path: root/jtools/gcj/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-04-01 16:40:24 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-04-01 16:40:24 +0200
commite8c76b35182a24385949e28c76c56db0d86bb7b0 (patch)
tree7e6d16c2808808b183cc6b48fa56f154191afe3e /jtools/gcj/Makefile
parent125c380eef783c99f0877d60e966e37c295a2267 (diff)
add a java build tool directory
following build tools seem to be required to cross-compile OpenJDK: - fastjar - classpath - gcj - jamvm - ecj Maybe cacao is better, maybe ant is required, too. ... hacking...
Diffstat (limited to 'jtools/gcj/Makefile')
-rw-r--r--jtools/gcj/Makefile41
1 files changed, 41 insertions, 0 deletions
diff --git a/jtools/gcj/Makefile b/jtools/gcj/Makefile
new file mode 100644
index 000000000..ba31c27ea
--- /dev/null
+++ b/jtools/gcj/Makefile
@@ -0,0 +1,41 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= gcj
+PKG_VERSION:= 4.5.2
+PKG_RELEASE:= 1
+PKG_MD5SUM:= d6559145853fbaaa0fd7556ed93bce9a
+PKG_SITES:= ${MASTER_SITE_GNU:=gcc/gcc-${PKG_VERSION}/}
+DISTFILES:= gcc-$(PKG_VERSION).tar.bz2
+
+WRKDIST= ${WRKDIR}/gcc-${PKG_VERSION}
+
+include ../rules.mk
+
+install: ${STAGING_JAVA_HOST_DIR}/usr/bin/gcj
+
+$(WRKBUILD)/.configured: ${WRKDIST}/.prepared
+ (cd $(WRKBUILD); \
+ wget -O ecj.jar ftp://sourceware.org/pub/java/ecj-latest.jar; \
+ ./configure --prefix=/usr --enable-java-home --enable-languages=java --with-ffi \
+ --with-mpc=$(STAGING_HOST_DIR) --with-mpfr=$(STAGING_HOST_DIR) \
+ --with-gmp=$(STAGING_HOST_DIR) \
+ --disable-libmudflap \
+ --disable-libgomp \
+ --disable-biarch \
+ --disable-decimal-float \
+ --disable-multilib \
+ );
+ touch $@
+
+$(WRKBUILD)/.compiled: ${WRKDIST}/.configured
+ ${MAKE} -C ${WRKBUILD} $(MAKE_TRACE)
+ touch $@
+
+${STAGING_JAVA_HOST_DIR}/usr/bin/gcj: $(WRKBUILD)/.compiled
+ $(INSTALL_DIR) ${STAGING_JAVA_HOST_DIR}
+ ${MAKE} -C ${WRKBUILD} DESTDIR=$(STAGING_JAVA_HOST_DIR) install $(MAKE_TRACE)
+
+include $(TOPDIR)/mk/tools.mk