NewMakefile.gmk
author duke
Wed, 05 Jul 2017 18:23:50 +0200
changeset 13850 479d3302a26d
parent 13697 5262b00bc10c
child 14111 2a82ecb35fc7
permissions -rw-r--r--
Merge
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) 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
# Utilities used in this Makefile
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    27
BASENAME=basename
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    28
CAT=cat
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    29
CD=cd
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    30
CMP=cmp
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    31
CP=cp
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    32
ECHO=echo
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    33
MKDIR=mkdir
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    34
PWD=pwd
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    35
SH=sh
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    36
ifeq ($(PLATFORM),windows)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    37
  ZIP=zip
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    38
else
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    39
  # store symbolic links as the link
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    40
  ZIP=zip -y
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    41
endif
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    42
# Insure we have a path that looks like it came from pwd
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    43
#   (This is mostly for Windows sake and drive letters)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    44
define UnixPath # path
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    45
$(shell (cd "$1" && $(PWD)))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    46
endef
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    47
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    48
# Current root directory
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    49
CURRENT_DIRECTORY := $(shell $(PWD))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    50
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    51
# Build directory root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    52
BUILD_DIR_ROOT = $(CURRENT_DIRECTORY)/build
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    53
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    54
# All configured Makefiles to run
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    55
ALL_MAKEFILES = $(wildcard $(BUILD_DIR_ROOT)/*-*/Makefile)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    56
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    57
# All bundles to create
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    58
ALL_IMAGE_DIRS = $(wildcard $(BUILD_DIR_ROOT)/*-*/images/*-image)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    59
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    60
# Build all the standard 'all', 'images', and 'clean' targets
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    61
all images clean: checks
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    62
	@if [ "$(ALL_MAKEFILES)" = "" ] ; then \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    63
	  $(ECHO) "ERROR: No configurations to build"; exit 1; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    64
	fi
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    65
	@for bdir in $(dir $(ALL_MAKEFILES)) ; do \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    66
	  $(ECHO) "$(CD) $${bdir} && $(MAKE) $(EXTRA_MAKE_ARGS) $@" ; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    67
	  $(CD) $${bdir} && $(MAKE) $(EXTRA_MAKE_ARGS) $@ ; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    68
	done
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    69
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    70
# Bundle creation
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    71
bundles:
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    72
	@if [ "$(ALL_IMAGE_DIRS)" = "" ] ; then \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    73
	  $(ECHO) "ERROR: No images to bundle"; exit 1; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    74
	fi
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    75
	@for i in $(ALL_IMAGE_DIRS) ; do \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    76
          $(MKDIR) -p $${i}/../../bundles && \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    77
          $(RM) $${i}/../../bundles/`$(BASENAME) $${i}`.zip && \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    78
	  $(ECHO) "$(CD) $${i} && $(ZIP) -q -r ../../bundles/`$(BASENAME) $${i}`.zip ."  && \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    79
	  $(CD) $${i} && $(ZIP) -q -r ../../bundles/`$(BASENAME) $${i}`.zip . ; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    80
	done
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    81
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    82
# Clobber all the built files
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    83
clobber::
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    84
	$(RM) -r $(BUILD_DIR_ROOT)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    85
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    86
# Make various checks to insure the build will be successful
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    87
#   Possibilities:
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    88
#     * Check that if any closed repo is provided, they all must be.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    89
#     * Check that all open repos exist, at least until we are ready for some
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    90
#       kind of partial build.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    91
checks:
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    92
	@$(ECHO) "No checks yet"
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    93
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    94
# Keep track of phony targets
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    95
PHONY_LIST += all images clean clobber checks
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    96
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    97
###########################################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    98
# To help in adoption of the new configure&&make build process, a bridge
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    99
#   build will use the old settings to run configure and do the build.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   100
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   101
# Build with the configure bridge
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   102
bridgeBuild: bridge2configure images
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   103
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   104
# Bridge from old Makefile ALT settings to configure options
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   105
bridge2configure: .bridge2configureOpts
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   106
	$(CD) common/makefiles && sh ../autoconf/configure $(strip $(shell $(CAT) $<))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   107
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   108
# Create a file with configure options created from old Makefile mechanisms.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   109
.bridge2configureOpts: .bridge2configureOptsLatest
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   110
	$(RM) $@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   111
	$(CP) $< $@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   112
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   113
# In case make was invoked from a specific path
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   114
_MAKE_COMMAND_PATH:=$(firstword $(MAKE))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   115
ifneq ($(dir $(_MAKE_COMMAND_PATH)),./)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   116
  # This could be removed someday if JPRT was fixed and we could assume that
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   117
  #    the path to make was always in PATH.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   118
  MAKE_BINDIR:=$(call UnixPath,$(dir $(_MAKE_COMMAND_PATH)))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   119
  NEWPATH:=$(MAKE_BINDIR):${PATH}
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   120
  PATH:=$(NEWPATH)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   121
  export PATH
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   122
  MAKE_COMMAND=$(MAKE_BINDIR)/$(notdir $(_MAKE_COMMAND_PATH))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   123
else
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   124
  MAKE_COMMAND=$(_MAKE_COMMAND_PATH)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   125
endif
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   126
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   127
# Use this file to only change when obvious things have changed
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   128
.bridge2configureOptsLatest: FRC
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   129
	$(RM) $@.tmp
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   130
	@$(ECHO) " MAKE=$(MAKE_COMMAND) " >> $@.tmp
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   131
	@$(ECHO) " --with-debug-level=$(if $(DEBUG_LEVEL),$(DEBUG_LEVEL),release) " >> $@.tmp
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   132
ifdef ARCH_DATA_MODEL
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   133
	@$(ECHO) " --with-target-bits=$(ARCH_DATA_MODEL) " >> $@.tmp
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   134
endif
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   135
ifdef ALT_PARALLEL_COMPILE_JOBS
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   136
	@$(ECHO) " --with-num-cores=$(ALT_PARALLEL_COMPILE_JOBS) " >> $@.tmp
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   137
endif
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   138
ifdef ALT_BOOTDIR
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   139
	@$(ECHO) " --with-boot-jdk=$(call UnixPath,$(ALT_BOOTDIR)) " >> $@.tmp
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   140
endif
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   141
ifdef ALT_CUPS_HEADERS_PATH
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   142
	@$(ECHO) " --with-cups-include=$(call UnixPath,$(ALT_CUPS_HEADERS_PATH)) " >> $@.tmp
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   143
endif
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   144
ifdef ALT_FREETYPE_HEADERS_PATH
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   145
	@$(ECHO) " --with-freetype=$(call UnixPath,$(ALT_FREETYPE_HEADERS_PATH)/..) " >> $@.tmp
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   146
endif
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   147
	@if [ -f $@ ] ; then \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   148
          if ! $(CMP) $@ $@.tmp > /dev/null ; then \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   149
            $(CP) $@.tmp $@ ; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   150
          fi ; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   151
        else \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   152
          $(CP) $@.tmp $@ ; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   153
        fi
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   154
	$(RM) $@.tmp
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   155
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   156
# Clobber all the built files
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   157
clobber:: bridge2clobber
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   158
bridge2clobber::
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   159
	$(RM) .bridge2*
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   160
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   161
# Keep track of phony targets
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   162
PHONY_LIST += bridge2configure bridgeBuild bridge2clobber
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   163
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   164
###########################################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   165
# Javadocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   166
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   167
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   168
javadocs:
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   169
	cd common/makefiles && $(MAKE) -f MakefileJavadoc.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   170
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   171
# Keep track of phony targets
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   172
PHONY_LIST += javadocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   173
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   174
###########################################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   175
# JPRT targets
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   176
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   177
ifndef JPRT_ARCHIVE_BUNDLE
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   178
  JPRT_ARCHIVE_BUNDLE=/tmp/jprt_bundles/j2sdk-image.zip
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   179
endif
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   180
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   181
jprt_build_product: DEBUG_LEVEL=release
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   182
jprt_build_product: BUILD_DIRNAME=*-release
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   183
jprt_build_product: jprt_build_generic
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   184
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   185
jprt_build_fastdebug: DEBUG_LEVEL=fastdebug
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   186
jprt_build_fastdebug: BUILD_DIRNAME=*-fastdebug
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   187
jprt_build_fastdebug: jprt_build_generic
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   188
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   189
jprt_build_debug: DEBUG_LEVEL=slowdebug
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   190
jprt_build_debug: BUILD_DIRNAME=*-debug
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   191
jprt_build_debug: jprt_build_generic
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   192
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   193
jprt_build_generic: EXTRA_MAKE_ARGS=LOG=nofile,info
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   194
jprt_build_generic: $(JPRT_ARCHIVE_BUNDLE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   195
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   196
$(JPRT_ARCHIVE_BUNDLE): bridgeBuild bundles
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   197
	$(MKDIR) -p $(@D)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   198
	$(RM) $@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   199
	$(CP) $(BUILD_DIR_ROOT)/$(BUILD_DIRNAME)/bundles/j2sdk-image.zip $@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   200
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   201
# Keep track of phony targets
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   202
PHONY_LIST += jprt_build_product jprt_build_fastdebug jprt_build_debug \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   203
              jprt_build_generic
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   204
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   205
###########################################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   206
# Phony targets
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   207
.PHONY: $(PHONY_LIST)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   208
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   209
# Force target
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   210
FRC:
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   211