hotspot/make/bsd/makefiles/saproc.make
author jmasa
Thu, 28 Aug 2014 17:45:58 +0000
changeset 26318 4a618975cfcc
parent 25639 61be16de0fd5
child 26691 40ea2c41f53b
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     1
#
22748
2964d6e34769 8033714: hotspot 'install_jvm' bld target broken with ZIP_DEBUGINFO_FILES=0
dcubed
parents: 20686
diff changeset
     2
# Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     4
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     7
# published by the Free Software Foundation.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     8
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     9
# This code is distributed in the hope that it will be useful, but WITHOUT
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    10
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    11
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    12
# version 2 for more details (a copy is included in the LICENSE file that
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    13
# accompanied this code).
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    14
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    15
# You should have received a copy of the GNU General Public License version
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    16
# 2 along with this work; if not, write to the Free Software Foundation,
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    17
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    18
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    19
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    20
# or visit www.oracle.com if you need additional information or have any
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    21
# questions.
25639
61be16de0fd5 8046765: makefiles should use parameterized $(CP) and $(MV) rather than explicit commands
mduigou
parents: 25065
diff changeset
    22
#
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    23
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    24
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    25
# Rules to build serviceability agent library, used by vm.make
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    26
16351
032b310a3e2f 8003348: SA can not read core file on OS
minqi
parents: 14815
diff changeset
    27
# libsaproc.so(dylib): serviceability agent
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    28
SAPROC   = saproc
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    29
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    30
ifeq ($(OS_VENDOR), Darwin)
20686
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
    31
  LIBSAPROC           = lib$(SAPROC).dylib
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
    32
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
    33
  LIBSAPROC_DEBUGINFO = lib$(SAPROC).dylib.dSYM
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
    34
  LIBSAPROC_DIZ       = lib$(SAPROC).diz
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    35
else
20686
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
    36
  LIBSAPROC           = lib$(SAPROC).so
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
    37
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
    38
  LIBSAPROC_DEBUGINFO = lib$(SAPROC).debuginfo
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
    39
  LIBSAPROC_DIZ       = lib$(SAPROC).diz
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    40
endif
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    41
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    42
AGENT_DIR = $(GAMMADIR)/agent
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    43
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    44
SASRCDIR = $(AGENT_DIR)/src/os/$(Platform_os_family)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    45
16351
032b310a3e2f 8003348: SA can not read core file on OS
minqi
parents: 14815
diff changeset
    46
BSD_NON_STUB_SASRCFILES = $(SASRCDIR)/salibelf.c             \
13873
7b72e3873785 6879063: SA should use hsdis for disassembly
minqi
parents: 10739
diff changeset
    47
                      $(SASRCDIR)/symtab.c                   \
7b72e3873785 6879063: SA should use hsdis for disassembly
minqi
parents: 10739
diff changeset
    48
                      $(SASRCDIR)/libproc_impl.c             \
7b72e3873785 6879063: SA should use hsdis for disassembly
minqi
parents: 10739
diff changeset
    49
                      $(SASRCDIR)/ps_proc.c                  \
7b72e3873785 6879063: SA should use hsdis for disassembly
minqi
parents: 10739
diff changeset
    50
                      $(SASRCDIR)/ps_core.c                  \
7b72e3873785 6879063: SA should use hsdis for disassembly
minqi
parents: 10739
diff changeset
    51
                      $(SASRCDIR)/BsdDebuggerLocal.c         \
7b72e3873785 6879063: SA should use hsdis for disassembly
minqi
parents: 10739
diff changeset
    52
                      $(AGENT_DIR)/src/share/native/sadis.c
10739
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10565
diff changeset
    53
16351
032b310a3e2f 8003348: SA can not read core file on OS
minqi
parents: 14815
diff changeset
    54
DARWIN_NON_STUB_SASRCFILES = $(SASRCDIR)/symtab.c            \
032b310a3e2f 8003348: SA can not read core file on OS
minqi
parents: 14815
diff changeset
    55
                      $(SASRCDIR)/libproc_impl.c             \
032b310a3e2f 8003348: SA can not read core file on OS
minqi
parents: 14815
diff changeset
    56
                      $(SASRCDIR)/ps_core.c                  \
032b310a3e2f 8003348: SA can not read core file on OS
minqi
parents: 14815
diff changeset
    57
                      $(SASRCDIR)/MacosxDebuggerLocal.m      \
032b310a3e2f 8003348: SA can not read core file on OS
minqi
parents: 14815
diff changeset
    58
                      $(AGENT_DIR)/src/share/native/sadis.c
032b310a3e2f 8003348: SA can not read core file on OS
minqi
parents: 14815
diff changeset
    59
10739
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10565
diff changeset
    60
ifeq ($(OS_VENDOR), FreeBSD)
16351
032b310a3e2f 8003348: SA can not read core file on OS
minqi
parents: 14815
diff changeset
    61
  SASRCFILES = $(BSD_NON_STUB_SASRCFILES)
10739
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10565
diff changeset
    62
  SALIBS = -lutil -lthread_db
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10565
diff changeset
    63
  SAARCH = $(ARCHFLAG)
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10565
diff changeset
    64
else
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10565
diff changeset
    65
  ifeq ($(OS_VENDOR), Darwin)
16351
032b310a3e2f 8003348: SA can not read core file on OS
minqi
parents: 14815
diff changeset
    66
    SASRCFILES = $(DARWIN_NON_STUB_SASRCFILES)
25065
fbb17c582d13 8043340: [macosx] Fix hard-wired paths to JavaVM.framework
ddehaven
parents: 22748
diff changeset
    67
    SALIBS = -g \
fbb17c582d13 8043340: [macosx] Fix hard-wired paths to JavaVM.framework
ddehaven
parents: 22748
diff changeset
    68
             -framework Foundation \
fbb17c582d13 8043340: [macosx] Fix hard-wired paths to JavaVM.framework
ddehaven
parents: 22748
diff changeset
    69
             -framework JavaNativeFoundation \
fbb17c582d13 8043340: [macosx] Fix hard-wired paths to JavaVM.framework
ddehaven
parents: 22748
diff changeset
    70
             -framework Security \
fbb17c582d13 8043340: [macosx] Fix hard-wired paths to JavaVM.framework
ddehaven
parents: 22748
diff changeset
    71
             -framework CoreFoundation
10739
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10565
diff changeset
    72
    #objc compiler blows up on -march=i586, perhaps it should not be included in the macosx intel 32-bit C++ compiles?
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10565
diff changeset
    73
    SAARCH = $(subst -march=i586,,$(ARCHFLAG))
25065
fbb17c582d13 8043340: [macosx] Fix hard-wired paths to JavaVM.framework
ddehaven
parents: 22748
diff changeset
    74
fbb17c582d13 8043340: [macosx] Fix hard-wired paths to JavaVM.framework
ddehaven
parents: 22748
diff changeset
    75
    # This is needed to locate JavaNativeFoundation.framework
fbb17c582d13 8043340: [macosx] Fix hard-wired paths to JavaVM.framework
ddehaven
parents: 22748
diff changeset
    76
    ifeq ($(SYSROOT_CFLAGS),)
fbb17c582d13 8043340: [macosx] Fix hard-wired paths to JavaVM.framework
ddehaven
parents: 22748
diff changeset
    77
      # this will happen when building without spec.gmk, set SDKROOT to a valid SDK
fbb17c582d13 8043340: [macosx] Fix hard-wired paths to JavaVM.framework
ddehaven
parents: 22748
diff changeset
    78
      # path if your system does not have headers installed in the system frameworks
fbb17c582d13 8043340: [macosx] Fix hard-wired paths to JavaVM.framework
ddehaven
parents: 22748
diff changeset
    79
      SA_SYSROOT_FLAGS = -F"$(SDKROOT)/System/Library/Frameworks/JavaVM.framework/Frameworks"
fbb17c582d13 8043340: [macosx] Fix hard-wired paths to JavaVM.framework
ddehaven
parents: 22748
diff changeset
    80
    else
fbb17c582d13 8043340: [macosx] Fix hard-wired paths to JavaVM.framework
ddehaven
parents: 22748
diff changeset
    81
      # Just use SYSROOT_CFLAGS
fbb17c582d13 8043340: [macosx] Fix hard-wired paths to JavaVM.framework
ddehaven
parents: 22748
diff changeset
    82
      SA_SYSROOT_FLAGS=$(SYSROOT_CFLAGS)
fbb17c582d13 8043340: [macosx] Fix hard-wired paths to JavaVM.framework
ddehaven
parents: 22748
diff changeset
    83
    endif
10739
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10565
diff changeset
    84
  else
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10565
diff changeset
    85
    SASRCFILES = $(SASRCDIR)/StubDebuggerLocal.c
25639
61be16de0fd5 8046765: makefiles should use parameterized $(CP) and $(MV) rather than explicit commands
mduigou
parents: 25065
diff changeset
    86
    SALIBS =
10739
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10565
diff changeset
    87
    SAARCH = $(ARCHFLAG)
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10565
diff changeset
    88
  endif
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10565
diff changeset
    89
endif
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    90
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    91
SAMAPFILE = $(SASRCDIR)/mapfile
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    92
20686
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
    93
DEST_SAPROC           = $(JDK_LIBDIR)/$(LIBSAPROC)
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
    94
DEST_SAPROC_DEBUGINFO = $(JDK_LIBDIR)/$(LIBSAPROC_DEBUGINFO)
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
    95
DEST_SAPROC_DIZ       = $(JDK_LIBDIR)/$(LIBSAPROC_DIZ)
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    96
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    97
# DEBUG_BINARIES overrides everything, use full -g debug information
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    98
ifeq ($(DEBUG_BINARIES), true)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    99
  SA_DEBUG_CFLAGS = -g
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   100
endif
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   101
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   102
# if $(AGENT_DIR) does not exist, we don't build SA
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   103
# also, we don't build SA on Itanium, PPC, ARM or zero.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   104
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   105
ifneq ($(wildcard $(AGENT_DIR)),)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   106
ifneq ($(filter-out ia64 arm ppc zero,$(SRCARCH)),)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   107
  BUILDLIBSAPROC = $(LIBSAPROC)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   108
endif
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   109
endif
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   110
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   111
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   112
ifneq ($(OS_VENDOR), Darwin)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   113
SA_LFLAGS = $(MAPFLAG:FILENAME=$(SAMAPFILE))
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   114
endif
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   115
SA_LFLAGS += $(LDFLAGS_HASH_STYLE)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   116
25065
fbb17c582d13 8043340: [macosx] Fix hard-wired paths to JavaVM.framework
ddehaven
parents: 22748
diff changeset
   117
BOOT_JAVA_INCLUDES = -I$(BOOT_JAVA_HOME)/include \
fbb17c582d13 8043340: [macosx] Fix hard-wired paths to JavaVM.framework
ddehaven
parents: 22748
diff changeset
   118
  -I$(BOOT_JAVA_HOME)/include/$(shell uname -s | tr "[:upper:]" "[:lower:]")
10739
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10565
diff changeset
   119
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   120
$(LIBSAPROC): $(SASRCFILES) $(SAMAPFILE)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   121
	$(QUIETLY) if [ "$(BOOT_JAVA_HOME)" = "" ]; then \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   122
	  echo "ALT_BOOTDIR, BOOTDIR or JAVA_HOME needs to be defined to build SA"; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   123
	  exit 1; \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   124
	fi
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   125
	@echo Making SA debugger back-end...
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   126
	$(QUIETLY) $(CC) -D$(BUILDARCH) -D_GNU_SOURCE                   \
25065
fbb17c582d13 8043340: [macosx] Fix hard-wired paths to JavaVM.framework
ddehaven
parents: 22748
diff changeset
   127
	           $(SA_SYSROOT_FLAGS)                                  \
16351
032b310a3e2f 8003348: SA can not read core file on OS
minqi
parents: 14815
diff changeset
   128
	           $(SYMFLAG) $(SAARCH) $(SHARED_FLAG) $(PICFLAG)       \
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   129
	           -I$(SASRCDIR)                                        \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   130
	           -I$(GENERATED)                                       \
10739
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10565
diff changeset
   131
	           $(BOOT_JAVA_INCLUDES)                                \
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   132
	           $(SASRCFILES)                                        \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   133
	           $(SA_LFLAGS)                                         \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   134
	           $(SA_DEBUG_CFLAGS)                                   \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   135
	           -o $@                                                \
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   136
	           $(SALIBS)
20686
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
   137
ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
   138
  ifeq ($(OS_VENDOR), Darwin)
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
   139
	$(DSYMUTIL) $@
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
   140
    ifeq ($(ZIP_DEBUGINFO_FILES),1)
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
   141
	$(ZIPEXE) -q -r -y $(LIBSAPROC_DIZ) $(LIBSAPROC_DEBUGINFO)
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
   142
	$(RM) -r $(LIBSAPROC_DEBUGINFO)
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
   143
    endif
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
   144
  else
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
   145
	$(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(LIBSAPROC_DEBUGINFO)
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
   146
	$(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(LIBSAPROC_DEBUGINFO) $@
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
   147
    ifeq ($(STRIP_POLICY),all_strip)
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
   148
	$(QUIETLY) $(STRIP) $@
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
   149
    else
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
   150
      ifeq ($(STRIP_POLICY),min_strip)
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
   151
	$(QUIETLY) $(STRIP) -g $@
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
   152
      # implied else here is no stripping at all
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
   153
      endif
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
   154
    endif
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
   155
    ifeq ($(ZIP_DEBUGINFO_FILES),1)
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
   156
	$(ZIPEXE) -q -y $(LIBSAPROC_DIZ) $(LIBSAPROC_DEBUGINFO)
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
   157
	$(RM) $(LIBSAPROC_DEBUGINFO)
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
   158
    endif
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
   159
  endif
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
   160
endif
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   161
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   162
install_saproc: $(BUILDLIBSAPROC)
20686
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
   163
	@echo "Copying $(LIBSAPROC) to $(DEST_SAPROC)"
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
   164
ifeq ($(OS_VENDOR), Darwin)
22748
2964d6e34769 8033714: hotspot 'install_jvm' bld target broken with ZIP_DEBUGINFO_FILES=0
dcubed
parents: 20686
diff changeset
   165
	$(QUIETLY) test ! -d $(LIBSAPROC_DEBUGINFO) || \
25639
61be16de0fd5 8046765: makefiles should use parameterized $(CP) and $(MV) rather than explicit commands
mduigou
parents: 25065
diff changeset
   166
	    $(CP) -f -r $(LIBSAPROC_DEBUGINFO) $(DEST_SAPROC_DEBUGINFO)
20686
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
   167
else
22748
2964d6e34769 8033714: hotspot 'install_jvm' bld target broken with ZIP_DEBUGINFO_FILES=0
dcubed
parents: 20686
diff changeset
   168
	$(QUIETLY) test ! -f $(LIBSAPROC_DEBUGINFO) || \
25639
61be16de0fd5 8046765: makefiles should use parameterized $(CP) and $(MV) rather than explicit commands
mduigou
parents: 25065
diff changeset
   169
	    $(CP) -f $(LIBSAPROC_DEBUGINFO) $(DEST_SAPROC_DEBUGINFO)
20686
1fa9a75192c3 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16351
diff changeset
   170
endif
22748
2964d6e34769 8033714: hotspot 'install_jvm' bld target broken with ZIP_DEBUGINFO_FILES=0
dcubed
parents: 20686
diff changeset
   171
	$(QUIETLY) test ! -f $(LIBSAPROC_DIZ) || \
25639
61be16de0fd5 8046765: makefiles should use parameterized $(CP) and $(MV) rather than explicit commands
mduigou
parents: 25065
diff changeset
   172
	    $(CP) -f $(LIBSAPROC_DIZ) $(DEST_SAPROC_DIZ)
61be16de0fd5 8046765: makefiles should use parameterized $(CP) and $(MV) rather than explicit commands
mduigou
parents: 25065
diff changeset
   173
	$(QUIETLY) $(CP) -f $(LIBSAPROC) $(DEST_SAPROC) && echo "Done"
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   174
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
   175
.PHONY: install_saproc