Guest User

Untitled

a guest
Nov 2nd, 2011
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 1.10 KB | None | 0 0
  1. # Selects a Java compiler.
  2. #
  3. # Inputs:
  4. #   CUSTOM_JAVA_COMPILER -- "eclipse", "openjdk". or nothing for the system
  5. #                           default
  6. #
  7. # Outputs:
  8. #   COMMON_JAVAC -- Java compiler command with common arguments
  9.  
  10. # Whatever compiler is on this system.
  11. ifeq ($(HOST_OS), windows)
  12.     COMMON_JAVAC := development/host/windows/prebuilt/javawrap.exe -J-Xmx256m \
  13.         -target 1.5 -Xmaxerrs 9999999
  14. else
  15.     COMMON_JAVAC := javac -J-Xmx512M -target 1.6 -Xmaxerrs 9999999
  16. endif
  17.  
  18. # Eclipse.
  19. ifeq ($(CUSTOM_JAVA_COMPILER), eclipse)
  20.     COMMON_JAVAC := java -Xmx256m -jar prebuilt/common/ecj/ecj.jar -6 \
  21.         -maxProblems 9999999 -nowarn
  22.     $(info CUSTOM_JAVA_COMPILER=eclipse)
  23. endif
  24.  
  25. # OpenJDK.
  26. ifeq ($(CUSTOM_JAVA_COMPILER), openjdk)
  27.     # We set the VM options (like -Xmx) in the javac script.
  28.     COMMON_JAVAC := prebuilt/common/openjdk/bin/javac -target 1.6 \
  29.         -Xmaxerrs 9999999
  30.     $(info CUSTOM_JAVA_COMPILER=openjdk)
  31. endif
  32.    
  33. HOST_JAVAC ?= $(COMMON_JAVAC)
  34. TARGET_JAVAC ?= $(COMMON_JAVAC)
  35.    
  36. #$(info HOST_JAVAC=$(HOST_JAVAC))
  37. #$(info TARGET_JAVAC=$(TARGET_JAVAC))
  38.  
Advertisement
Add Comment
Please, Sign In to add comment