author | jwilhelm |
Wed, 16 Mar 2016 14:31:32 +0100 | |
changeset 36651 | 5debddc40db8 |
parent 35033 | 36613b800836 |
child 36506 | 17612cee3530 |
permissions | -rw-r--r-- |
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 |
||
35008 | 38 |
# Get all files in src, make or agent subdirs in hotspot directory and |
39 |
# filter out .hg. This skips the test directory. |
|
40 |
HOTSPOT_FILES := $(shell $(FIND) -L \ |
|
35033
36613b800836
8147786: Building hotspot gives error message from find
erikj
parents:
35008
diff
changeset
|
41 |
$(HOTSPOT_TOPDIR)/src $(HOTSPOT_TOPDIR)/make \ |
35008 | 42 |
-name ".hg" -prune -o -print) |
13697 | 43 |
|
14111 | 44 |
# The old build creates hotspot output dir before calling hotspot and |
45 |
# not doing it breaks builds on msys. |
|
13697 | 46 |
$(HOTSPOT_OUTPUTDIR)/_hotspot.timestamp: $(HOTSPOT_FILES) |
14111 | 47 |
@$(MKDIR) -p $(HOTSPOT_OUTPUTDIR) |
35008 | 48 |
@($(CD) $(HOTSPOT_TOPDIR)/make && $(MAKE) $(HOTSPOT_MAKE_ARGS) \ |
49 |
LOG_LEVEL=$(LOG_LEVEL) SPEC=$(HOTSPOT_SPEC) BASE_SPEC=$(BASE_SPEC)) |
|
13697 | 50 |
$(TOUCH) $@ |
51 |
||
52 |
hotspot: $(HOTSPOT_OUTPUTDIR)/_hotspot.timestamp |
|
53 |
||
54 |
all: hotspot |
|
55 |
||
56 |
.PHONY: default all hotspot |