make/HotspotWrapper.gmk
author smarks
Tue, 04 Aug 2015 14:45:38 -0700
changeset 32017 f58d32041dd8
parent 29662 78c47f0002c3
child 35008 ef0cd710989f
permissions -rw-r--r--
8132800: clarify stream package documentation regarding sequential vs parallel modes Reviewed-by: psandoz
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     1
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     2
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     4
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    10
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    15
# accompanied this code).
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    16
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    20
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    23
# questions.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    24
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    25
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    26
# Include the legacy hotspot-spec.gmk (which in turns includes spec.gmk)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    27
BASE_SPEC:=$(SPEC)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    28
include $(dir $(SPEC))hotspot-spec.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    29
include MakeBase.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    30
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    31
# Inclusion of this pseudo-target will cause make to execute this file
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    32
# serially, regardless of -j. Recursively called makefiles will not be
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    33
# affected, however. This is required for correct dependency management.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    34
.NOTPARALLEL:
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    35
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    36
default: all
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    37
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    38
# Get all files except .hg in the hotspot directory.
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 14111
diff changeset
    39
HOTSPOT_FILES := $(shell $(FIND) -L $(HOTSPOT_TOPDIR) -name ".hg" -prune -o -print)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    40
14111
2a82ecb35fc7 8000992: Update new build-infra makefiles
ohair
parents: 13697
diff changeset
    41
# The old build creates hotspot output dir before calling hotspot and
2a82ecb35fc7 8000992: Update new build-infra makefiles
ohair
parents: 13697
diff changeset
    42
# not doing it breaks builds on msys.
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    43
$(HOTSPOT_OUTPUTDIR)/_hotspot.timestamp: $(HOTSPOT_FILES)
14111
2a82ecb35fc7 8000992: Update new build-infra makefiles
ohair
parents: 13697
diff changeset
    44
	@$(MKDIR) -p $(HOTSPOT_OUTPUTDIR)
29662
78c47f0002c3 8076060: Improve make bootstrap process
ihse
parents: 26549
diff changeset
    45
	@($(CD) $(HOTSPOT_TOPDIR)/make && $(MAKE) $(HOTSPOT_MAKE_ARGS) LOG_LEVEL=$(LOG_LEVEL) SPEC=$(HOTSPOT_SPEC) BASE_SPEC=$(BASE_SPEC))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    46
	$(TOUCH) $@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    47
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    48
hotspot: $(HOTSPOT_OUTPUTDIR)/_hotspot.timestamp
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    49
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    50
all: hotspot
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    51
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    52
.PHONY: default all hotspot