annotate make/CompileInterimRmic.gmk @ 55009:9c44ab24b4a4

8219129: Allow overriding of license files in legal dir Reviewed-by: ihse
author erikj
date Tue, 19 Feb 2019 12:40:44 -0800
parents 7c08e9f96916
children
rev   line source
chegar@25859 1 #
lancea@49225 2 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
chegar@25859 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
chegar@25859 4 #
chegar@25859 5 # This code is free software; you can redistribute it and/or modify it
chegar@25859 6 # under the terms of the GNU General Public License version 2 only, as
chegar@25859 7 # published by the Free Software Foundation. Oracle designates this
chegar@25859 8 # particular file as subject to the "Classpath" exception as provided
chegar@25859 9 # by Oracle in the LICENSE file that accompanied this code.
chegar@25859 10 #
chegar@25859 11 # This code is distributed in the hope that it will be useful, but WITHOUT
chegar@25859 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
chegar@25859 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
chegar@25859 14 # version 2 for more details (a copy is included in the LICENSE file that
chegar@25859 15 # accompanied this code).
chegar@25859 16 #
chegar@25859 17 # You should have received a copy of the GNU General Public License version
chegar@25859 18 # 2 along with this work; if not, write to the Free Software Foundation,
chegar@25859 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
chegar@25859 20 #
chegar@25859 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
chegar@25859 22 # or visit www.oracle.com if you need additional information or have any
chegar@25859 23 # questions.
chegar@25859 24 #
chegar@25859 25
chegar@25859 26 default: all
chegar@25859 27
chegar@25859 28 include $(SPEC)
chegar@25859 29 include MakeBase.gmk
chegar@25859 30 include JavaCompilation.gmk
erikj@26191 31 include SetupJavaCompilers.gmk
chegar@25859 32
erikj@47474 33 ################################################################################
erikj@47474 34 # Generate interim versions of the module-info.java files for the interim
erikj@47474 35 # langtools modules. Each interim module has ".interim" added as suffix to the
erikj@47474 36 # original module name.
erikj@47474 37
erikj@47474 38 INTERIM_MODULEINFO_PATTERN := \
erikj@47474 39 $(foreach m, $(INTERIM_RMIC_BASE_MODULES), -e 's/$m\([,; ]\)/$m.interim\1/g') \
erikj@47474 40 -e '/ToolProvider[,; ]/d'
erikj@47474 41
erikj@47474 42 $(BUILDTOOLS_OUTPUTDIR)/gensrc/%.interim/module-info.java: \
erikj@47474 43 $(TOPDIR)/src/%/share/classes/module-info.java
erikj@47474 44 $(call LogInfo, Generating module-info.java for $*.interim)
erikj@47474 45 $(call MakeDir, $(@D))
erikj@47474 46 $(SED) $(INTERIM_MODULEINFO_PATTERN) $< > $@
erikj@47474 47
erikj@47474 48 TARGETS += $(patsubst %, $(BUILDTOOLS_OUTPUTDIR)/gensrc/%/module-info.java, \
erikj@47474 49 $(INTERIM_RMIC_MODULES))
erikj@47474 50
erikj@47474 51 ################################################################################
chegar@25859 52
chegar@25859 53 RMIC_PKGS := \
chegar@25859 54 sun/rmi/rmic \
chegar@25859 55 sun/tools/asm \
chegar@25859 56 sun/tools/java \
chegar@25859 57 sun/tools/javac \
chegar@25859 58 sun/tools/tree \
chegar@25859 59 sun/tools/util \
chegar@25859 60 #
chegar@25859 61
erikj@47474 62 $(eval $(call SetupJavaCompilation, BUILD_jdk.rmic.interim, \
chegar@25859 63 SETUP := GENERATE_OLDBYTECODE, \
erikj@47217 64 SRC := $(TOPDIR)/src/jdk.rmic/share/classes, \
erikj@47474 65 EXCLUDE_FILES := $(TOPDIR)/src/jdk.rmic/share/classes/module-info.java, \
erikj@47474 66 EXTRA_FILES := $(BUILDTOOLS_OUTPUTDIR)/gensrc/jdk.rmic.interim/module-info.java, \
chegar@25859 67 INCLUDES := $(RMIC_PKGS), \
erikj@48284 68 BIN := $(BUILDTOOLS_OUTPUTDIR)/interim_rmic_modules/jdk.rmic.interim, \
erikj@47474 69 COPY := .properties, \
erikj@47474 70 ADD_JAVAC_FLAGS := \
erikj@48284 71 --module-path $(BUILDTOOLS_OUTPUTDIR)/interim_rmic_modules \
erikj@47474 72 $(INTERIM_RMIC_ADD_EXPORTS), \
erikj@47474 73 ))
erikj@47474 74
erikj@47474 75 TARGETS += $(BUILD_jdk.rmic.interim)
chegar@25859 76
chegar@25859 77 ##########################################################################################
chegar@25859 78
erikj@47474 79 all: $(TARGETS)