jdk/makefiles/CompileLaunchers.gmk
author simonis
Fri, 08 Nov 2013 18:17:06 +0100
changeset 22595 aaa6b141196c
parent 22594 32b6a490a856
child 22596 62542b8be764
permissions -rw-r--r--
8028066: PPC64: 8025715 changes broke AIX build after sync Summary: fixes the build on AIX again after the latest sync from jdk8 Reviewed-by: kvn
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
     1
#
22595
aaa6b141196c 8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents: 22594
diff changeset
     2
# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
     4
#
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    10
#
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    15
# accompanied this code).
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    16
#
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    17
# You should have received a copy of the GNU General Public License version
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    20
#
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    23
# questions.
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    24
#
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    25
20203
2e0b3aab117a 8019219: Fix typo in jdk/makefiles "default" targets
ihse
parents: 19399
diff changeset
    26
default: all
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    27
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    28
include $(SPEC)
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    29
include MakeBase.gmk
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    30
include NativeCompilation.gmk
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    31
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    32
# Setup the java compilers for the JDK build.
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    33
include Setup.gmk
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    34
15126
bceb690ccf35 8005540: build-infra: Improve incremental build speed on windows by caching find results
erikj
parents: 14523
diff changeset
    35
# Prepare the find cache. Only used on windows.
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    36
$(eval $(call FillCacheFind, $(JDK_TOPDIR)/src/share/bin))
15126
bceb690ccf35 8005540: build-infra: Improve incremental build speed on windows by caching find results
erikj
parents: 14523
diff changeset
    37
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    38
# Build tools
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    39
include Tools.gmk
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    40
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    41
BUILD_LAUNCHERS =
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    42
19399
e2e5122cd62e 5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents: 17732
diff changeset
    43
# When building a legacy overlay image (on solaris 64 bit), the launchers
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    44
# need to be built with a different rpath and a different output dir.
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    45
ifeq ($(OVERLAY_IMAGES), true)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    46
  ORIGIN_ROOT := /../..
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    47
  OUTPUT_SUBDIR := $(OPENJDK_TARGET_CPU_ISADIR)
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    48
else
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    49
  ORIGIN_ROOT := /..
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    50
endif
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    51
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    52
ifeq ($(OPENJDK_TARGET_OS), macosx)
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    53
  ORIGIN_ARG := $(call SET_EXECUTABLE_ORIGIN)
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    54
else
20884
lana
parents: 20851 20547
diff changeset
    55
  ORIGIN_ARG := $(call SET_EXECUTABLE_ORIGIN,$(ORIGIN_ROOT)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/jli)
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    56
endif
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    57
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    58
#
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    59
# Applications expect to be able to link against libjawt without invoking
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    60
# System.loadLibrary("jawt") first. This was the behaviour described in the
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    61
# devloper documentation of JAWT and what worked with OpenJDK6.
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    62
#
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    63
ifneq ($(findstring $(OPENJDK_TARGET_OS), linux solaris), )
20884
lana
parents: 20851 20547
diff changeset
    64
  ORIGIN_ARG += $(call SET_EXECUTABLE_ORIGIN,$(ORIGIN_ROOT)/lib$(OPENJDK_TARGET_CPU_LIBDIR))
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    65
endif
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    66
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    67
define SetupLauncher
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    68
  # TODO: Fix mapfile on solaris. Won't work with ld as linker.
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    69
  # Parameter 1 is the name of the launcher (java, javac, jar...)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    70
  # Parameter 2 is extra CFLAGS
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    71
  # Parameter 3 is extra LDFLAGS
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    72
  # Parameter 4 is extra LDFLAGS_SUFFIX_posix
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    73
  # Parameter 5 is extra LDFLAGS_SUFFIX_windows
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    74
  # Parameter 6 is optional Windows JLI library (full path)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    75
  # Parameter 7 is optional Windows resource (RC) flags
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    76
  # Parameter 8 is optional Windows version resource file (.rc)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    77
  # Parameter 9 is different output dir
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    78
  # Parameter 10 if set, link statically with c runtime on windows.
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    79
  # Parameter 11 if set, override plist file on macosx.
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    80
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    81
  $1_WINDOWS_JLI_LIB := $(JDK_OUTPUTDIR)/objs/libjli/jli.lib
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    82
  ifneq ($6, )
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    83
    $1_WINDOWS_JLI_LIB := $6
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    84
  endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    85
  $1_VERSION_INFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    86
  ifneq ($8, )
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    87
    $1_VERSION_INFO_RESOURCE := $8
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    88
  endif
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    89
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    90
  $1_LDFLAGS := $3
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    91
  $1_LDFLAGS_SUFFIX :=
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    92
  ifeq ($(OPENJDK_TARGET_OS), macosx)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    93
    $1_PLIST_FILE := Info-cmdline.plist
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    94
    ifneq ($(11), )
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    95
      $1_PLIST_FILE := $(11)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    96
      ifneq ($$(findstring privileged, $$($1_PLIST_FILE)), )
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    97
        $1_CODESIGN := true
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    98
      endif
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    99
    endif
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   100
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   101
    $1_LDFLAGS += -Wl,-all_load $(JDK_OUTPUTDIR)/objs/libjli_static.a \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   102
        -framework Cocoa -framework Security -framework ApplicationServices \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   103
        -sectcreate __TEXT __info_plist $(JDK_TOPDIR)/src/macosx/lib/$$($1_PLIST_FILE)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   104
        $1_LDFLAGS_SUFFIX += -pthread
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   105
  endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   106
22594
kvn
parents: 22593 21399
diff changeset
   107
  ifeq ($(OPENJDK_TARGET_OS), aix)
kvn
parents: 22593 21399
diff changeset
   108
    $1_LDFLAGS_SUFFIX += -L$(JDK_OUTPUTDIR)/objs -ljli_static
kvn
parents: 22593 21399
diff changeset
   109
  endif
kvn
parents: 22593 21399
diff changeset
   110
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   111
  ifeq ($(USE_EXTERNAL_LIBZ), true)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   112
    $1_LDFLAGS_SUFFIX += -lz
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   113
  endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   114
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   115
  $1_OUTPUT_DIR_ARG := $9
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   116
  ifeq (, $$($1_OUTPUT_DIR_ARG))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   117
    $1_OUTPUT_DIR_ARG := $(JDK_OUTPUTDIR)/bin
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   118
  endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   119
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   120
  # TODO: maybe it's better to move this if-statement out of this function
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   121
  ifeq ($1, java)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   122
    $1_OPTIMIZATION_ARG := HIGH
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   123
    $1_LDFLAGS_solaris := -R$(OPENWIN_HOME)/lib$(OPENJDK_TARGET_CPU_ISADIR)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   124
  else
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   125
  $1_OPTIMIZATION_ARG := LOW
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   126
  endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   127
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   128
  $1_CFLAGS := $(CFLAGS_JDKEXE)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   129
  ifeq ($(10), true)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   130
    $1_CFLAGS := $(filter-out -MD, $(CFLAGS_JDKEXE))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   131
  endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   132
22594
kvn
parents: 22593 21399
diff changeset
   133
  # The linker on older SuSE distros (e.g. on SLES 10) complains with:
kvn
parents: 22593 21399
diff changeset
   134
  # "Invalid version tag `SUNWprivate_1.1'. Only anonymous version tag is allowed in executable."
kvn
parents: 22593 21399
diff changeset
   135
  # if feeded with a version script which contains named tags.
kvn
parents: 22593 21399
diff changeset
   136
  ifeq ($(USING_BROKEN_SUSE_LD),yes)
kvn
parents: 22593 21399
diff changeset
   137
    ifneq ($(wildcard $(JDK_TOPDIR)/makefiles/mapfiles/launchers/mapfile-$(OPENJDK_TARGET_CPU).anonymous), )
kvn
parents: 22593 21399
diff changeset
   138
      $1_MAPFILE := $(JDK_TOPDIR)/makefiles/mapfiles/launchers/mapfile-$(OPENJDK_TARGET_CPU).anonymous
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   139
    else
22594
kvn
parents: 22593 21399
diff changeset
   140
      $1_MAPFILE :=
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   141
    endif
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   142
  else
22594
kvn
parents: 22593 21399
diff changeset
   143
    ifneq ($(wildcard $(JDK_TOPDIR)/makefiles/mapfiles/launchers/mapfile-$(OPENJDK_TARGET_CPU)), )
kvn
parents: 22593 21399
diff changeset
   144
      $1_MAPFILE := $(JDK_TOPDIR)/makefiles/mapfiles/launchers/mapfile-$(OPENJDK_TARGET_CPU)
kvn
parents: 22593 21399
diff changeset
   145
    else
kvn
parents: 22593 21399
diff changeset
   146
      $1_MAPFILE :=
kvn
parents: 22593 21399
diff changeset
   147
    endif
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   148
  endif
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   149
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   150
  $(call SetupNativeCompilation,BUILD_LAUNCHER_$1, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   151
      SRC := $(JDK_TOPDIR)/src/share/bin, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   152
      INCLUDE_FILES := main.c, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   153
      LANG := C, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   154
      OPTIMIZATION := $$($1_OPTIMIZATION_ARG), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   155
      CFLAGS := $$($1_CFLAGS) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   156
          -I$(JDK_TOPDIR)/src/share/bin \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   157
          -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   158
          -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS)/bin \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   159
          -DFULL_VERSION='"$(FULL_VERSION)"' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   160
          -DJDK_MAJOR_VERSION='"$(JDK_MAJOR_VERSION)"' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   161
          -DJDK_MINOR_VERSION='"$(JDK_MINOR_VERSION)"' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   162
          -DLIBARCHNAME='"$(OPENJDK_TARGET_CPU_LEGACY)"' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   163
          -DLAUNCHER_NAME='"$(LAUNCHER_NAME)"' \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   164
          -DPROGNAME='"$1"' $(DPACKAGEPATH) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   165
          $2, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   166
      CFLAGS_linux := -fPIC, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   167
      CFLAGS_solaris := -KPIC -DHAVE_GETHRTIME, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   168
      LDFLAGS := $(LDFLAGS_JDKEXE) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   169
          $(ORIGIN_ARG) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   170
          $$($1_LDFLAGS), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   171
      LDFLAGS_macosx := $(call SET_SHARED_LIBRARY_NAME,$1), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   172
      LDFLAGS_linux := -lpthread \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   173
          $(call SET_SHARED_LIBRARY_NAME,$(LIBRARY_PREFIX)$(SHARED_LIBRARY_SUFFIX)), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   174
      LDFLAGS_solaris := $$($1_LDFLAGS_solaris) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   175
          $(call SET_SHARED_LIBRARY_NAME,$(LIBRARY_PREFIX)$(SHARED_LIBRARY_SUFFIX)), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   176
      MAPFILE := $$($1_MAPFILE), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   177
      LDFLAGS_SUFFIX := $(LDFLAGS_JDKEXE_SUFFIX) $$($1_LDFLAGS_SUFFIX), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   178
      LDFLAGS_SUFFIX_posix := $4, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   179
      LDFLAGS_SUFFIX_windows := $$($1_WINDOWS_JLI_LIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   180
          $(JDK_OUTPUTDIR)/objs/libjava/java.lib advapi32.lib $5, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   181
      LDFLAGS_SUFFIX_linux := -L$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/jli -ljli $(LIBDL) -lc, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   182
      LDFLAGS_SUFFIX_solaris := -L$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/jli -ljli -lthread $(LIBDL) -lc, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   183
      OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/$1_objs$(OUTPUT_SUBDIR), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   184
      OUTPUT_DIR := $$($1_OUTPUT_DIR_ARG)$(OUTPUT_SUBDIR), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   185
      PROGRAM := $1, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   186
      DEBUG_SYMBOLS := true, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   187
      VERSIONINFO_RESOURCE := $$($1_VERSION_INFO_RESOURCE), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   188
      RC_FLAGS := $(RC_FLAGS) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   189
          -D "JDK_FNAME=$1$(EXE_SUFFIX)" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   190
          -D "JDK_INTERNAL_NAME=$1" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   191
          -D "JDK_FTYPE=0x1L" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   192
          $7, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   193
      MANIFEST := $(JDK_TOPDIR)/src/windows/resource/java.manifest, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   194
      CODESIGN := $$($1_CODESIGN))
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   195
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   196
  BUILD_LAUNCHERS += $$(BUILD_LAUNCHER_$1)
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   197
22594
kvn
parents: 22593 21399
diff changeset
   198
  ifneq (,$(filter $(OPENJDK_TARGET_OS), macosx aix))
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   199
    $$(BUILD_LAUNCHER_$1): $(JDK_OUTPUTDIR)/objs/libjli_static.a
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   200
  endif
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   201
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   202
  ifeq ($(OPENJDK_TARGET_OS), windows)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   203
    $$(BUILD_LAUNCHER_$1): $(JDK_OUTPUTDIR)/objs/libjava/java.lib \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   204
        $$($1_WINDOWS_JLI_LIB)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   205
  endif
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   206
endef
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   207
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   208
##########################################################################################
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   209
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   210
XLIBS := $(X_LIBS) -lX11
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   211
ifeq ($(OPENJDK_TARGET_OS), macosx)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   212
  DPACKAGEPATH := -DPACKAGE_PATH='"$(PACKAGE_PATH)"'
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   213
  XLIBS :=
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   214
endif
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   215
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   216
ifdef OPENJDK
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   217
  JAVA_RC_FLAGS += -i "$(JDK_TOPDIR)/src/windows/resource/icons"
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   218
else
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   219
  JAVA_RC_FLAGS += -i "$(JDK_TOPDIR)/src/closed/windows/native/sun/windows"
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   220
endif
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   221
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   222
# On windows, the debuginfo files get the same name as for java.dll. Build
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   223
# into another dir and copy selectively so debuginfo for java.dll isn't
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   224
# overwritten.
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   225
$(eval $(call SetupLauncher,java, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   226
    -DEXPAND_CLASSPATH_WILDCARDS,,,user32.lib comctl32.lib, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   227
    $(JDK_OUTPUTDIR)/objs/jli_static.lib, $(JAVA_RC_FLAGS), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   228
    $(JDK_TOPDIR)/src/windows/resource/java.rc, $(JDK_OUTPUTDIR)/objs/java_objs,true))
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   229
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   230
$(JDK_OUTPUTDIR)/bin$(OUTPUT_SUBDIR)/java$(EXE_SUFFIX): $(BUILD_LAUNCHER_java)
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   231
	$(MKDIR) -p $(@D)
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   232
	$(RM) $@
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   233
	$(CP) $(JDK_OUTPUTDIR)/objs/java_objs$(OUTPUT_SUBDIR)/java$(EXE_SUFFIX) $@
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   234
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   235
BUILD_LAUNCHERS += $(JDK_OUTPUTDIR)/bin$(OUTPUT_SUBDIR)/java$(EXE_SUFFIX)
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   236
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   237
ifeq ($(OPENJDK_TARGET_OS), windows)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   238
  $(eval $(call SetupLauncher,javaw, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   239
      -DJAVAW -DEXPAND_CLASSPATH_WILDCARDS,,,user32.lib comctl32.lib, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   240
      $(JDK_OUTPUTDIR)/objs/jli_static.lib, $(JAVA_RC_FLAGS), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   241
      $(JDK_TOPDIR)/src/windows/resource/java.rc,,true))
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   242
endif
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   243
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   244
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   245
ifndef BUILD_HEADLESS_ONLY
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   246
  $(eval $(call SetupLauncher,appletviewer, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   247
      -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.applet.Main"$(COMMA) }',, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   248
      $(XLIBS)))
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   249
endif
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   250
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   251
$(eval $(call SetupLauncher,extcheck, \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   252
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.extcheck.Main"$(COMMA) }'))
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   253
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   254
$(eval $(call SetupLauncher,idlj, \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   255
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.corba.se.idl.toJavaPortable.Compile"$(COMMA) }'))
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   256
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   257
$(eval $(call SetupLauncher,jar, \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   258
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.tools.jar.Main"$(COMMA) }'))
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   259
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   260
$(eval $(call SetupLauncher,jarsigner, \
14523
643702cd3aa8 8003960: build-infra: Jarsigner launcher has wrong classname
erikj
parents: 14235
diff changeset
   261
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.security.tools.jarsigner.Main"$(COMMA) }'))
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   262
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   263
$(eval $(call SetupLauncher,javac, \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   264
    -DEXPAND_CLASSPATH_WILDCARDS \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   265
    -DNEVER_ACT_AS_SERVER_CLASS_MACHINE \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   266
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.javac.Main"$(COMMA) }'))
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   267
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   268
ifeq ($(ENABLE_SJAVAC), yes)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   269
  $(eval $(call SetupLauncher,sjavac, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   270
      -DEXPAND_CLASSPATH_WILDCARDS \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   271
      -DNEVER_ACT_AS_SERVER_CLASS_MACHINE \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   272
      -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.sjavac.Main"$(COMMA) }'))
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   273
endif
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   274
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   275
$(eval $(call SetupLauncher,javadoc, \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   276
    -DEXPAND_CLASSPATH_WILDCARDS \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   277
    -DNEVER_ACT_AS_SERVER_CLASS_MACHINE \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   278
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.javadoc.Main"$(COMMA) }'))
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   279
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   280
$(eval $(call SetupLauncher,javah, \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   281
    -DEXPAND_CLASSPATH_WILDCARDS \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   282
    -DNEVER_ACT_AS_SERVER_CLASS_MACHINE \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   283
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.javah.Main"$(COMMA) }'))
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   284
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   285
$(eval $(call SetupLauncher,javap, \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   286
    -DEXPAND_CLASSPATH_WILDCARDS \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   287
    -DNEVER_ACT_AS_SERVER_CLASS_MACHINE \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   288
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.javap.Main"$(COMMA) }'))
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   289
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   290
$(eval $(call SetupLauncher,jdeps, \
14994
a544909d1d1c 8003562: Provide a CLI tool to analyze class dependencies
mchung
parents: 14523
diff changeset
   291
    -DEXPAND_CLASSPATH_WILDCARDS \
a544909d1d1c 8003562: Provide a CLI tool to analyze class dependencies
mchung
parents: 14523
diff changeset
   292
    -DNEVER_ACT_AS_SERVER_CLASS_MACHINE \
a544909d1d1c 8003562: Provide a CLI tool to analyze class dependencies
mchung
parents: 14523
diff changeset
   293
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.jdeps.Main"$(COMMA) }'))
a544909d1d1c 8003562: Provide a CLI tool to analyze class dependencies
mchung
parents: 14523
diff changeset
   294
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   295
BUILD_LAUNCHER_jconsole_CFLAGS_windows := -DJAVAW
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   296
BUILD_LAUNCHER_jconsole_LDFLAGS_windows := user32.lib
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   297
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   298
$(eval $(call SetupLauncher,jconsole, \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   299
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "-J-Djconsole.showOutputViewer"$(COMMA) "sun.tools.jconsole.JConsole"$(COMMA) }' \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   300
    -DAPP_CLASSPATH='{ "/lib/jconsole.jar"$(COMMA) "/lib/tools.jar"$(COMMA) "/classes" }'))
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   301
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   302
$(eval $(call SetupLauncher,jdb, \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   303
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.example.debug.tty.TTY"$(COMMA) }' \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   304
    -DAPP_CLASSPATH='{ "/lib/tools.jar"$(COMMA) "/lib/sa-jdi.jar"$(COMMA) "/classes" }'))
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   305
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   306
$(eval $(call SetupLauncher,jhat, \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   307
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.hat.Main"$(COMMA) }'))
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   308
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   309
$(eval $(call SetupLauncher,jinfo, \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   310
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   311
        "-J-Dsun.jvm.hotspot.debugger.useProcDebugger"$(COMMA) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   312
        "-J-Dsun.jvm.hotspot.debugger.useWindbgDebugger"$(COMMA) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   313
        "sun.tools.jinfo.JInfo"$(COMMA) }' \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   314
    -DAPP_CLASSPATH='{ "/lib/tools.jar"$(COMMA) "/lib/sa-jdi.jar"$(COMMA) "/classes" }' \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   315
    ,,,,,,,,,Info-privileged.plist))
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   316
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   317
$(eval $(call SetupLauncher,jmap, \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   318
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   319
        "-J-Dsun.jvm.hotspot.debugger.useProcDebugger"$(COMMA) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   320
        "-J-Dsun.jvm.hotspot.debugger.useWindbgDebugger"$(COMMA) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   321
        "sun.tools.jmap.JMap"$(COMMA) }' \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   322
    -DAPP_CLASSPATH='{ "/lib/tools.jar"$(COMMA) "/lib/sa-jdi.jar"$(COMMA) "/classes" }' \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   323
    ,,,,,,,,,Info-privileged.plist))
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   324
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   325
$(eval $(call SetupLauncher,jps, \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   326
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.tools.jps.Jps"$(COMMA) }'))
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   327
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   328
$(eval $(call SetupLauncher,jrunscript, \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   329
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.script.shell.Main"$(COMMA) }'))
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   330
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   331
$(eval $(call SetupLauncher,jjs, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   332
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "jdk.nashorn.tools.Shell"$(COMMA) }'))
16029
4e88242da117 8008914: Add nashorn to the tl build
jjg
parents: 15334
diff changeset
   333
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   334
$(eval $(call SetupLauncher,jsadebugd, \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   335
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.jvm.hotspot.jdi.SADebugServer"$(COMMA) }' \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   336
    -DAPP_CLASSPATH='{ "/lib/tools.jar"$(COMMA) "/lib/sa-jdi.jar"$(COMMA) "/classes" }' \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   337
    ,,,,,,,,,Info-privileged.plist))
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   338
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   339
$(eval $(call SetupLauncher,jstack, \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   340
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   341
        "-J-Dsun.jvm.hotspot.debugger.useProcDebugger"$(COMMA) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   342
        "-J-Dsun.jvm.hotspot.debugger.useWindbgDebugger"$(COMMA) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   343
        "sun.tools.jstack.JStack"$(COMMA) }' \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   344
    -DAPP_CLASSPATH='{ "/lib/tools.jar"$(COMMA) "/lib/sa-jdi.jar"$(COMMA) "/classes" }' \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   345
    ,,,,,,,,,Info-privileged.plist))
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   346
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   347
$(eval $(call SetupLauncher,jstat, \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   348
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.tools.jstat.Jstat"$(COMMA) }'))
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   349
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   350
$(eval $(call SetupLauncher,jstatd, \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   351
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.tools.jstatd.Jstatd"$(COMMA) }'))
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   352
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   353
$(eval $(call SetupLauncher,keytool, \
14235
katleman
parents: 14182 14231
diff changeset
   354
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.security.tools.keytool.Main"$(COMMA) }'))
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   355
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   356
$(eval $(call SetupLauncher,native2ascii, \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   357
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.tools.native2ascii.Main"$(COMMA) }'))
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   358
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   359
ifndef BUILD_HEADLESS_ONLY
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   360
  $(eval $(call SetupLauncher,policytool, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   361
      -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.security.tools.policytool.PolicyTool"$(COMMA) }',, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   362
      $(XLIBS)))
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   363
endif
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   364
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   365
$(eval $(call SetupLauncher,rmic, \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   366
    -DEXPAND_CLASSPATH_WILDCARDS \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   367
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.rmi.rmic.Main"$(COMMA) }'))
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   368
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   369
$(eval $(call SetupLauncher,schemagen, \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   370
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.internal.jxc.SchemaGenerator"$(COMMA) }'))
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   371
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   372
$(eval $(call SetupLauncher,serialver, \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   373
    -DEXPAND_CLASSPATH_WILDCARDS \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   374
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.tools.serialver.SerialVer"$(COMMA) }'))
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   375
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   376
$(eval $(call SetupLauncher,xjc, \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   377
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.internal.xjc.Driver"$(COMMA) }'))
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   378
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   379
$(eval $(call SetupLauncher,wsgen, \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   380
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.internal.ws.WsGen"$(COMMA) }'))
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   381
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   382
$(eval $(call SetupLauncher,wsimport, \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   383
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.internal.ws.WsImport"$(COMMA) }'))
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   384
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   385
$(eval $(call SetupLauncher,orbd, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   386
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   387
        "-J-Dcom.sun.CORBA.activation.DbDir=./orb.db"$(COMMA) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   388
        "-J-Dcom.sun.CORBA.activation.Port=1049"$(COMMA) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   389
        "-J-Dcom.sun.CORBA.POA.ORBServerId=1"$(COMMA) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   390
        "com.sun.corba.se.impl.activation.ORBD"$(COMMA) }'))
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   391
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   392
$(eval $(call SetupLauncher,servertool, \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   393
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.corba.se.impl.activation.ServerTool"$(COMMA) }'))
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   394
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   395
$(eval $(call SetupLauncher,tnameserv, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   396
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   397
        "-J-Dcom.sun.CORBA.activation.DbDir=./orb.db"$(COMMA) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   398
        "-J-Djava.util.logging.LoggingPermission=contol"$(COMMA) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   399
        "-J-Dcom.sun.CORBA.POA.ORBServerId=1"$(COMMA) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   400
        "com.sun.corba.se.impl.naming.cosnaming.TransientNameServer"$(COMMA) }'))
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   401
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   402
$(eval $(call SetupLauncher,pack200, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   403
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.java.util.jar.pack.Driver"$(COMMA) "--pack" }'))
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   404
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   405
$(eval $(call SetupLauncher,rmid, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   406
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.rmi.server.Activation"$(COMMA) }'))
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   407
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   408
$(eval $(call SetupLauncher,rmiregistry, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   409
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.rmi.registry.RegistryImpl"$(COMMA) }'))
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   410
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   411
$(eval $(call SetupLauncher,jcmd, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   412
    -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.tools.jcmd.JCmd"$(COMMA) }'))
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   413
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   414
ifeq ($(OPENJDK_TARGET_OS), windows)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   415
  $(eval $(call SetupLauncher,kinit, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   416
      -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.security.krb5.internal.tools.Kinit"$(COMMA) }'))
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   417
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   418
  $(eval $(call SetupLauncher,klist, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   419
      -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.security.krb5.internal.tools.Klist"$(COMMA) }'))
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   420
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   421
  $(eval $(call SetupLauncher,ktab, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   422
      -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.security.krb5.internal.tools.Ktab"$(COMMA) }'))
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   423
endif
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   424
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   425
##########################################################################################
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   426
# The order of the object files on the link command line affects the size of the resulting
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   427
# binary (at least on linux) which causes the size to differ between old and new build.
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   428
ifeq ($(USE_EXTERNAL_LIBZ), true)
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   429
  UNPACKEXE_CFLAGS := -DSYSTEM_ZLIB
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   430
  UNPACKEXE_ZIPOBJS := -lz
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   431
else
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   432
  UNPACKEXE_CFLAGS := -I$(JDK_TOPDIR)/src/share/native/java/util/zip/zlib-1.2.5
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   433
  UNPACKEXE_ZIPOBJS := $(JDK_OUTPUTDIR)/objs/libzip/zcrc32$(OBJ_SUFFIX) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   434
      $(JDK_OUTPUTDIR)/objs/libzip/deflate$(OBJ_SUFFIX) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   435
      $(JDK_OUTPUTDIR)/objs/libzip/trees$(OBJ_SUFFIX) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   436
      $(JDK_OUTPUTDIR)/objs/libzip/zadler32$(OBJ_SUFFIX) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   437
      $(JDK_OUTPUTDIR)/objs/libzip/compress$(OBJ_SUFFIX) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   438
      $(JDK_OUTPUTDIR)/objs/libzip/zutil$(OBJ_SUFFIX) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   439
      $(JDK_OUTPUTDIR)/objs/libzip/inflate$(OBJ_SUFFIX) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   440
      $(JDK_OUTPUTDIR)/objs/libzip/infback$(OBJ_SUFFIX) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   441
      $(JDK_OUTPUTDIR)/objs/libzip/inftrees$(OBJ_SUFFIX) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   442
      $(JDK_OUTPUTDIR)/objs/libzip/inffast$(OBJ_SUFFIX)
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   443
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   444
endif
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   445
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   446
ifeq ($(OPENJDK_TARGET_CPU_ARCH), sparc)
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   447
  UNPACKEXE_CFLAGS += -xregs=no%appl
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   448
  UNPACKEXE_LDFLAGS_solaris += -xmemalign=4s
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   449
endif
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   450
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   451
UNPACKEXE_LANG := C
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   452
ifeq ($(OPENJDK_TARGET_OS), solaris)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   453
  UNPACKEXE_LANG := C++
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   454
endif
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   455
# On windows, unpack200 is linked completely differently to all other
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   456
# executables, using the compiler with the compiler arguments.
19399
e2e5122cd62e 5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents: 17732
diff changeset
   457
# It's also linked incrementally, producing a .ilk file that needs to
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   458
# be kept away.
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   459
ifeq ($(OPENJDK_TARGET_OS), windows)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   460
  BUILD_UNPACKEXE_LDEXE := $(CC)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   461
  EXE_OUT_OPTION_save := $(EXE_OUT_OPTION)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   462
  EXE_OUT_OPTION := -Fe
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   463
endif
22587
28bea2d65a18 8017568: PPC64: Generic build preparations needed to enable new build on Linux/PPC64
simonis
parents: 17732
diff changeset
   464
28bea2d65a18 8017568: PPC64: Generic build preparations needed to enable new build on Linux/PPC64
simonis
parents: 17732
diff changeset
   465
# The linker on older SuSE distros (e.g. on SLES 10) complains with:
28bea2d65a18 8017568: PPC64: Generic build preparations needed to enable new build on Linux/PPC64
simonis
parents: 17732
diff changeset
   466
# "Invalid version tag `SUNWprivate_1.1'. Only anonymous version tag is allowed in executable."
28bea2d65a18 8017568: PPC64: Generic build preparations needed to enable new build on Linux/PPC64
simonis
parents: 17732
diff changeset
   467
# if feeded with a version script which contains named tags.
22594
kvn
parents: 22593 21399
diff changeset
   468
ifeq ($(USING_BROKEN_SUSE_LD), yes)
kvn
parents: 22593 21399
diff changeset
   469
  UNPACK_MAPFILE = $(JDK_TOPDIR)/makefiles/mapfiles/libunpack/mapfile-vers-unpack200.anonymous
22587
28bea2d65a18 8017568: PPC64: Generic build preparations needed to enable new build on Linux/PPC64
simonis
parents: 17732
diff changeset
   470
else
22594
kvn
parents: 22593 21399
diff changeset
   471
  UNPACK_MAPFILE = $(JDK_TOPDIR)/makefiles/mapfiles/libunpack/mapfile-vers-unpack200
22587
28bea2d65a18 8017568: PPC64: Generic build preparations needed to enable new build on Linux/PPC64
simonis
parents: 17732
diff changeset
   472
endif
28bea2d65a18 8017568: PPC64: Generic build preparations needed to enable new build on Linux/PPC64
simonis
parents: 17732
diff changeset
   473
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   474
$(eval $(call SetupNativeCompilation,BUILD_UNPACKEXE, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   475
    SRC := $(JDK_TOPDIR)/src/share/native/com/sun/java/util/jar/pack, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   476
    EXCLUDE_FILES := jni.cpp, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   477
    LANG := $(UNPACKEXE_LANG), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   478
    OPTIMIZATION := LOW, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   479
    CFLAGS := $(UNPACKEXE_CFLAGS) $(CXXFLAGS_JDKEXE) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   480
        -DFULL, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   481
    CFLAGS_release := -DPRODUCT, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   482
    CFLAGS_linux := -fPIC, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   483
    CFLAGS_solaris := -KPIC, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   484
    CFLAGS_macosx := -fPIC, \
22594
kvn
parents: 22593 21399
diff changeset
   485
    MAPFILE := $(UNPACK_MAPFILE),\
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   486
    LDFLAGS := $(UNPACKEXE_ZIPOBJS), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   487
    LDFLAGS_windows := $(CXXFLAGS_JDKEXE), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   488
    LDFLAGS_posix := $(LDFLAGS_JDKEXE) $(LDFLAGS_CXX_JDK) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   489
        $(call SET_SHARED_LIBRARY_NAME,$(LIBRARY_PREFIX)unpack$(SHARED_LIBRARY_SUFFIX)) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   490
        $(call SET_SHARED_LIBRARY_ORIGIN), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   491
    LDFLAGS_linux := -lc, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   492
    LDFLAGS_solaris := $(UNPACKEXE_LDFLAGS_solaris) -lc, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   493
    LDFLAGS_SUFFIX := $(LIBCXX), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   494
    OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/unpackexe$(OUTPUT_SUBDIR), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   495
    OUTPUT_DIR := $(JDK_OUTPUTDIR)/objs/unpackexe$(OUTPUT_SUBDIR), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   496
    PROGRAM := unpack200, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   497
    VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   498
    RC_FLAGS := $(RC_FLAGS) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   499
        -D "JDK_FNAME=unpack200.exe" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   500
        -D "JDK_INTERNAL_NAME=unpack200" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   501
        -D "JDK_FTYPE=0x1L", \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   502
    DEBUG_SYMBOLS := true, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   503
    MANIFEST := $(JDK_TOPDIR)/src/windows/resource/unpack200_proto.exe.manifest))
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   504
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   505
ifeq ($(OPENJDK_TARGET_OS), windows)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   506
  EXE_OUT_OPTION := $(EXE_OUT_OPTION_save)
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   507
endif
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   508
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   509
ifneq ($(USE_EXTERNAL_LIBZ), true)
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   510
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   511
  $(BUILD_UNPACKEXE): $(UNPACKEXE_ZIPOBJS)
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   512
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   513
endif
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   514
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   515
# Build into object dir and copy executable afterwards to avoid .ilk file in
19399
e2e5122cd62e 5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents: 17732
diff changeset
   516
# image. The real fix would be clean up linking of unpack200 using
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   517
# -link -incremental:no
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   518
# like all other launchers.
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   519
$(JDK_OUTPUTDIR)/bin$(OUTPUT_SUBDIR)/unpack200$(EXE_SUFFIX): $(BUILD_UNPACKEXE)
16636
1cc691bcfe50 8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents: 16029
diff changeset
   520
	$(call install-file)
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   521
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   522
BUILD_LAUNCHERS += $(JDK_OUTPUTDIR)/bin$(OUTPUT_SUBDIR)/unpack200$(EXE_SUFFIX)
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   523
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   524
##########################################################################################
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   525
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   526
19399
e2e5122cd62e 5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents: 17732
diff changeset
   527
BUILD_JEXEC :=
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   528
BUILD_JEXEC_SRC :=
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   529
BUILD_JEXEC_INC :=
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   530
BUILD_JEXEC_DST_DIR := $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   531
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   532
#
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   533
# UNHANDLED:
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   534
# - COMPILE_APPROACH = normal
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   535
#
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   536
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   537
#
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   538
# jdk/make/java/Makefile
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   539
#
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   540
ifeq ($(OPENJDK_TARGET_OS), solaris)
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   541
  ifeq ($(OPENJDK_TARGET_CPU_BITS), 32)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   542
    BUILD_JEXEC := 1
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   543
  endif
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   544
endif
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   545
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   546
ifeq ($(OPENJDK_TARGET_OS), linux)
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   547
  BUILD_JEXEC := 1
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   548
endif # OPENJDK_TARGET_OS
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   549
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   550
#
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   551
# jdk/make/java/jexec/Makefile
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   552
#
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   553
ifeq ($(BUILD_JEXEC), 1)
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   554
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   555
  ifeq ($(OPENJDK_TARGET_OS), windows)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   556
  else ifeq ($(OPENJDK_TARGET_OS), macosx)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   557
    BUILD_JEXEC_SRC := $(JDK_TOPDIR)/src/macosx/bin
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   558
  else
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   559
    BUILD_JEXEC_SRC := $(JDK_TOPDIR)/src/solaris/bin
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   560
  endif
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   561
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   562
  ifeq ($(OPENJDK_TARGET_OS), linux)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   563
    BUILD_JEXEC_DST_DIR := $(JDK_OUTPUTDIR)/lib
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   564
    BUILD_JEXEC_INC += -I$(JDK_TOPDIR)/src/share/bin
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   565
  endif
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   566
endif
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   567
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   568
#
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   569
# Note that the two Makefile's seems to contradict each other,
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   570
# and that src/macosx/bin/jexec.c seems unused
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   571
#
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   572
ifneq ($(BUILD_JEXEC_SRC), )
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   573
  $(eval $(call SetupNativeCompilation,BUILD_JEXEC, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   574
      SRC := $(BUILD_JEXEC_SRC), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   575
      INCLUDE_FILES := jexec.c, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   576
      LANG := C, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   577
      OPTIMIZATION := LOW, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   578
      CFLAGS := $(CFLAGS_JDKEXE) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   579
          $(BUILD_JEXEC_INC), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   580
      CFLAGS_linux := -fPIC, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   581
      CFLAGS_solaris := -KPIC, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   582
      LDFLAGS := $(LDFLAGS_JDKEXE) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   583
          $(call SET_SHARED_LIBRARY_NAME,$(LIBRARY_PREFIX)$(SHARED_LIBRARY_SUFFIX)), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   584
      OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/jexec_obj, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   585
      OUTPUT_DIR := $(BUILD_JEXEC_DST_DIR), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   586
      DEBUG_SYMBOLS := true, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   587
      PROGRAM := jexec))
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   588
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   589
  BUILD_LAUNCHERS += $(BUILD_JEXEC)
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   590
endif
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   591
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   592
##########################################################################################
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   593
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   594
#
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   595
# The java-rmi.cgi script in bin/ only gets delivered in certain situations
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   596
#
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   597
JAVA_RMI_CGI := $(JDK_OUTPUTDIR)/bin$(OUTPUT_SUBDIR)/java-rmi.cgi
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   598
ifeq ($(OPENJDK_TARGET_OS), linux)
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   599
  BUILD_LAUNCHERS += $(JAVA_RMI_CGI)
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   600
endif
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   601
ifeq ($(OPENJDK_TARGET_OS), solaris)
20894
e76b60e555d7 8026974: solaris build missing java-rmi.cgi
cl
parents: 20547
diff changeset
   602
  BUILD_LAUNCHERS += $(JAVA_RMI_CGI)
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   603
endif
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   604
19399
e2e5122cd62e 5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents: 17732
diff changeset
   605
# TODO:
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   606
# On windows java-rmi.cgi shouldn't be bundled since Java 1.2, but has been built all
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   607
# this time anyway. Since jdk6, it has been built from the wrong source and resulted
19399
e2e5122cd62e 5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents: 17732
diff changeset
   608
# in a (almost) copy of the standard java launcher named "java-rmi.exe" ending up in
e2e5122cd62e 5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents: 17732
diff changeset
   609
# the final images bin dir. This weird behavior is mimicked here in the converted
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   610
# makefiles for now. Should probably just be deleted.
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   611
# http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6512052
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   612
ifeq ($(OPENJDK_TARGET_OS), windows)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   613
  $(eval $(call SetupLauncher,java-rmi, , \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   614
      $(call SET_SHARED_LIBRARY_MAPFILE,$(JDK_TOPDIR)/makefiles/java/main/java/mapfile-$(OPENJDK_TARGET_CPU))))
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   615
else
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   616
  $(JAVA_RMI_CGI): $(JDK_TOPDIR)/src/solaris/bin/java-rmi.cgi.sh
16636
1cc691bcfe50 8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents: 16029
diff changeset
   617
	$(call install-file)
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   618
	$(CHMOD) a+x $@
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   619
endif
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   620
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   621
##########################################################################################
19399
e2e5122cd62e 5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents: 17732
diff changeset
   622
e2e5122cd62e 5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents: 17732
diff changeset
   623
BUILD_JSPAWNHELPER :=
e2e5122cd62e 5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents: 17732
diff changeset
   624
BUILD_JSPAWNHELPER_SRC := $(JDK_TOPDIR)/src/solaris/native/java/lang
e2e5122cd62e 5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents: 17732
diff changeset
   625
BUILD_JSPAWNHELPER_DST_DIR := $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)
e2e5122cd62e 5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents: 17732
diff changeset
   626
LINK_JSPAWNHELPER_OBJECTS := $(JDK_OUTPUTDIR)/objs/libjava/childproc.o
e2e5122cd62e 5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents: 17732
diff changeset
   627
LINK_JSPAWNHELPER_FLAGS :=
e2e5122cd62e 5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents: 17732
diff changeset
   628
22595
aaa6b141196c 8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents: 22594
diff changeset
   629
ifneq ($(findstring $(OPENJDK_TARGET_OS), macosx solaris aix), )
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   630
  BUILD_JSPAWNHELPER := 1
19399
e2e5122cd62e 5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents: 17732
diff changeset
   631
endif
e2e5122cd62e 5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents: 17732
diff changeset
   632
e2e5122cd62e 5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents: 17732
diff changeset
   633
ifeq ($(OPENJDK_TARGET_OS), macosx)
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   634
  BUILD_JSPAWNHELPER_DST_DIR := $(JDK_OUTPUTDIR)/lib
19399
e2e5122cd62e 5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents: 17732
diff changeset
   635
endif
e2e5122cd62e 5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents: 17732
diff changeset
   636
e2e5122cd62e 5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents: 17732
diff changeset
   637
ifeq ($(OPENJDK_TARGET_CPU_BITS), 64)
22595
aaa6b141196c 8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents: 22594
diff changeset
   638
  LINK_JSPAWNHELPER_FLAGS += $(COMPILER_TARGET_BITS_FLAG)64
19399
e2e5122cd62e 5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents: 17732
diff changeset
   639
endif
e2e5122cd62e 5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents: 17732
diff changeset
   640
e2e5122cd62e 5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents: 17732
diff changeset
   641
ifeq ($(BUILD_JSPAWNHELPER), 1)
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   642
  $(eval $(call SetupNativeCompilation,BUILD_JSPAWNHELPER, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   643
      SRC := $(BUILD_JSPAWNHELPER_SRC), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   644
      INCLUDE_FILES := jspawnhelper.c, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   645
      LANG := C, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   646
      OPTIMIZATION := LOW, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   647
      CFLAGS := $(CFLAGS_JDKEXE), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   648
      LDFLAGS := $(LDFLAGS_JDKEXE) $(LINK_JSPAWNHELPER_FLAGS), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   649
      LDFLAGS_SUFFIX := $(LINK_JSPAWNHELPER_OBJECTS), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   650
      OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/jspawnhelper, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   651
      OUTPUT_DIR := $(BUILD_JSPAWNHELPER_DST_DIR), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   652
      PROGRAM := jspawnhelper))
19399
e2e5122cd62e 5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents: 17732
diff changeset
   653
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   654
  $(BUILD_JSPAWNHELPER): $(LINK_JSPAWNHELPER_OBJECTS)
19399
e2e5122cd62e 5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents: 17732
diff changeset
   655
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   656
  BUILD_LAUNCHERS += $(BUILD_JSPAWNHELPER)
19399
e2e5122cd62e 5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents: 17732
diff changeset
   657
endif
e2e5122cd62e 5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents: 17732
diff changeset
   658
e2e5122cd62e 5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents: 17732
diff changeset
   659
##########################################################################################
15324
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14994
diff changeset
   660
# jabswitch
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14994
diff changeset
   661
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14994
diff changeset
   662
ifndef OPENJDK
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   663
  ifeq ($(OPENJDK_TARGET_OS), windows)
15324
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14994
diff changeset
   664
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   665
    $(eval $(call SetupNativeCompilation,BUILD_JABSWITCH, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   666
        SRC := $(JDK_TOPDIR)/src/closed/windows/native/sun/bridge, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   667
        INCLUDE_FILES := jabswitch.cpp, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   668
        LANG := C++, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   669
        CFLAGS := $(filter-out -Zc:wchar_t-, $(CFLAGS_JDKEXE)) -Zc:wchar_t \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   670
            -analyze- -Od -Gd -D_WINDOWS \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   671
            -D_UNICODE -DUNICODE -RTC1 -EHsc, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   672
        LDFLAGS := $(LDFLAGS_JDKEXE) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   673
            Advapi32.lib Version.lib User32.lib, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   674
        OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/jabswitch, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   675
        OUTPUT_DIR := $(JDK_OUTPUTDIR)/bin, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   676
        PROGRAM := jabswitch, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   677
        DEBUG_SYMBOLS := true, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   678
        VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/closed/windows/native/sun/bridge/AccessBridgeStatusWindow.rc, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   679
        RC_FLAGS := $(RC_FLAGS), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   680
        MANIFEST := $(JDK_TOPDIR)/src/closed/windows/native/sun/bridge/jabswitch.manifest))
15324
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14994
diff changeset
   681
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14994
diff changeset
   682
    BUILD_LAUNCHERS += $(BUILD_JABSWITCH)
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14994
diff changeset
   683
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   684
  endif
15324
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14994
diff changeset
   685
endif
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14994
diff changeset
   686
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14994
diff changeset
   687
##########################################################################################
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   688
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   689
$(BUILD_LAUNCHERS): $(JDK_TOPDIR)/makefiles/CompileLaunchers.gmk
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   690
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   691
all: $(BUILD_LAUNCHERS)
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   692
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   693
.PHONY: all