common/makefiles/HotspotWrapper.gmk
author jbachorik
Wed, 24 Oct 2012 20:44:07 +0100
changeset 14319 0b9fd764d40d
parent 13697 5262b00bc10c
child 14111 2a82ecb35fc7
permissions -rw-r--r--
6976971: TEST: javax/management/remote/mandatory/URLTest.java should be re-integrated Reviewed-by: alanb
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.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    39
HOTSPOT_FILES :=  $(shell $(FIND) $(HOTSPOT_TOPDIR) -name ".hg" -prune -o -print)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    40
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    41
$(HOTSPOT_OUTPUTDIR)/_hotspot.timestamp: $(HOTSPOT_FILES)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    42
	@($(CD) $(HOTSPOT_TOPDIR)/make && $(MAKE) -j1 $(HOTSPOT_MAKE_ARGS) SPEC=$(HOTSPOT_SPEC) BASE_SPEC=$(BASE_SPEC))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    43
	$(TOUCH) $@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    44
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    45
hotspot: $(HOTSPOT_OUTPUTDIR)/_hotspot.timestamp
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    46
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    47
all: hotspot
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    48
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    49
.PHONY: default all hotspot