annotate Makefile @ 51167:c530d97ec3f2

Added tag jdk-11+18 for changeset e1b3def12624
author jwilhelm
date Thu, 14 Jun 2018 02:49:19 +0200
parents 78c47f0002c3
children
rev   line source
duke@0 1 #
ihse@29662 2 # Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
duke@0 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@0 4 #
duke@0 5 # This code is free software; you can redistribute it and/or modify it
duke@0 6 # under the terms of the GNU General Public License version 2 only, as
ohair@5499 7 # published by the Free Software Foundation. Oracle designates this
duke@0 8 # particular file as subject to the "Classpath" exception as provided
ohair@5499 9 # by Oracle in the LICENSE file that accompanied this code.
duke@0 10 #
duke@0 11 # This code is distributed in the hope that it will be useful, but WITHOUT
duke@0 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@0 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@0 14 # version 2 for more details (a copy is included in the LICENSE file that
duke@0 15 # accompanied this code).
duke@0 16 #
duke@0 17 # You should have received a copy of the GNU General Public License version
duke@0 18 # 2 along with this work; if not, write to the Free Software Foundation,
duke@0 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@0 20 #
ohair@5499 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@5499 22 # or visit www.oracle.com if you need additional information or have any
ohair@5499 23 # questions.
duke@0 24 #
duke@0 25
ihse@29662 26 ###
ihse@29662 27 ### This file is just a very small wrapper needed to run the real make/Init.gmk.
ihse@29662 28 ### It also performs some sanity checks on make.
ihse@29662 29 ###
ohair@13697 30
alanbur@41040 31 # The shell code below will be executed on /usr/bin/make on Solaris, but not in GNU Make.
alanbur@41040 32 # /usr/bin/make lacks basically every other flow control mechanism.
ihse@29662 33 .TEST_FOR_NON_GNUMAKE:sh=echo You are not using GNU Make/gmake, this is a requirement. Check your path. 1>&2 && exit 1
ihse@21759 34
ihse@29662 35 # The .FEATURES variable is likely to be unique for GNU Make.
ihse@29662 36 ifeq ($(.FEATURES), )
ihse@29662 37 $(info Error: '$(MAKE)' does not seem to be GNU Make, which is a requirement.)
ihse@29662 38 $(info Check your path, or upgrade to GNU Make 3.81 or newer.)
ihse@29662 39 $(error Cannot continue)
ihse@29662 40 endif
ihse@21759 41
ihse@29662 42 # Assume we have GNU Make, but check version.
ihse@21759 43 ifeq ($(strip $(foreach v, 3.81% 3.82% 4.%, $(filter $v, $(MAKE_VERSION)))), )
ihse@29662 44 $(info Error: This version of GNU Make is too low ($(MAKE_VERSION)).)
ihse@29662 45 $(info Check your path, or upgrade to GNU Make 3.81 or newer.)
ihse@29662 46 $(error Cannot continue)
ihse@29662 47 endif
ihse@29662 48
ihse@29662 49 # In Cygwin, the MAKE variable gets prepended with the current directory if the
ihse@29662 50 # make executable is called using a Windows mixed path (c:/cygwin/bin/make.exe).
ihse@29662 51 ifneq ($(findstring :, $(MAKE)), )
ihse@29662 52 MAKE := $(patsubst $(CURDIR)%, %, $(patsubst $(CURDIR)/%, %, $(MAKE)))
ohair@15064 53 endif
ohair@15064 54
ihse@21759 55 # Locate this Makefile
ihse@29662 56 ifeq ($(filter /%, $(lastword $(MAKEFILE_LIST))),)
ihse@29662 57 makefile_path := $(CURDIR)/$(strip $(lastword $(MAKEFILE_LIST)))
ihse@21759 58 else
ihse@29662 59 makefile_path := $(lastword $(MAKEFILE_LIST))
ihse@21759 60 endif
ihse@29662 61 topdir := $(strip $(patsubst %/, %, $(dir $(makefile_path))))
ihse@27595 62
ihse@29662 63 # ... and then we can include the real makefile
ihse@29662 64 include $(topdir)/make/Init.gmk