jdk/make/common/Defs-solaris.gmk
author anthony
Mon, 23 Jun 2008 16:03:25 +0400
changeset 1178 4734cf2a22bf
parent 30 7ea1edf98bfe
child 642 d1f02d5e4c74
permissions -rw-r--r--
6704896: FD_SET usage can cause stack corruption (sol) Summary: Using poll() instead of select() Reviewed-by: yan, denis
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
# Copyright 1995-2007 Sun Microsystems, Inc.  All Rights Reserved.
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
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
# published by the Free Software Foundation.  Sun designates this
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
# by Sun in the LICENSE file that accompanied this code.
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
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
# CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
# have any questions.
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
# Makefile to specify compiler flags for programs and libraries
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
# targeted to Solaris.  Should not contain any rules.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
# WARNING: This file is shared with other workspaces. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
#          So when it includes other files, it must use JDK_TOPDIR.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
# Warning: the following variables are overridden by Defs.gmk. Set
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
# values will be silently ignored:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
#   CFLAGS        (set $(OTHER_CFLAGS) instead)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
#   CPPFLAGS      (set $(OTHER_CPPFLAGS) instead)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
#   CXXFLAGS      (set $(OTHER_CXXFLAGS) instead)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
#   LDFLAGS       (set $(OTHER_LDFAGS) instead)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
#   LDLIBS        (set $(EXTRA_LIBS) instead)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
#   LDLIBS_COMMON (set $(EXTRA_LIBS) instead)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
#   LINTFLAGS     (set $(OTHER_LINTFLAGS) instead)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
# Get shared JDK settings
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
include $(JDK_MAKE_SHARED_DIR)/Defs.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
ifndef PLATFORM_SRC
30
7ea1edf98bfe 6668781: Openjdk windows cygwin build failure: no rule to make linker_md.obj target
ohair
parents: 2
diff changeset
    48
PLATFORM_SRC = $(BUILDDIR)/../src/solaris
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
endif # PLATFORM_SRC
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
# Platform specific closed sources
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
ifndef OPENJDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
  ifndef CLOSED_PLATFORM_SRC
30
7ea1edf98bfe 6668781: Openjdk windows cygwin build failure: no rule to make linker_md.obj target
ohair
parents: 2
diff changeset
    54
    CLOSED_PLATFORM_SRC = $(BUILDDIR)/../src/closed/solaris
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
# platform specific include files
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
PLATFORM_INCLUDE_NAME = $(PLATFORM)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
PLATFORM_INCLUDE      = $(INCLUDEDIR)/$(PLATFORM_INCLUDE_NAME)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
# suffix used for make dependencies files
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
DEPEND_SUFFIX = d
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
# suffix used for lint files
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
LINT_SUFFIX = ln
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
# The suffix applied to the library name for FDLIBM
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
FDDLIBM_SUFFIX = a
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
# The suffix applied to scripts (.bat for windows, nothing for unix)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
SCRIPT_SUFFIX =
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
# CC compiler object code output directive flag value
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
CC_OBJECT_OUTPUT_FLAG = -o #trailing blank required!
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
CC_PROGRAM_OUTPUT_FLAG = -o #trailing blank required!
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
# Default HPI libraries. Build will build only native unless
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
# overriden at the make command line. This makes it convenient for
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
# people doing, say, a pthreads port -- they can create a posix
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
# directory here, and say "gnumake HPIS=posix" at the top
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
# level.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
HPIS = native
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
# Java default optimization (-x04/-O2) etc.  Applies to the VM.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
ifeq ($(PRODUCT), java)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
    _OPT = $(CC_HIGHER_OPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
    _OPT = $(CC_LOWER_OPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
    CPPFLAGS_DBG    += -DLOGGING -DDBINFO
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
# If -Xa is in CFLAGS_COMMON it will end up ahead of $(POPT) for the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
# optimized build, and that ordering of the flags completely freaks
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
# out cc.  Hence, -Xa is instead in each CFLAGS variant.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
# The more unusual options to the Sun C compiler:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
#	-v		Stricter type checking, more error checking
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
#			(To turn ALL warnings into fatals, use -errwarn=%all)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
#	-xstrconst	Place string literals and constants in read-only area
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
#			(means you can't write on your string literals)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
#	-xs		Force debug information (stabs) into the .so or a.out
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
#			(makes the library/executable debuggable without the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
#			.o files needing to be around, but at a space cost)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
#	-g & -O		If you add the -g option to the optimized compiles
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
#			you will get better stack retraces, the code is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
#			still optimized. This includes a space cost too.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
#       -xc99=%none     Do NOT allow for c99 extensions to be used.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
#                       e.g. declarations must precede statements
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
#       -xCC            Allow the C++ style of comments in C: //
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
#                       Required with many of the source files.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
#       -mt             Assume multi-threaded (important)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
# Debug flag for C and C++ compiler
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
CFLAGS_DEBUG_OPTION=-g
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
CXXFLAGS_DEBUG_OPTION=-g
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
# Turn off -g if we are doing tcov build
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
ifdef TCOV_BUILD
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
  CFLAGS_DEBUG_OPTION=
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
  CXXFLAGS_DEBUG_OPTION=
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
# FASTDEBUG: Optimize the -g builds, gives us a faster debug java
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
#        If true adds -O to the debug compiles. This allows for any assert
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
#        tests to remain and debug checking. The resulting code is faster
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
#        but less debuggable.  Stack traces are still valid, although only
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
#        approximate line numbers are given. Printing of local variables
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
#        during a debugging session is not possible, but stepping and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
#        printing of global or static variables should be possible.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
#        Performance/size of files should be about the same, maybe smaller.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
ifeq ($(FASTDEBUG), true)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
  CC_FASTDEBUG_OPT       = $(CC_LOWER_OPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
  CFLAGS_DEBUG_OPTION    = -g   $(CC_FASTDEBUG_OPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
  CXXFLAGS_DEBUG_OPTION  = -g0  $(CC_FASTDEBUG_OPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
CFLAGS_COMMON   = -v -mt -L$(OBJDIR) -xc99=%none
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
CFLAGS_COMMON  += -xCC
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
CFLAGS_COMMON  += -errshort=tags
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
CFLAGS_OPT      = $(POPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
CFLAGS_DBG      = $(CFLAGS_DEBUG_OPTION)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
CFLAGS_COMMON  +=  -Xa $(CFLAGS_REQUIRED)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
# Assume MT behavior all the time (important)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
CXXFLAGS_COMMON  = -mt
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
# Assume no C++ exceptions are used
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
CXXFLAGS_COMMON += -features=no%except -DCC_NOEX
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
# For C++, these options tell it to assume nothing about locating libraries
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
#    either at compile time, or at runtime. Use of these options will likely
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
#    require the use of -L and -R options to indicate where libraries will
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
#    be found at compile time (-L) and at runtime (-R).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
#    The /usr/lib location comes for free, so no need to specify that one.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
#    Note: C is much simplier and there is no need for these options. This
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
#          is mostly needed to avoid dependencies on libraries in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
#          Compiler install area, also see LIBCXX and LIBM.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
CXXFLAGS_COMMON += -norunpath -xnolib
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
# Treat compiler warnings as errors, if requested
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
ifeq ($(COMPILER_WARNINGS_FATAL),true)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
  CFLAGS_COMMON += -errwarn=%all
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
  CXXFLAGS_COMMON += -errwarn=%all
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
CXXFLAGS_OPT	= $(POPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
CXXFLAGS_DBG	= $(CXXFLAGS_DEBUG_OPTION)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
CXXFLAGS_COMMON += $(CFLAGS_REQUIRED)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
# Add -xstrconst to the library compiles. This forces all string
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
#  literals into the read-only data section, which prevents them from
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
#  being written to and increases the runtime pages shared on the system.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
ifdef LIBRARY
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
  CFLAGS_COMMON +=-xstrconst
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
# Source browser database
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
# COMPILE_WITH_SB    
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
#        If defined adds -xsb to compiles and creates a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
#        source browsing database during compilation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
ifdef COMPILE_WITH_SB
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
  ifeq ($(LIBRARY), java)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
    CFLAGS_DBG +=   -xsb
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
# Lint Flags:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
#	-Xa			ANSI C plus K&R, favor ANSI rules
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
#       -Xarch=XXX		Same as 'cc -xarch=XXX'
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
#	-fd			report on old style func defs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
#	-errchk=structarg	report on 64bit struct args by value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
#	-errchk=longptr64	report on 64bit to 32bit issues (ignores casts)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
#	-errchk=parentheses	report on suggested use of extra parens
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
#	-v 			suppress unused args
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
#	-x			suppress unused externs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
#	-u			suppress extern func/vars used/defined
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
#	-errfmt=simple		use one line errors with position info
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
LINTFLAGS_COMMON  = -Xa
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
LINTFLAGS_COMMON += -fd 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
LINTFLAGS_COMMON += -errchk=structarg,longptr64,parentheses
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
LINTFLAGS_COMMON += -v
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
LINTFLAGS_COMMON += -x 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
LINTFLAGS_COMMON += -u
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
LINTFLAGS_COMMON += -errfmt=simple 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
LINTFLAGS_OPT   = 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
LINTFLAGS_DBG   =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
# The -W0,-noglobal tells the compiler to NOT generate mangled global
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
#    ELF data symbols for file local static data.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
#    This can break fix&continue, but we'd rather do the same compilations
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
#    for deliverable bits as we do for non-deliverable bits
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
#    Tell the compilers to never generate globalized names, all the time.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
CFLAGS_COMMON += -W0,-noglobal
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
# Arch specific settings (determines type of .o files and instruction set)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
ifeq ($(ARCH_FAMILY), sparc)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
  ifdef VIS_NEEDED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
    XARCH_VALUE/32=v8plusa
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
    XARCH_VALUE/64=v9a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
  else 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
    # Someday this should change to improve optimization on UltraSPARC
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
    #    and abandon the old v8-only machines like the SPARCstation 10.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
    #    Indications with Mustang is that alacrity runs do not show a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
    #    big improvement using v8plus over v8, but other benchmarks might.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
    XARCH_VALUE/32=v8
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
    XARCH_VALUE/64=v9
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
ifeq ($(ARCH_FAMILY), i586)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
  XARCH_VALUE/64=amd64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
  XARCH_VALUE/32=
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
# Arch value based on current data model being built
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
XARCH_VALUE=$(XARCH_VALUE/$(ARCH_DATA_MODEL))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
ifneq ($(XARCH_VALUE), )
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
  # The actual compiler -xarch options to use
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
  XARCH_OPTION/32 = -xarch=$(XARCH_VALUE/32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
  XARCH_OPTION/64 = -xarch=$(XARCH_VALUE/64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
  XARCH_OPTION    = $(XARCH_OPTION/$(ARCH_DATA_MODEL))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
# If we have a specific -xarch value to use, add it
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
ifdef XARCH_OPTION
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
  CFLAGS_COMMON    += $(XARCH_OPTION)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
  CXXFLAGS_COMMON  += $(XARCH_OPTION)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
  ASFLAGS_COMMON   += $(XARCH_OPTION)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
  EXTRA_LIBS       += $(XARCH_OPTION)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
  LINTFLAGS_COMMON += -Xarch=$(XARCH_VALUE)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
# uncomment the following to build with PERTURBALOT set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
# OTHER_CFLAGS += -DPERTURBALOT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
CPPFLAGS_COMMON = -D$(ARCH_FAMILY) -D__solaris__ -D_REENTRANT 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
CPPFLAGS_OPT    = 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
CPPFLAGS_DBG    = -DDEBUG
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
ifeq ($(ARCH_FAMILY), i586)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
  # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
  #   Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
  #   (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
  #   Note: -Dmacro         is the same as    #define macro 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
  #         -Dmacro=	    is the same as    #define macro
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
  #
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
  CPPFLAGS_COMMON +=  -DcpuIntel -D_LITTLE_ENDIAN= -D$(LIBARCH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
  # Turn off a superfluous compiler error message on Intel
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
  CFLAGS_COMMON += -erroff=E_BAD_PRAGMA_PACK_VALUE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
# Java memory management is based on memory mapping by default, but a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
# system only assuming malloc/free can be built by adding -DUSE_MALLOC 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
CPPFLAGS_COMMON	+= -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
CPPFLAGS_OPT	+= -DTRIMMED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
LDFLAGS_DEFS_OPTION  = -z defs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
LDFLAGS_COMMON  += $(LDFLAGS_DEFS_OPTION)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
# -L paths for finding and -ljava
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
LDFLAGS_COMMON += -L$(LIBDIR)/$(LIBARCH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
LDFLAGS_OPT     =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
LDFLAGS_DBG     =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
# We never really want the incremental linker, ever
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
#    The -xildoff option tells Sun's compilers to NOT use incremental linker
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
LDFLAGS_COMMON  += -xildoff
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
ifdef LIBRARY
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
  # Libraries need to locate other libraries at runtime, and you can tell
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
  #   a library where to look by way of the dynamic runpaths (RPATH or RUNPATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
  #   buried inside the .so. The $ORIGIN says to look relative to where
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
  #   the library itself is and it can be followed with relative paths from
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
  #   that. By default we always look in $ORIGIN, optionally we add relative
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
  #   paths if the Makefile sets LD_RUNPATH_EXTRAS to those relative paths.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
  #   The environment variable LD_LIBRARY_PATH will over-ride these runpaths.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
  #   Try: 'dump -Lv lib*.so' to see these settings in a library.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
  #
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
  LDFLAGS_COMMON += -R\$$ORIGIN
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
  LDFLAGS_COMMON += $(LD_RUNPATH_EXTRAS:%=-R\$$ORIGIN/%)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
EXTRA_LIBS += -lc
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
# Postprocessing is done on the images directories only
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
ifeq ($(VARIANT), OPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
  ifeq ($(PARTIAL_GPROF), true)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
    NO_STRIP = true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
  ifeq ($(GPROF), true)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
    NO_STRIP = true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
  ifneq ($(NO_STRIP), true)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
    # Debug 'strip -x' leaves local function Elf symbols (better stack traces)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
    POST_STRIP_PROCESS = $(STRIP) -x
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
POST_MCS_PROCESS=$(MCS) -d -a "JDK $(FULL_VERSION)"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
# Sun C compiler will take -M and pass it on to ld.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
# Usage: ld $(LD_MAPFILE_FLAG) mapfile *.o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
ifeq ($(CC_VERSION),gcc)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
LD_MAPFILE_FLAG = -Xlinker -M -Xlinker
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
LD_MAPFILE_FLAG = -M
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
# Variables globally settable from the make command line (default
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
# values in brackets):
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
#	GPROF (false)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
# Eg: 	% gnumake GPROF=true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
GPROF = false
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
ifeq ($(GPROF), true)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
    CFLAGS_COMMON += -DGPROF -xpg
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
    EXTRA_LIBS += -xpg
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
# PARTIAL_GPROF is to be used ONLY during compilation - it should not
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
# appear during linking of libraries or programs.  It also should
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
# prevent linking with -z defs to allow a symbol to remain undefined.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
PARTIAL_GPROF = false
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
ifeq ($(PARTIAL_GPROF), true)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
  CFLAGS_GPROF += -xpg
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
  LDFLAGS_DEFS_OPTION  = -z nodefs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
# For a TCOV build we add in the TCOV_OPTION
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
ifdef TCOV_BUILD
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
  TCOV_OPTION		= -xprofile=tcov
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
  LDFLAGS_COMMON 	+= $(TCOV_OPTION) -Kpic
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
  CFLAGS_COMMON  	+= $(TCOV_OPTION)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
  CXXFLAGS_COMMON 	+= $(TCOV_OPTION)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
  EXTRA_LIBS 	+= $(TCOV_OPTION)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
  LDNOMAP=true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
# Solaris only uses native threads. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
THREADS_FLAG=	native
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
THREADS_DIR=	threads
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
# Support for Quantify.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
ifdef QUANTIFY
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
  QUANTIFY_CMD = quantify
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
  QUANTIFY_OPTIONS = -cache-dir=/tmp/quantify -always-use-cache-dir=yes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
  LINK_PRE_CMD = $(QUANTIFY_CMD) $(QUANTIFY_OPTIONS)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
  ifdef LIBRARY
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
    CFLAGS_COMMON += -K PIC
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
# Support for Purify.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
ifdef PURIFY
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
  PURIFY_CMD = /net/suntools.eng/export/tools/sparc/bin/purify
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
  PURIFY_OPTIONS = -cache-dir=/tmp/quantify -always-use-cache-dir=yes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
  LINK_PRE_CMD = $(PURIFY_CMD) $(PURIFY_OPTIONS)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
  ifdef LIBRARY
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
    CFLAGS_COMMON += -K PIC
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
# Different "levels" of optimization.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
ifeq ($(CC_VERSION),gcc)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
  CC_HIGHEST_OPT = -O3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
  CC_HIGHER_OPT  = -O3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
  CC_LOWER_OPT   = -O2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
  CFLAGS_REQUIRED_i586  += -fno-omit-frame-pointer
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
  CFLAGS_REQUIRED_amd64 += -fno-omit-frame-pointer
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
  # Automatic precompiled header option to use (if COMPILE_APPROACH=batch)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
  #   (See Rules.gmk) May need to wait for gcc 5?
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
  AUTOMATIC_PCH_OPTION = 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
  # Highest could be -xO5, but indications are that -xO5 should be reserved
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
  #    for a per-file use, on sources with known performance impacts.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
  CC_HIGHEST_OPT = -xO4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
  CC_HIGHER_OPT  = -xO4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
  CC_LOWER_OPT   = -xO2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
  #
90ce3da70b43 Initial load
duke
parents:
diff changeset
   432
  # WARNING: Use of _OPT=$(CC_HIGHEST_OPT) in your Makefile needs to be
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
  #          done with care, there are some assumptions below that need to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   434
  #          be understood about the use of pointers, and IEEE behavior.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
  #
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
  # Use non-standard floating point mode (not IEEE 754)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
  CC_HIGHEST_OPT += -fns
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
  # Do some simplification of floating point arithmetic (not IEEE 754)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   439
  CC_HIGHEST_OPT += -fsimple
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
  # Use single precision floating point with 'float'
90ce3da70b43 Initial load
duke
parents:
diff changeset
   441
  CC_HIGHEST_OPT += -fsingle
90ce3da70b43 Initial load
duke
parents:
diff changeset
   442
  # Assume memory references via basic pointer types do not alias
90ce3da70b43 Initial load
duke
parents:
diff changeset
   443
  #   (Source with excessing pointer casting and data access with mixed 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
  #    pointer types are not recommended)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   445
  CC_HIGHEST_OPT += -xalias_level=basic
90ce3da70b43 Initial load
duke
parents:
diff changeset
   446
  # Use intrinsic or inline versions for math/std functions
90ce3da70b43 Initial load
duke
parents:
diff changeset
   447
  #   (If you expect perfect errno behavior, do not use this)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   448
  CC_HIGHEST_OPT += -xbuiltin=%all
90ce3da70b43 Initial load
duke
parents:
diff changeset
   449
  # Loop data dependency optimizations (need -xO3 or higher)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   450
  CC_HIGHEST_OPT += -xdepend
90ce3da70b43 Initial load
duke
parents:
diff changeset
   451
  # Pointer parameters to functions do not overlap
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
  #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   453
  #    If you pass in multiple pointers to the same data, do not use this)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   454
  CC_HIGHEST_OPT += -xrestrict
90ce3da70b43 Initial load
duke
parents:
diff changeset
   455
  # Inline some library routines
90ce3da70b43 Initial load
duke
parents:
diff changeset
   456
  #   (If you expect perfect errno behavior, do not use this)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   457
  CC_HIGHEST_OPT += -xlibmil
90ce3da70b43 Initial load
duke
parents:
diff changeset
   458
  # Use optimized math routines
90ce3da70b43 Initial load
duke
parents:
diff changeset
   459
  #   (If you expect perfect errno behavior, do not use this)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   460
  #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
90ce3da70b43 Initial load
duke
parents:
diff changeset
   461
  #  CC_HIGHEST_OPT += -xlibmopt
90ce3da70b43 Initial load
duke
parents:
diff changeset
   462
  ifeq ($(ARCH_FAMILY), sparc)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   463
    # Assume at most 8byte alignment, raise SIGBUS on error
90ce3da70b43 Initial load
duke
parents:
diff changeset
   464
    ### Presents an ABI issue with customer JNI libs?
90ce3da70b43 Initial load
duke
parents:
diff changeset
   465
    ####CC_HIGHEST_OPT  += -xmemalign=8s
90ce3da70b43 Initial load
duke
parents:
diff changeset
   466
    # Automatic prefetch instructions, explicit prefetch macros
90ce3da70b43 Initial load
duke
parents:
diff changeset
   467
    CC_HIGHEST_OPT  += -xprefetch=auto,explicit
90ce3da70b43 Initial load
duke
parents:
diff changeset
   468
    # Pick ultra as the chip to optimize to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   469
    CC_HIGHEST_OPT  += -xchip=ultra
90ce3da70b43 Initial load
duke
parents:
diff changeset
   470
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   471
  ifeq ($(ARCH), i586)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   472
    # Pick pentium as the chip to optimize to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   473
    CC_HIGHEST_OPT  += -xchip=pentium
90ce3da70b43 Initial load
duke
parents:
diff changeset
   474
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   475
  ifdef LIBRARY
90ce3da70b43 Initial load
duke
parents:
diff changeset
   476
    # The Solaris CBE (Common Build Environment) requires that the use
90ce3da70b43 Initial load
duke
parents:
diff changeset
   477
    # of appl registers be disabled when compiling a public library (or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   478
    # a library that's loaded by a public library) on sparc.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   479
    CFLAGS_REQUIRED_sparc    += -xregs=no%appl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   480
    CFLAGS_REQUIRED_sparcv9  += -xregs=no%appl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   481
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   482
  ifeq ($(shell $(EXPR) $(CC_VER) \> 5.6), 1)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   483
    # Do NOT use the frame pointer register as a general purpose opt register
90ce3da70b43 Initial load
duke
parents:
diff changeset
   484
    CFLAGS_REQUIRED_i586  += -xregs=no%frameptr
90ce3da70b43 Initial load
duke
parents:
diff changeset
   485
    CFLAGS_REQUIRED_amd64 += -xregs=no%frameptr
90ce3da70b43 Initial load
duke
parents:
diff changeset
   486
    # We MUST allow data alignment of 4 for sparc V8 (32bit)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   487
    #     Presents an ABI issue with customer JNI libs? We must be able to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   488
    #     to handle 4byte aligned objects? (rare occurance, but possible?)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   489
    CFLAGS_REQUIRED_sparc += -xmemalign=4s
90ce3da70b43 Initial load
duke
parents:
diff changeset
   490
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   491
  # Just incase someone trys to use the SOS9 compilers
90ce3da70b43 Initial load
duke
parents:
diff changeset
   492
  ifeq ($(CC_VER), 5.6)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   493
    # We MUST allow data alignment of 4 for sparc (sparcv9 is ok at 8s)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   494
    CFLAGS_REQUIRED_sparc += -xmemalign=4s
90ce3da70b43 Initial load
duke
parents:
diff changeset
   495
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   496
  # Automatic precompiled header option to use (if COMPILE_APPROACH=batch)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   497
  #   (See Rules.gmk) The SS11 -xpch=auto* options appear to be broken.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   498
  AUTOMATIC_PCH_OPTION =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   499
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   500
CC_NO_OPT      = 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   501
90ce3da70b43 Initial load
duke
parents:
diff changeset
   502
# If NO_OPTIMIZATIONS is defined in the environment, turn all optimzations off
90ce3da70b43 Initial load
duke
parents:
diff changeset
   503
ifdef NO_OPTIMIZATIONS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   504
  CC_HIGHEST_OPT = $(CC_NO_OPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   505
  CC_HIGHER_OPT  = $(CC_NO_OPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   506
  CC_LOWER_OPT   = $(CC_NO_OPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   507
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   508
90ce3da70b43 Initial load
duke
parents:
diff changeset
   509
# Flags required all the time
90ce3da70b43 Initial load
duke
parents:
diff changeset
   510
CFLAGS_REQUIRED = $(CFLAGS_REQUIRED_$(ARCH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   511
90ce3da70b43 Initial load
duke
parents:
diff changeset
   512
# Add processor specific options for optimizations
90ce3da70b43 Initial load
duke
parents:
diff changeset
   513
CC_HIGHEST_OPT += $(_OPT_$(ARCH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   514
CC_HIGHER_OPT  += $(_OPT_$(ARCH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   515
CC_LOWER_OPT   += $(_OPT_$(ARCH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   516
90ce3da70b43 Initial load
duke
parents:
diff changeset
   517
# Secret compiler optimization options that should be in the above macros
90ce3da70b43 Initial load
duke
parents:
diff changeset
   518
#    but since they differ in format from C to C++, are added into the C or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   519
#    C++ specific macros for compiler flags.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   520
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   521
#  On i586 we need to tell the code generator to ALWAYS use a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   522
#   frame pointer.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   523
ifeq ($(ARCH_FAMILY), i586)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   524
  # Note that in 5.7, this is done with -xregs=no%frameptr
90ce3da70b43 Initial load
duke
parents:
diff changeset
   525
  ifeq ($(CC_VER), 5.5)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   526
    #       It's not exactly clear when this optimization kicks in, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   527
    #       current assumption is -xO4 or greater and for C++ with
90ce3da70b43 Initial load
duke
parents:
diff changeset
   528
    #       the -features=no%except option and -xO4 and greater.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   529
    #       Bottom line is, we ALWAYS want a frame pointer!
90ce3da70b43 Initial load
duke
parents:
diff changeset
   530
    CXXFLAGS_OPT += -Qoption ube -Z~B
90ce3da70b43 Initial load
duke
parents:
diff changeset
   531
    CFLAGS_OPT   +=          -Wu,-Z~B
90ce3da70b43 Initial load
duke
parents:
diff changeset
   532
    ifeq ($(FASTDEBUG), true)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   533
        CXXFLAGS_DBG += -Qoption ube -Z~B
90ce3da70b43 Initial load
duke
parents:
diff changeset
   534
        CFLAGS_DBG   +=          -Wu,-Z~B
90ce3da70b43 Initial load
duke
parents:
diff changeset
   535
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   536
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   537
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   538
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   539
#  Optimizer for sparc needs to be told not to do certain things
90ce3da70b43 Initial load
duke
parents:
diff changeset
   540
#   related to frames or save instructions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   541
ifeq ($(ARCH_FAMILY), sparc)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   542
  # NOTE: Someday the compilers will provide a high-level option for this.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   543
  #   Use save instructions instead of add instructions
90ce3da70b43 Initial load
duke
parents:
diff changeset
   544
  #    This was an optimization starting in SC5.0 that made it hard for us to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   545
  #    find the "save" instruction (which got turned into an "add")
90ce3da70b43 Initial load
duke
parents:
diff changeset
   546
  CXXFLAGS_OPT += -Qoption cg -Qrm-s
90ce3da70b43 Initial load
duke
parents:
diff changeset
   547
  CFLAGS_OPT   +=         -Wc,-Qrm-s
90ce3da70b43 Initial load
duke
parents:
diff changeset
   548
  ifeq ($(FASTDEBUG), true)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   549
    CXXFLAGS_DBG += -Qoption cg -Qrm-s
90ce3da70b43 Initial load
duke
parents:
diff changeset
   550
    CFLAGS_DBG   +=         -Wc,-Qrm-s
90ce3da70b43 Initial load
duke
parents:
diff changeset
   551
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   552
  #
90ce3da70b43 Initial load
duke
parents:
diff changeset
   553
  # NOTE: Someday the compilers will provide a high-level option for this.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   554
  #   Don't allow tail call code optimization. Started in SC5.0.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   555
  #    We don't like code of this form:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   556
  #	save
90ce3da70b43 Initial load
duke
parents:
diff changeset
   557
  #	<code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   558
  #	call foo
90ce3da70b43 Initial load
duke
parents:
diff changeset
   559
  #	   restore
90ce3da70b43 Initial load
duke
parents:
diff changeset
   560
  #   because we can't tell if the method will have a stack frame
90ce3da70b43 Initial load
duke
parents:
diff changeset
   561
  #   and register windows or not.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   562
  CXXFLAGS_OPT += -Qoption cg -Qiselect-T0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   563
  CFLAGS_OPT   +=         -Wc,-Qiselect-T0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   564
  ifeq ($(FASTDEBUG), true)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   565
    CXXFLAGS_DBG += -Qoption cg -Qiselect-T0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   566
    CFLAGS_DBG   +=         -Wc,-Qiselect-T0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   567
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   568
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   569
90ce3da70b43 Initial load
duke
parents:
diff changeset
   570
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   571
# Path and option to link against the VM, if you have to.  Note that
90ce3da70b43 Initial load
duke
parents:
diff changeset
   572
# there are libraries that link against only -ljava, but they do get
90ce3da70b43 Initial load
duke
parents:
diff changeset
   573
# -L to the -ljvm, this is because -ljava depends on -ljvm, whereas
90ce3da70b43 Initial load
duke
parents:
diff changeset
   574
# the library itself should not.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   575
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   576
VM_NAME         = server
90ce3da70b43 Initial load
duke
parents:
diff changeset
   577
JVMLIB          = -L$(LIBDIR)/$(LIBARCH)/$(VM_NAME) -ljvm
90ce3da70b43 Initial load
duke
parents:
diff changeset
   578
JAVALIB         = -ljava $(JVMLIB)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   579
90ce3da70b43 Initial load
duke
parents:
diff changeset
   580
# Part of INCREMENTAL_BUILD mechanism.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   581
#   Compiler emits things like:  path/file.o: file.h
90ce3da70b43 Initial load
duke
parents:
diff changeset
   582
#   We want something like: relative_path/file.o relative_path/file.d: file.h
90ce3da70b43 Initial load
duke
parents:
diff changeset
   583
#   In addition on Solaris, any include file starting with / is deleted,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   584
#   this gets rid of things like /usr/include files, which never change.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   585
CC_DEPEND	 = -xM1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   586
CC_DEPEND_FILTER = $(SED) -e '/:[ 	]*[/]/d' -e 's!$*\.$(OBJECT_SUFFIX)!$(dir $@)& $(dir $@)$*.$(DEPEND_SUFFIX)!g' | $(SORT) -u
90ce3da70b43 Initial load
duke
parents:
diff changeset
   587
90ce3da70b43 Initial load
duke
parents:
diff changeset
   588
# Location of openwin libraries (do we really need this anymore?)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   589
OPENWIN_HOME    = /usr/openwin
90ce3da70b43 Initial load
duke
parents:
diff changeset
   590
OPENWIN_LIB     = $(OPENWIN_HOME)/lib$(ISA_DIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   591
90ce3da70b43 Initial load
duke
parents:
diff changeset
   592
# Runtime graphics library search paths...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   593
OPENWIN_RUNTIME_LIB = /usr/openwin/lib$(ISA_DIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   594
AWT_RUNPATH = -R/usr/dt/lib$(ISA_DIR) -R$(OPENWIN_RUNTIME_LIB)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   595
90ce3da70b43 Initial load
duke
parents:
diff changeset
   596
# C++ Runtime library (libCrun.so), use instead of -lCrun.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   597
#    Originally used instead of -lCrun to guarantee use of the system
90ce3da70b43 Initial load
duke
parents:
diff changeset
   598
#    .so version and not the .a or .so that came with the compilers.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   599
#    With the newer compilers this could probably change back to -lCrun but
90ce3da70b43 Initial load
duke
parents:
diff changeset
   600
#    in general this is ok to continue to do.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   601
LIBCXX = /usr/lib$(ISA_DIR)/libCrun.so.1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   602
90ce3da70b43 Initial load
duke
parents:
diff changeset
   603
# Math Library (libm.so), do not use -lm.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   604
#    There might be two versions of libm.so on the build system:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   605
#    libm.so.1 and libm.so.2, and we want libm.so.1.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   606
#    Depending on the Solaris release being used to build with,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   607
#    /usr/lib/libm.so could point at a libm.so.2, so we are
90ce3da70b43 Initial load
duke
parents:
diff changeset
   608
#    explicit here so that the libjvm.so you have built will work on an
90ce3da70b43 Initial load
duke
parents:
diff changeset
   609
#    older Solaris release that might not have libm.so.2.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   610
#    This is a critical factor in allowing builds on Solaris 10 or newer
90ce3da70b43 Initial load
duke
parents:
diff changeset
   611
#    to run on Solaris 8 or 9.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   612
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   613
#    Note: Historically there was also a problem picking up a static version
90ce3da70b43 Initial load
duke
parents:
diff changeset
   614
#          of libm.a from the compiler area, but that problem has gone away
90ce3da70b43 Initial load
duke
parents:
diff changeset
   615
#          with the newer compilers. Use of libm.a would cause .so bloat.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   616
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   617
LIBM = /usr/lib$(ISA_DIR)/libm.so.1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   618
90ce3da70b43 Initial load
duke
parents:
diff changeset
   619
# Socket library
90ce3da70b43 Initial load
duke
parents:
diff changeset
   620
LIBSOCKET = -lsocket
90ce3da70b43 Initial load
duke
parents:
diff changeset
   621
90ce3da70b43 Initial load
duke
parents:
diff changeset
   622
# GLOBAL_KPIC: If set means all libraries are PIC, position independent code
90ce3da70b43 Initial load
duke
parents:
diff changeset
   623
#    EXCEPT for select compiles
90ce3da70b43 Initial load
duke
parents:
diff changeset
   624
#    If a .o file is compiled non-PIC then it should be forced
90ce3da70b43 Initial load
duke
parents:
diff changeset
   625
#	   into the RW data segment with a mapfile option. This is done
90ce3da70b43 Initial load
duke
parents:
diff changeset
   626
#    with object files which generated from .s files.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   627
#    The -ztext enforces that no relocations remain in the text segment
90ce3da70b43 Initial load
duke
parents:
diff changeset
   628
#    so that it remains purely read-only for optimum system performance.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   629
#    Some libraries may use a smaller size (13bit -Kpic) on sparc instead of 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   630
#    (32 bit -KPIC) and will override GLOBAL_KPIC appropriately.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   631
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   632
PIC_CODE_LARGE   = -KPIC
90ce3da70b43 Initial load
duke
parents:
diff changeset
   633
PIC_CODE_SMALL   = -Kpic
90ce3da70b43 Initial load
duke
parents:
diff changeset
   634
ifndef TCOV_BUILD
90ce3da70b43 Initial load
duke
parents:
diff changeset
   635
    GLOBAL_KPIC      = $(PIC_CODE_LARGE)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   636
    CXXFLAGS_COMMON += $(GLOBAL_KPIC)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   637
    CFLAGS_COMMON   += $(GLOBAL_KPIC)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   638
    LDFLAGS_COMMON  += -ztext
90ce3da70b43 Initial load
duke
parents:
diff changeset
   639
endif # TCOV_BUILD
90ce3da70b43 Initial load
duke
parents:
diff changeset
   640
90ce3da70b43 Initial load
duke
parents:
diff changeset
   641
# If your platform has DPS, it will have Type1 fonts too, in which case
90ce3da70b43 Initial load
duke
parents:
diff changeset
   642
# it is best to enable DPS support until such time as 2D's rasteriser
90ce3da70b43 Initial load
duke
parents:
diff changeset
   643
# can fully handle Type1 fonts in all cases. Default is "yes".
90ce3da70b43 Initial load
duke
parents:
diff changeset
   644
# HAVE_DPS should only be "no" if the platform has no DPS headers or libs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   645
# DPS (Displayable PostScript) is available on Solaris machines
90ce3da70b43 Initial load
duke
parents:
diff changeset
   646
90ce3da70b43 Initial load
duke
parents:
diff changeset
   647
HAVE_DPS = yes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   648
90ce3da70b43 Initial load
duke
parents:
diff changeset
   649
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   650
# Japanese manpages
90ce3da70b43 Initial load
duke
parents:
diff changeset
   651
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   652
JA_SOURCE_ENCODING = eucJP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   653
JA_TARGET_ENCODINGS = eucJP UTF-8 PCK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   654
90ce3da70b43 Initial load
duke
parents:
diff changeset
   655
# Settings for the JDI - Serviceability Agent binding.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   656
HOTSPOT_SALIB_PATH   = $(HOTSPOT_IMPORT_PATH)/jre/lib/$(LIBARCH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   657
SALIB_NAME = $(LIB_PREFIX)saproc.$(LIBRARY_SUFFIX)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   658
INCLUDE_SA=true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   659