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