jdk/make/common/shared/Defs-utils.gmk
changeset 8835 71d383b902e9
parent 8796 604a43386301
child 9359 71368169c69d
equal deleted inserted replaced
8834:f69a163a9b51 8835:71d383b902e9
     1 #
     1 #
     2 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
     2 # Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4 #
     4 #
     5 # This code is free software; you can redistribute it and/or modify it
     5 # This code is free software; you can redistribute it and/or modify it
     6 # under the terms of the GNU General Public License version 2 only, as
     6 # under the terms of the GNU General Public License version 2 only, as
     7 # published by the Free Software Foundation.  Oracle designates this
     7 # published by the Free Software Foundation.  Oracle designates this
    66   UTILS_CCS_BIN_PATH=$(UNIXCOMMAND_PATH)
    66   UTILS_CCS_BIN_PATH=$(UNIXCOMMAND_PATH)
    67   UTILS_DEVTOOL_PATH=$(DEVTOOLS_PATH)
    67   UTILS_DEVTOOL_PATH=$(DEVTOOLS_PATH)
    68 endif
    68 endif
    69 
    69 
    70 # Utilities
    70 # Utilities
       
    71 ifdef CROSS_COMPILE_ARCH
       
    72   AR             = $(COMPILER_PATH)ar
       
    73   AS             = $(COMPILER_PATH)as
       
    74   LD             = $(COMPILER_PATH)ld
       
    75   MCS            = $(COMPILER_PATH)mcs
       
    76   NM             = $(COMPILER_PATH)nm
       
    77   STRIP          = $(COMPILER_PATH)strip
       
    78 else
       
    79   AR             = $(UTILS_CCS_BIN_PATH)ar
       
    80   AS             = $(UTILS_CCS_BIN_PATH)as
       
    81   LD             = $(UTILS_CCS_BIN_PATH)ld
       
    82   MCS            = $(UTILS_CCS_BIN_PATH)mcs
       
    83   NM             = $(UTILS_CCS_BIN_PATH)nm
       
    84   STRIP          = $(UTILS_CCS_BIN_PATH)strip
       
    85 endif
       
    86 
    71 ADB            = $(UTILS_COMMAND_PATH)adb
    87 ADB            = $(UTILS_COMMAND_PATH)adb
    72 AR             = $(UTILS_CCS_BIN_PATH)ar
       
    73 AS             = $(UTILS_CCS_BIN_PATH)as
       
    74 BASENAME       = $(UTILS_COMMAND_PATH)basename
    88 BASENAME       = $(UTILS_COMMAND_PATH)basename
    75 BZIP2          = $(UTILS_COMMAND_PATH)bzip2
    89 BZIP2          = $(UTILS_COMMAND_PATH)bzip2
    76 CAT            = $(UTILS_COMMAND_PATH)cat
    90 CAT            = $(UTILS_COMMAND_PATH)cat
    77 CHMOD          = $(UTILS_COMMAND_PATH)chmod
    91 CHMOD          = $(UTILS_COMMAND_PATH)chmod
    78 CMP            = $(UTILS_USR_BIN_PATH)cmp
    92 CMP            = $(UTILS_USR_BIN_PATH)cmp
    97 GUNZIP         = $(UTILS_COMMAND_PATH)gunzip
   111 GUNZIP         = $(UTILS_COMMAND_PATH)gunzip
    98 HEAD           = $(UTILS_USR_BIN_PATH)head
   112 HEAD           = $(UTILS_USR_BIN_PATH)head
    99 ID             = $(UTILS_COMMAND_PATH)id
   113 ID             = $(UTILS_COMMAND_PATH)id
   100 ISAINFO        = $(UTILS_COMMAND_PATH)isainfo
   114 ISAINFO        = $(UTILS_COMMAND_PATH)isainfo
   101 KSH            = $(UTILS_COMMAND_PATH)ksh
   115 KSH            = $(UTILS_COMMAND_PATH)ksh
   102 LD             = $(UTILS_CCS_BIN_PATH)ld
       
   103 LDD            = $(UTILS_USR_BIN_PATH)ldd
   116 LDD            = $(UTILS_USR_BIN_PATH)ldd
   104 LEX            = $(UTILS_CCS_BIN_PATH)lex
   117 LEX            = $(UTILS_CCS_BIN_PATH)lex
   105 LN             = $(UTILS_COMMAND_PATH)ln
   118 LN             = $(UTILS_COMMAND_PATH)ln
   106 LS             = $(UTILS_COMMAND_PATH)ls
   119 LS             = $(UTILS_COMMAND_PATH)ls
   107 MCS            = $(UTILS_CCS_BIN_PATH)mcs
       
   108 M4             = $(UTILS_CCS_BIN_PATH)m4
   120 M4             = $(UTILS_CCS_BIN_PATH)m4
   109 MKDIR          = $(UTILS_COMMAND_PATH)mkdir
   121 MKDIR          = $(UTILS_COMMAND_PATH)mkdir
   110 MKSINFO        = $(UTILS_COMMAND_PATH)mksinfo
   122 MKSINFO        = $(UTILS_COMMAND_PATH)mksinfo
   111 MSGFMT         = $(UTILS_USR_BIN_PATH)msgfmt
   123 MSGFMT         = $(UTILS_USR_BIN_PATH)msgfmt
   112 MV             = $(UTILS_COMMAND_PATH)mv
   124 MV             = $(UTILS_COMMAND_PATH)mv
   113 NAWK           = $(UTILS_USR_BIN_PATH)nawk
   125 NAWK           = $(UTILS_USR_BIN_PATH)nawk
   114 NM             = $(UTILS_CCS_BIN_PATH)nm
       
   115 PKGMK          = $(UTILS_COMMAND_PATH)pkgmk
   126 PKGMK          = $(UTILS_COMMAND_PATH)pkgmk
   116 PRINTF         = $(UTILS_USR_BIN_PATH)printf
   127 PRINTF         = $(UTILS_USR_BIN_PATH)printf
   117 PWD            = $(UTILS_COMMAND_PATH)pwd
   128 PWD            = $(UTILS_COMMAND_PATH)pwd
   118 READELF        = $(UTILS_USR_BIN_PATH)readelf
   129 READELF        = $(UTILS_USR_BIN_PATH)readelf
   119 RMDIR          = $(UTILS_COMMAND_PATH)rmdir
   130 RMDIR          = $(UTILS_COMMAND_PATH)rmdir
   121 RPMBUILD       = $(UTILS_COMMAND_PATH)rpmbuild
   132 RPMBUILD       = $(UTILS_COMMAND_PATH)rpmbuild
   122 SED            = $(UTILS_COMMAND_PATH)sed
   133 SED            = $(UTILS_COMMAND_PATH)sed
   123 SH             = $(UTILS_COMMAND_PATH)sh
   134 SH             = $(UTILS_COMMAND_PATH)sh
   124 SHOWREV        = $(UTILS_USR_BIN_PATH)showrev
   135 SHOWREV        = $(UTILS_USR_BIN_PATH)showrev
   125 SORT           = $(UTILS_COMMAND_PATH)sort
   136 SORT           = $(UTILS_COMMAND_PATH)sort
   126 STRIP          = $(UTILS_CCS_BIN_PATH)strip
       
   127 TAIL           = $(UTILS_USR_BIN_PATH)tail
   137 TAIL           = $(UTILS_USR_BIN_PATH)tail
   128 TAR            = $(UTILS_COMMAND_PATH)tar
   138 TAR            = $(UTILS_COMMAND_PATH)tar
   129 TEST           = $(UTILS_USR_BIN_PATH)test
   139 TEST           = $(UTILS_USR_BIN_PATH)test
   130 TOUCH          = $(UTILS_COMMAND_PATH)touch
   140 TOUCH          = $(UTILS_COMMAND_PATH)touch
   131 TR             = $(UTILS_USR_BIN_PATH)tr
   141 TR             = $(UTILS_USR_BIN_PATH)tr
   184 		   $(wildcard $(UTILS_USR_BIN_PATH)sort))
   194 		   $(wildcard $(UTILS_USR_BIN_PATH)sort))
   185   NAWK           = $(USRBIN_PATH)gawk
   195   NAWK           = $(USRBIN_PATH)gawk
   186   # Intrinsic unix command, with backslash-escaped character interpretation
   196   # Intrinsic unix command, with backslash-escaped character interpretation
   187   ECHO           = /bin/echo -e
   197   ECHO           = /bin/echo -e
   188   # These are really in UTILS_USR_BIN_PATH on Linux
   198   # These are really in UTILS_USR_BIN_PATH on Linux
   189   AR             = $(UTILS_USR_BIN_PATH)ar
   199   ifndef CROSS_COMPILE_ARCH
   190   AS             = $(UTILS_USR_BIN_PATH)as
   200     AR             = $(UTILS_USR_BIN_PATH)ar
   191   LD             = $(UTILS_USR_BIN_PATH)ld
   201     AS             = $(UTILS_USR_BIN_PATH)as
       
   202     LD             = $(UTILS_USR_BIN_PATH)ld
       
   203     MCS            = $(UTILS_USR_BIN_PATH)mcs
       
   204     NM             = $(UTILS_USR_BIN_PATH)nm
       
   205     STRIP          = $(UTILS_USR_BIN_PATH)strip
       
   206   endif
   192   LEX            = $(UTILS_USR_BIN_PATH)lex
   207   LEX            = $(UTILS_USR_BIN_PATH)lex
   193   MCS            = $(UTILS_USR_BIN_PATH)mcs
       
   194   M4             = $(UTILS_USR_BIN_PATH)m4
   208   M4             = $(UTILS_USR_BIN_PATH)m4
   195   NM             = $(UTILS_USR_BIN_PATH)nm
       
   196   STRIP          = $(UTILS_USR_BIN_PATH)strip
       
   197   YACC           = $(UTILS_USR_BIN_PATH)yacc
   209   YACC           = $(UTILS_USR_BIN_PATH)yacc
   198 endif
   210 endif
   199 
   211 
   200 # Solaris specific
   212 # Solaris specific
   201 ifeq ($(PLATFORM),solaris)
   213 ifeq ($(PLATFORM),solaris)