annotate make/BuildStatic.gmk @ 51482:d7029542d67a

8209420: Track membars for volatile accesses so they can be properly optimized Reviewed-by: adinn, aph, thartmann
author roland
date Tue, 14 Aug 2018 16:54:47 +0200
parents c76b2fa11486
children dea8a62cdfc3
rev   line source
bobv@33562 1 #
bobv@33562 2 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
bobv@33562 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
bobv@33562 4 #
bobv@33562 5 # This code is free software; you can redistribute it and/or modify it
bobv@33562 6 # under the terms of the GNU General Public License version 2 only, as
bobv@33562 7 # published by the Free Software Foundation. Oracle designates this
bobv@33562 8 # particular file as subject to the "Classpath" exception as provided
bobv@33562 9 # by Oracle in the LICENSE file that accompanied this code.
bobv@33562 10 #
bobv@33562 11 # This code is distributed in the hope that it will be useful, but WITHOUT
bobv@33562 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
bobv@33562 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
bobv@33562 14 # version 2 for more details (a copy is included in the LICENSE file that
bobv@33562 15 # accompanied this code).
bobv@33562 16 #
bobv@33562 17 # You should have received a copy of the GNU General Public License version
bobv@33562 18 # 2 along with this work; if not, write to the Free Software Foundation,
bobv@33562 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
bobv@33562 20 #
bobv@33562 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
bobv@33562 22 # or visit www.oracle.com if you need additional information or have any
bobv@33562 23 # questions.
bobv@33562 24 #
bobv@33562 25
bobv@33562 26 default: all
bobv@33562 27
bobv@33562 28 include $(SPEC)
bobv@33562 29 include MakeBase.gmk
bobv@33562 30
bobv@33562 31 ################################################################################
bobv@33562 32 #
bobv@33562 33 # Concatenate exported.symbols files for modules into a single global file.
bobv@33562 34 #
bobv@33562 35
bobv@33562 36 GLOBAL_SYMBOLS_FILE := $(SUPPORT_OUTPUTDIR)/build-static/exported.symbols
bobv@33562 37
bobv@33562 38 EXPORTED_SYMBOLS_MODULES := java.base jdk.jdwp.agent
bobv@33562 39
bobv@33562 40 MODULES_SYMBOLS_FILES := $(foreach module, $(EXPORTED_SYMBOLS_MODULES), \
bobv@33562 41 $(SUPPORT_OUTPUTDIR)/modules_libs/$(module)/$(module).symbols)
bobv@33562 42
bobv@33562 43 $(GLOBAL_SYMBOLS_FILE): $(MODULES_SYMBOLS_FILES)
erikj@35008 44 $(call LogInfo, Generating global exported.symbols file)
bobv@33562 45 $(MKDIR) -p $(@D)
bobv@33562 46 $(CAT) $^ > $@
bobv@33562 47
bobv@33562 48 TARGETS += $(GLOBAL_SYMBOLS_FILE)
bobv@33562 49
bobv@33562 50 ################################################################################
bobv@33562 51
bobv@33562 52 all: $(TARGETS)
bobv@33562 53
bobv@33562 54 .PHONY: default all