annotate make/ModuleWrapper.gmk @ 54961:d04f72c354e9

8215363: needless signals in ForkJoinPool Reviewed-by: martin, chegar, dholmes
author dl
date Fri, 15 Feb 2019 11:18:01 -0800
parents 2e52aa822c57
children
rev   line source
chegar@27560 1 #
ihse@53682 2 # Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.
chegar@27560 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
chegar@27560 4 #
chegar@27560 5 # This code is free software; you can redistribute it and/or modify it
chegar@27560 6 # under the terms of the GNU General Public License version 2 only, as
chegar@27560 7 # published by the Free Software Foundation. Oracle designates this
chegar@27560 8 # particular file as subject to the "Classpath" exception as provided
chegar@27560 9 # by Oracle in the LICENSE file that accompanied this code.
chegar@27560 10 #
chegar@27560 11 # This code is distributed in the hope that it will be useful, but WITHOUT
chegar@27560 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
chegar@27560 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
chegar@27560 14 # version 2 for more details (a copy is included in the LICENSE file that
chegar@27560 15 # accompanied this code).
chegar@27560 16 #
chegar@27560 17 # You should have received a copy of the GNU General Public License version
chegar@27560 18 # 2 along with this work; if not, write to the Free Software Foundation,
chegar@27560 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
chegar@27560 20 #
chegar@27560 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
chegar@27560 22 # or visit www.oracle.com if you need additional information or have any
chegar@27560 23 # questions.
chegar@27560 24 #
chegar@27560 25
chegar@27560 26 ################################################################################
chegar@27560 27 # This makefile is called from Main.gmk, through a macro in MakeHelpers.gmk
chegar@27560 28 # and wraps calls to makefiles for specific modules and build phases. Having
ihse@28356 29 # this wrapper reduces the need for boilerplate code. It also provides
chegar@27560 30 # opportunity for automatic copying of files to an interim exploded runnable
chegar@27560 31 # image.
chegar@27560 32
chegar@27560 33 default: all
chegar@27560 34
chegar@27560 35 include $(SPEC)
chegar@27560 36 include MakeBase.gmk
chegar@27560 37
chegar@27560 38 # All makefiles should add the targets to be built to this variable.
chegar@27560 39 TARGETS :=
chegar@27560 40
chegar@27560 41 # Include the file being wrapped.
chegar@27560 42 include $(MAKEFILE_PREFIX)-$(MODULE).gmk
chegar@27560 43
chegar@27560 44 # Setup copy rules from the modules directories to the jdk image directory.
ihse@54800 45 ifeq ($(call isTargetOs, windows), true)
chegar@27560 46 TO_BIN_FILTER := %$(SHARED_LIBRARY_SUFFIX) %.diz %.pdb %.map
chegar@27560 47
erikj@41260 48 $(eval $(call SetupCopyFiles, COPY_LIBS_TO_BIN, \
chegar@27560 49 SRC := $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE), \
chegar@27560 50 DEST := $(JDK_OUTPUTDIR)/bin, \
chegar@27560 51 FILES := $(filter $(TO_BIN_FILTER), \
chegar@27560 52 $(filter $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE)/%, \
erikj@41260 53 $(TARGETS))), \
erikj@41260 54 ))
chegar@27560 55
erikj@41260 56 $(eval $(call SetupCopyFiles, COPY_LIBS_TO_LIB, \
chegar@27560 57 SRC := $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE), \
chegar@27560 58 DEST := $(JDK_OUTPUTDIR)/lib, \
chegar@27560 59 FILES := $(filter-out $(TO_BIN_FILTER), \
chegar@27560 60 $(filter $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE)/%, \
erikj@41260 61 $(TARGETS))), \
erikj@41260 62 ))
chegar@27560 63
chegar@27560 64 else
erikj@41260 65 $(eval $(call SetupCopyFiles, COPY_LIBS_TO_LIB, \
chegar@27560 66 SRC := $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE), \
chegar@27560 67 DEST := $(JDK_OUTPUTDIR)/lib, \
erikj@41260 68 FILES := $(filter %$(SHARED_LIBRARY_SUFFIX), \
erikj@41260 69 $(filter $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE)/%, \
erikj@41260 70 $(TARGETS))), \
erikj@41260 71 ))
erikj@41260 72 $(eval $(call SetupCopyFiles, LINK_LIBS_TO_LIB, \
erikj@41260 73 SRC := $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE), \
erikj@41260 74 DEST := $(JDK_OUTPUTDIR)/lib, \
erikj@41260 75 FILES := $(filter-out %$(SHARED_LIBRARY_SUFFIX), \
erikj@41260 76 $(filter $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE)/%, \
erikj@41260 77 $(TARGETS))), \
erikj@41260 78 MACRO := link-file-relative, \
erikj@42983 79 LOG_ACTION := Creating symlink, \
erikj@41260 80 ))
chegar@27560 81 endif
chegar@27560 82
erikj@41260 83 $(eval $(call SetupCopyFiles, COPY_INCLUDE, \
chegar@27560 84 SRC := $(SUPPORT_OUTPUTDIR)/modules_include/$(MODULE), \
chegar@27560 85 DEST := $(JDK_OUTPUTDIR)/include, \
chegar@27560 86 FILES := $(filter $(SUPPORT_OUTPUTDIR)/modules_include/$(MODULE)/%, \
erikj@41260 87 $(TARGETS)), \
erikj@41260 88 ))
chegar@27560 89
erikj@41260 90 $(eval $(call SetupCopyFiles, COPY_CMDS, \
chegar@27560 91 SRC := $(SUPPORT_OUTPUTDIR)/modules_cmds/$(MODULE), \
chegar@27560 92 DEST := $(JDK_OUTPUTDIR)/bin, \
erikj@41260 93 FILES := $(filter $(SUPPORT_OUTPUTDIR)/modules_cmds/$(MODULE)/%, $(TARGETS)), \
erikj@41260 94 ))
chegar@27560 95
ihse@53682 96 $(eval $(call SetupCopyFiles, COPY_MAN, \
ihse@53682 97 SRC := $(SUPPORT_OUTPUTDIR)/modules_man/$(MODULE), \
ihse@53682 98 DEST := $(JDK_OUTPUTDIR)/man, \
ihse@53682 99 FILES := $(filter $(SUPPORT_OUTPUTDIR)/modules_man/$(MODULE)/%, $(TARGETS)), \
ihse@53682 100 ))
ihse@53682 101
erikj@41260 102 $(eval $(call SetupCopyFiles, COPY_CONF, \
chegar@27560 103 SRC := $(SUPPORT_OUTPUTDIR)/modules_conf/$(MODULE), \
chegar@27560 104 DEST := $(JDK_OUTPUTDIR)/conf, \
chegar@27560 105 FILES := $(filter $(SUPPORT_OUTPUTDIR)/modules_conf/$(MODULE)/%, \
erikj@41260 106 $(TARGETS)), \
erikj@41260 107 ))
chegar@27560 108
rwestberg@52851 109 ifeq ($(GENERATE_COMPILE_COMMANDS_ONLY), true)
rwestberg@52851 110 all: $(filter $(MAKESUPPORT_OUTPUTDIR)/compile-commands/%, $(TARGETS))
rwestberg@52851 111 else
rwestberg@52851 112 all: $(TARGETS) $(COPY_LIBS_TO_BIN) $(COPY_LIBS_TO_LIB) \
ihse@53682 113 $(COPY_INCLUDE) $(COPY_CMDS) $(COPY_MAN) $(COPY_CONF) $(LINK_LIBS_TO_LIB)
rwestberg@52851 114 endif