makefiles/BuildCorba.gmk

Print this page




  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 #
  27 # Makefile for building the corba workspace.
  28 #
  29 
  30 # This must be the first rule
  31 default: all
  32 
  33 include $(SPEC)
  34 include MakeBase.gmk
  35 include JavaCompilation.gmk
  36 include IdlCompilation.gmk
  37 
  38 JAVAC_JARS ?= "-Xbootclasspath/p:$(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar" \
  39                 -jar $(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar
  40 # The Corba sources are old and generates a LOT of warnings.
  41 # Disable these using Xlint, until someone cares to fix them. 
  42 DISABLE_CORBA_WARNINGS:=-Xlint:all,-deprecation,-unchecked,-serial,-fallthrough,-cast,-rawtypes,-static,-dep-ann
  43 
  44 # The "generate old bytecode" javac setup uses the new compiler to compile for the
  45 # boot jdk to generate tools that need to be run with the boot jdk.
  46 # Thus we force the target bytecode to the boot jdk bytecode.
  47 $(eval $(call SetupJavaCompiler,GENERATE_OLDBYTECODE,\
  48      JVM:=$(JAVA),\
  49      JAVAC:=$(JAVAC_JARS),\
  50      FLAGS:=$(BOOT_JDK_SOURCETARGET) -bootclasspath $(BOOT_RTJAR) $(DISABLE_CORBA_WARNINGS),\
  51      SERVER_DIR:=$(SJAVAC_SERVER_DIR),\
  52      SERVER_JVM:=$(SJAVAC_SERVER_JAVA)))
  53 
  54 # The "generate new bytecode" uses the new compiler to generate bytecode
  55 # for the new jdk that is being built. The code compiled by this setup
  56 # cannot necessarily be run with the boot jdk.
  57 $(eval $(call SetupJavaCompiler,GENERATE_NEWBYTECODE,\
  58      JVM:=$(JAVA),\
  59      JAVAC:=$(JAVAC_JARS),\
  60      FLAGS:=-cp $(BOOT_TOOLSJAR) -XDignore.symbol.file=true $(DISABLE_CORBA_WARNINGS),\
  61      SERVER_DIR:=$(SJAVAC_SERVER_DIR),\
  62      SERVER_JVM:=$(SJAVAC_SERVER_JAVA)))
  63 
  64 $(eval $(call SetupJavaCompilation,BUILD_STRIPPROP,\
  65                 SETUP:=GENERATE_OLDBYTECODE,\
  66                 SRC:=$(CORBA_TOPDIR)/make/tools/src,\
  67                 BIN:=$(CORBA_OUTPUTDIR)/btclasses/stripprop_classes))
  68 
  69 $(eval $(call SetupArchive,ARCHIVE_STRIPPROP,$(BUILD_STRIPPROP),\
  70                 SRCS:=$(CORBA_OUTPUTDIR)/btclasses/stripprop_classes,\
  71                 JAR:=$(CORBA_OUTPUTDIR)/btjars/stripproperties.jar,\
  72                 JARMAIN:=build.tools.stripproperties.StripPropertiesCorba))
  73 
  74 $(eval $(call SetupJavaCompilation,BUILD_IDLJ,\
  75                 SETUP:=GENERATE_OLDBYTECODE,\
  76                 SRC:=$(CORBA_TOPDIR)/src/share/classes,\
  77                 BIN:=$(CORBA_OUTPUTDIR)/btclasses/idlj_classes,\
  78                 COPY:=.prp,\
  79                 INCLUDES:=com/sun/tools/corba/se/idl,\




  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 #
  27 # Makefile for building the corba workspace.
  28 #
  29 
  30 # This must be the first rule
  31 default: all
  32 
  33 include $(SPEC)
  34 include MakeBase.gmk
  35 include JavaCompilation.gmk
  36 include IdlCompilation.gmk
  37 


  38 # The Corba sources are old and generates a LOT of warnings.
  39 # Disable these using Xlint, until someone cares to fix them. 
  40 DISABLE_CORBA_WARNINGS:=-Xlint:all,-deprecation,-unchecked,-serial,-fallthrough,-cast,-rawtypes,-static,-dep-ann
  41 
  42 # The "generate old bytecode" javac setup uses the new compiler to compile for the
  43 # boot jdk to generate tools that need to be run with the boot jdk.
  44 # Thus we force the target bytecode to the boot jdk bytecode.
  45 $(eval $(call SetupJavaCompiler,GENERATE_OLDBYTECODE,\
  46      JVM:=$(JAVA),\
  47      JAVAC:=$(NEW_JAVAC),\
  48      FLAGS:=$(BOOT_JDK_SOURCETARGET) -bootclasspath $(BOOT_RTJAR) $(DISABLE_CORBA_WARNINGS),\
  49      SERVER_DIR:=$(SJAVAC_SERVER_DIR),\
  50      SERVER_JVM:=$(SJAVAC_SERVER_JAVA)))
  51 
  52 # The "generate new bytecode" uses the new compiler to generate bytecode
  53 # for the new jdk that is being built. The code compiled by this setup
  54 # cannot necessarily be run with the boot jdk.
  55 $(eval $(call SetupJavaCompiler,GENERATE_NEWBYTECODE,\
  56      JVM:=$(JAVA),\
  57      JAVAC:=$(NEW_JAVAC),\
  58      FLAGS:=-cp $(BOOT_TOOLSJAR) -XDignore.symbol.file=true $(DISABLE_CORBA_WARNINGS),\
  59      SERVER_DIR:=$(SJAVAC_SERVER_DIR),\
  60      SERVER_JVM:=$(SJAVAC_SERVER_JAVA)))
  61 
  62 $(eval $(call SetupJavaCompilation,BUILD_STRIPPROP,\
  63                 SETUP:=GENERATE_OLDBYTECODE,\
  64                 SRC:=$(CORBA_TOPDIR)/make/tools/src,\
  65                 BIN:=$(CORBA_OUTPUTDIR)/btclasses/stripprop_classes))
  66 
  67 $(eval $(call SetupArchive,ARCHIVE_STRIPPROP,$(BUILD_STRIPPROP),\
  68                 SRCS:=$(CORBA_OUTPUTDIR)/btclasses/stripprop_classes,\
  69                 JAR:=$(CORBA_OUTPUTDIR)/btjars/stripproperties.jar,\
  70                 JARMAIN:=build.tools.stripproperties.StripPropertiesCorba))
  71 
  72 $(eval $(call SetupJavaCompilation,BUILD_IDLJ,\
  73                 SETUP:=GENERATE_OLDBYTECODE,\
  74                 SRC:=$(CORBA_TOPDIR)/src/share/classes,\
  75                 BIN:=$(CORBA_OUTPUTDIR)/btclasses/idlj_classes,\
  76                 COPY:=.prp,\
  77                 INCLUDES:=com/sun/tools/corba/se/idl,\