CompileInterim.gmk revision 2873:57b69e17048f
1260684Skaiw# 2260684Skaiw# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. 3276371Semaste# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4260684Skaiw# 5260684Skaiw# This code is free software; you can redistribute it and/or modify it 6260684Skaiw# under the terms of the GNU General Public License version 2 only, as 7260684Skaiw# published by the Free Software Foundation. Oracle designates this 8260684Skaiw# particular file as subject to the "Classpath" exception as provided 9260684Skaiw# by Oracle in the LICENSE file that accompanied this code. 10260684Skaiw# 11260684Skaiw# This code is distributed in the hope that it will be useful, but WITHOUT 12260684Skaiw# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13260684Skaiw# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14260684Skaiw# version 2 for more details (a copy is included in the LICENSE file that 15260684Skaiw# accompanied this code). 16260684Skaiw# 17260684Skaiw# You should have received a copy of the GNU General Public License version 18260684Skaiw# 2 along with this work; if not, write to the Free Software Foundation, 19260684Skaiw# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20260684Skaiw# 21260684Skaiw# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22260684Skaiw# or visit www.oracle.com if you need additional information or have any 23260684Skaiw# questions. 24260684Skaiw# 25260684Skaiw 26260684Skaiw# This must be the first rule 27260684Skaiwdefault: all 28260684Skaiw 29260684Skaiwinclude $(SPEC) 30276371Semasteinclude MakeBase.gmk 31260684Skaiwinclude JavaCompilation.gmk 32260684Skaiwinclude SetupJavaCompilers.gmk 33260684Skaiw 34260684Skaiw################################################################################ 35260684Skaiw# Setup the rules to build the interim langtools jar, which is compiled by 36260684Skaiw# the boot javac and can be run on the boot jdk. This will be used to compile 37260684Skaiw# the rest of the product. Include the Genstubs build tool in this compilation 38260684Skaiw# as it will be used together with the interim javac. 39260684Skaiw$(eval $(call SetupJavaCompilation,BUILD_INTERIM_LANGTOOLS, \ 40260684Skaiw SETUP := BOOT_JAVAC, \ 41260684Skaiw DISABLE_SJAVAC := true, \ 42276371Semaste SRC := $(LANGTOOLS_TOPDIR)/src/java.compiler/share/classes \ 43260684Skaiw $(LANGTOOLS_TOPDIR)/src/jdk.compiler/share/classes \ 44260684Skaiw $(LANGTOOLS_TOPDIR)/src/jdk.dev/share/classes \ 45260684Skaiw $(LANGTOOLS_TOPDIR)/src/jdk.javadoc/share/classes \ 46260684Skaiw $(SUPPORT_OUTPUTDIR)/gensrc/jdk.compiler \ 47276371Semaste $(SUPPORT_OUTPUTDIR)/gensrc/jdk.dev \ 48260684Skaiw $(SUPPORT_OUTPUTDIR)/gensrc/jdk.javadoc, \ 49260684Skaiw EXCLUDES := sun jdk, \ 50260684Skaiw COPY := .gif .xml .css .js javax.tools.JavaCompilerTool, \ 51260684Skaiw BIN := $(BUILDTOOLS_OUTPUTDIR)/langtools_interim_classes, \ 52260684Skaiw JAR := $(INTERIM_LANGTOOLS_JAR))) 53260684Skaiw 54260684Skaiwall: $(BUILD_INTERIM_LANGTOOLS) 55260684Skaiw