Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536
  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:= ecj
  5. PKG_VERSION:= 1
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 63220327925ace13756ae334c55a3baa
  8. include ../rules.mk
  9. install: ${STAGING_JAVA_HOST_DIR}/usr/bin/ecj
  10. ${STAGING_JAVA_HOST_DIR}/usr/bin/ecj:
  11. env \
  12. DYLD_LIBRARY_PATH=$(STAGING_JAVA_HOST_DIR)/usr/lib:$(STAGING_JAVA_HOST_DIR)/usr/lib64 \
  13. LD_LIBRARY_PATH=$(STAGING_JAVA_HOST_DIR)/usr/lib:$(STAGING_JAVA_HOST_DIR)/usr/lib64 \
  14. PATH=$(STAGING_JAVA_HOST_DIR)/usr/bin:$$PATH \
  15. $(STAGING_JAVA_HOST_DIR)/usr/bin/gcj -lgcj -O2 -findirect-dispatch \
  16. -o ${STAGING_JAVA_HOST_DIR}/usr/bin/ecj.native \
  17. --main=org.eclipse.jdt.internal.compiler.batch.Main \
  18. $(TOPDIR)/jtools_build/gcc-$(GCJ_VER)/ecj.jar
  19. echo "env LD_LIBRARY_PATH=$(STAGING_JAVA_HOST_DIR)/usr/lib:$(STAGING_JAVA_HOST_DIR)/usr/lib64 ${STAGING_JAVA_HOST_DIR}/usr/bin/ecj.native \$$@" > \
  20. ${STAGING_JAVA_HOST_DIR}/usr/bin/ecj
  21. chmod u+x ${STAGING_JAVA_HOST_DIR}/usr/bin/ecj
  22. # put a wrapper for java here
  23. mv ${STAGING_JAVA_HOST_DIR}/usr/bin/gij ${STAGING_JAVA_HOST_DIR}/usr/bin/gij.native
  24. echo "env LD_LIBRARY_PATH=$(STAGING_JAVA_HOST_DIR)/usr/lib:$(STAGING_JAVA_HOST_DIR)/usr/lib64 ${STAGING_JAVA_HOST_DIR}/usr/bin/gij.native \"\$$@\"" > \
  25. ${STAGING_JAVA_HOST_DIR}/usr/bin/java
  26. chmod u+x ${STAGING_JAVA_HOST_DIR}/usr/bin/java
  27. echo "env LD_LIBRARY_PATH=$(STAGING_JAVA_HOST_DIR)/usr/lib:$(STAGING_JAVA_HOST_DIR)/usr/lib64 ${STAGING_JAVA_HOST_DIR}/usr/bin/gij.native \"\$$@\"" > \
  28. ${STAGING_JAVA_HOST_DIR}/usr/bin/gij
  29. chmod u+x ${STAGING_JAVA_HOST_DIR}/usr/bin/gij
  30. include $(TOPDIR)/mk/tools.mk