jdk/make/common/shared/Defs-utils.gmk
author ohair
Wed, 05 Jan 2011 14:28:58 -0800
changeset 8008 753c38f4af83
parent 7668 d4a77089c587
child 8456 1ca6360372d5
permissions -rw-r--r--
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern 6413588: Add 'ldd -r' and 'dump -Lv' checks to all .so files delivered in the JDK 7000995: Add check in makefiles to verify that msvcp100.dll is NOT used Reviewed-by: mduigou
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#
7668
d4a77089c587 6962318: Update copyright year
ohair
parents: 6681
diff changeset
     2
# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 3111
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 3111
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
# accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
#
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 3111
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 3111
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 3111
diff changeset
    23
# questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
# Shared variables for standard unix utilties on all platforms.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
# Assumes Platform.gmk has been included before this file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
# These input UTILS_* variables can be defined at anytime, ideally once.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
#         Unix Commands: Normally /bin/, /usr/bin/. or C:/mksnt/mksnt/
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
#            UTILS_COMMAND_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
#         /usr/bin/ 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
#            UTILS_USR_BIN_PATH
6681
e721d11e4826 6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents: 5506
diff changeset
    36
#         /usr/ccs/bin/ (m4, lex, yacc, as, ar, strip, mcs)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
#            UTILS_CCS_BIN_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
#         Dev Tools: zip, unzip, etc that we may have special versions of
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
#            UTILS_DEVTOOL_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
# WARNING:  This file cannot assume that any of these utilties are available
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
#           to be run via their variable names defined here.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
#           The paths inside the UTILS_* variables may not be defined yet.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
# Note: There is no guarantee that all these exist on all platforms.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
#       Some only make sense for one platform, but are harmless.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
ifeq ($(PLATFORM),linux)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
  UTILS_COMMAND_PATH=$(UNIXCOMMAND_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
  UTILS_USR_BIN_PATH=$(USRBIN_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
  UTILS_CCS_BIN_PATH=$(USRBIN_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
  UTILS_DEVTOOL_PATH=$(USRBIN_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
ifeq ($(PLATFORM),solaris)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
  UTILS_COMMAND_PATH=$(UNIXCOMMAND_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
  UTILS_USR_BIN_PATH=$(UNIXCOMMAND_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
  UTILS_CCS_BIN_PATH=$(UNIXCCS_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
  UTILS_DEVTOOL_PATH=$(DEVTOOLS_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
ifeq ($(PLATFORM),windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
  UTILS_COMMAND_PATH=$(UNIXCOMMAND_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
  UTILS_USR_BIN_PATH=$(UNIXCOMMAND_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
  UTILS_CCS_BIN_PATH=$(UNIXCOMMAND_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
  UTILS_DEVTOOL_PATH=$(DEVTOOLS_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
# Utilities
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
ADB            = $(UTILS_COMMAND_PATH)adb
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
AR             = $(UTILS_CCS_BIN_PATH)ar
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
AS             = $(UTILS_CCS_BIN_PATH)as
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
BASENAME       = $(UTILS_COMMAND_PATH)basename
3111
fefdeafb7ab9 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 715
diff changeset
    75
BZIP2          = $(UTILS_COMMAND_PATH)bzip2
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
CAT            = $(UTILS_COMMAND_PATH)cat
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
CHMOD          = $(UTILS_COMMAND_PATH)chmod
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
CMP            = $(UTILS_USR_BIN_PATH)cmp
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
COMM           = $(UTILS_USR_BIN_PATH)comm
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
COMPRESS       = $(UTILS_USR_BIN_PATH)compress
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
CP             = $(UTILS_COMMAND_PATH)cp
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
CPIO           = $(UTILS_COMMAND_PATH)cpio
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
CUT            = $(UTILS_USR_BIN_PATH)cut
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
DATE           = $(UTILS_COMMAND_PATH)date
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
DF             = $(UTILS_COMMAND_PATH)df
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
DIFF           = $(UTILS_USR_BIN_PATH)diff
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
DIRNAME        = $(UTILS_USR_BIN_PATH)dirname
8008
753c38f4af83 6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents: 7668
diff changeset
    88
DUMP           = $(UTILS_CCS_BIN_PATH)dump
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
ECHO           = $(UTILS_COMMAND_PATH)echo
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
EGREP          = $(UTILS_COMMAND_PATH)egrep
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
EXPR           = $(UTILS_USR_BIN_PATH)expr
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
FILE           = $(UTILS_USR_BIN_PATH)file
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
FIND           = $(UTILS_USR_BIN_PATH)find
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
FMT            = $(UTILS_COMMAND_PATH)fmt
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
GDB            = $(UTILS_USR_BIN_PATH)gdb
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
GREP           = $(UTILS_COMMAND_PATH)grep
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
GUNZIP         = $(UTILS_COMMAND_PATH)gunzip
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
HEAD           = $(UTILS_USR_BIN_PATH)head
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
ID             = $(UTILS_COMMAND_PATH)id
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
ISAINFO        = $(UTILS_COMMAND_PATH)isainfo
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
KSH            = $(UTILS_COMMAND_PATH)ksh
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
LD             = $(UTILS_CCS_BIN_PATH)ld
8008
753c38f4af83 6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents: 7668
diff changeset
   103
LDD            = $(UTILS_USR_BIN_PATH)ldd
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
LEX            = $(UTILS_CCS_BIN_PATH)lex
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
LN             = $(UTILS_COMMAND_PATH)ln
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
LS             = $(UTILS_COMMAND_PATH)ls
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
MCS            = $(UTILS_CCS_BIN_PATH)mcs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
M4             = $(UTILS_CCS_BIN_PATH)m4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
MKDIR          = $(UTILS_COMMAND_PATH)mkdir
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
MKSINFO        = $(UTILS_COMMAND_PATH)mksinfo
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
MSGFMT         = $(UTILS_USR_BIN_PATH)msgfmt
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
MV             = $(UTILS_COMMAND_PATH)mv
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
NAWK           = $(UTILS_USR_BIN_PATH)nawk
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
NM             = $(UTILS_CCS_BIN_PATH)nm
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
PKGMK          = $(UTILS_COMMAND_PATH)pkgmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
PRINTF         = $(UTILS_USR_BIN_PATH)printf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
PWD            = $(UTILS_COMMAND_PATH)pwd
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
RC             = $(UTILS_COMMAND_PATH)rc
8008
753c38f4af83 6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents: 7668
diff changeset
   119
READELF        = $(UTILS_USR_BIN_PATH)readelf
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
RMDIR          = $(UTILS_COMMAND_PATH)rmdir
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
RPM            = $(UTILS_COMMAND_PATH)rpm
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
RPMBUILD       = $(UTILS_COMMAND_PATH)rpmbuild
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
SED            = $(UTILS_COMMAND_PATH)sed
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
SH             = $(UTILS_COMMAND_PATH)sh
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
SHOWREV        = $(UTILS_USR_BIN_PATH)showrev
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
SORT           = $(UTILS_COMMAND_PATH)sort
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
STRIP          = $(UTILS_CCS_BIN_PATH)strip
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
TAIL           = $(UTILS_USR_BIN_PATH)tail
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
TAR            = $(UTILS_COMMAND_PATH)tar
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
TEST           = $(UTILS_USR_BIN_PATH)test
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
TOUCH          = $(UTILS_COMMAND_PATH)touch
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
TR             = $(UTILS_USR_BIN_PATH)tr
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
TRUE           = $(UTILS_COMMAND_PATH)true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
UNAME          = $(UTILS_COMMAND_PATH)uname
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
UNIQ           = $(UTILS_USR_BIN_PATH)uniq
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
UNZIP          = $(UTILS_USR_BIN_PATH)unzip
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
UNZIPSFX       = $(UTILS_DEVTOOL_PATH)unzipsfx
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
WC             = $(UTILS_USR_BIN_PATH)wc
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
WHICH          = $(UTILS_USR_BIN_PATH)which
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
YACC           = $(UTILS_CCS_BIN_PATH)yacc
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
ZIPEXE         = $(UTILS_DEVTOOL_PATH)zip
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
# Special cases
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
#RM   is defined by GNU Make as 'rm -f'
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
CD             = cd # intrinsic unix command
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
# Windows specific
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
ifeq ($(PLATFORM),windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
  ifdef USING_CYGWIN
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
    # Intrinsic unix command, with backslash-escaped character interpretation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
    ECHO = $(UNIXCOMMAND_PATH)echo -e
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
    ZIPEXE = $(UNIXCOMMAND_PATH)zip
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
    UNZIP  = $(UNIXCOMMAND_PATH)unzip
530
dbf0077bad01 6590549: Cygwin build of OpenJDK has problems and not very well documented
ohair
parents: 140
diff changeset
   154
    # Some CYGWIN nawk versions require BINMODE=w for proper '\r' interpretation
dbf0077bad01 6590549: Cygwin build of OpenJDK has problems and not very well documented
ohair
parents: 140
diff changeset
   155
    NAWK   = $(UNIXCOMMAND_PATH)awk -v BINMODE=w
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
    ZIPEXE = $(UTILS_DEVTOOL_PATH)zip
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
    UNZIP  = $(UTILS_DEVTOOL_PATH)unzip
530
dbf0077bad01 6590549: Cygwin build of OpenJDK has problems and not very well documented
ohair
parents: 140
diff changeset
   159
    NAWK   = $(UNIXCOMMAND_PATH)awk
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
  # Re-define some utilities
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
  LEX            =# override GNU Make intrinsic: no lex on windows
3111
fefdeafb7ab9 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 715
diff changeset
   163
  SHA1SUM        = $(UNIXCOMMAND_PATH)openssl sha1
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
# Linux specific
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
ifeq ($(PLATFORM),linux)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
  # A few redefines
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
  # Allows for builds on Debian GNU Linux, basename is in a different place
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
  BASENAME=$(firstword $(wildcard $(UTILS_COMMAND_PATH)basename) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
                       $(wildcard $(UTILS_USR_BIN_PATH)basename))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
  # RPM 4 has replaced "rpm -b" with an entirely new utility "rpmbuild".
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
  # Also, some distribution (Ubuntu, Debian, others?) place the rpm command
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
  # itself in /usr/bin rather than it's traditional home in /bin.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
  RPM=$(firstword $(wildcard $(UTILS_COMMAND_PATH)rpm) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
		  $(wildcard $(UTILS_USR_BIN_PATH)rpm))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
  RPMBUILD=$(firstword $(wildcard $(UTILS_COMMAND_PATH)rpmbuild) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
		       $(wildcard $(UTILS_USR_BIN_PATH)rpmbuild) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
		       $(wildcard $(UTILS_COMMAND_PATH)rpm) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
		       $(wildcard $(UTILS_USR_BIN_PATH)rpm))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
  # Most Linux distros have "sort" in /bin.  Ubuntu, Debian and perhaps
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
  # others have it in /usr/bin.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
  SORT=$(firstword $(wildcard $(UTILS_COMMAND_PATH)sort) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
		   $(wildcard $(UTILS_USR_BIN_PATH)sort))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
  NAWK           = $(USRBIN_PATH)gawk
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
  # Intrinsic unix command, with backslash-escaped character interpretation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
  ECHO           = /bin/echo -e
6681
e721d11e4826 6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents: 5506
diff changeset
   188
  # These are really in UTILS_USR_BIN_PATH on Linux
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
  AR             = $(UTILS_USR_BIN_PATH)ar
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
  AS             = $(UTILS_USR_BIN_PATH)as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
  LD             = $(UTILS_USR_BIN_PATH)ld
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
  LEX            = $(UTILS_USR_BIN_PATH)lex
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
  MCS            = $(UTILS_USR_BIN_PATH)mcs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
  M4             = $(UTILS_USR_BIN_PATH)m4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
  NM             = $(UTILS_USR_BIN_PATH)nm
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
  STRIP          = $(UTILS_USR_BIN_PATH)strip
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
  YACC           = $(UTILS_USR_BIN_PATH)yacc
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
# Solaris specific
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
ifeq ($(PLATFORM),solaris)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
  # Intrinsic unix command, with backslash-escaped character interpretation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
  #   (not using -e  will cause build failure when using /bin/bash)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
  #   (using -e breaks something else)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
  ECHO           = /usr/bin/echo
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207