ohair@478: # ohair@478: # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. ohair@478: # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. ohair@478: # ohair@478: # This code is free software; you can redistribute it and/or modify it ohair@478: # under the terms of the GNU General Public License version 2 only, as ohair@478: # published by the Free Software Foundation. Oracle designates this ohair@478: # particular file as subject to the "Classpath" exception as provided ohair@478: # by Oracle in the LICENSE file that accompanied this code. ohair@478: # ohair@478: # This code is distributed in the hope that it will be useful, but WITHOUT ohair@478: # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ohair@478: # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ohair@478: # version 2 for more details (a copy is included in the LICENSE file that ohair@478: # accompanied this code). ohair@478: # ohair@478: # You should have received a copy of the GNU General Public License version ohair@478: # 2 along with this work; if not, write to the Free Software Foundation, ohair@478: # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. ohair@478: # ohair@478: # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA ohair@478: # or visit www.oracle.com if you need additional information or have any ohair@478: # questions. ohair@478: # ohair@478: ohair@478: # Include the legacy hotspot-spec.gmk (which in turns includes spec.gmk) ohair@478: BASE_SPEC:=$(SPEC) ohair@478: include $(dir $(SPEC))hotspot-spec.gmk ohair@478: include MakeBase.gmk ohair@478: ohair@478: # Inclusion of this pseudo-target will cause make to execute this file ohair@478: # serially, regardless of -j. Recursively called makefiles will not be ohair@478: # affected, however. This is required for correct dependency management. ohair@478: .NOTPARALLEL: ohair@478: ohair@478: default: all ohair@478: ohair@478: # Get all files except .hg in the hotspot directory. ihse@839: HOTSPOT_FILES := $(shell $(FIND) -L $(HOTSPOT_TOPDIR) -name ".hg" -prune -o -print) ohair@478: ohair@494: # The old build creates hotspot output dir before calling hotspot and ohair@494: # not doing it breaks builds on msys. ohair@478: $(HOTSPOT_OUTPUTDIR)/_hotspot.timestamp: $(HOTSPOT_FILES) ohair@494: @$(MKDIR) -p $(HOTSPOT_OUTPUTDIR) ohair@478: @($(CD) $(HOTSPOT_TOPDIR)/make && $(MAKE) -j1 $(HOTSPOT_MAKE_ARGS) SPEC=$(HOTSPOT_SPEC) BASE_SPEC=$(BASE_SPEC)) ohair@478: $(TOUCH) $@ ohair@478: ohair@478: hotspot: $(HOTSPOT_OUTPUTDIR)/_hotspot.timestamp ohair@478: ohair@478: all: hotspot ohair@478: ohair@478: .PHONY: default all hotspot