annotate make/solaris/makefiles/saproc.make @ 2042:0a8e0d4345b3

7010068: Update all 2010 Oracle-changed OpenJDK files to have the proper copyright dates - first pass Summary: Update the copyright to be 2010 on all changed files in OpenJDK Reviewed-by: jcoomes
author trims
date Mon, 03 Jan 2011 15:30:05 -0800
parents f95d63e2154a
children 405c634f4aaa
rev   line source
duke@0 1 #
trims@2042 2 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
duke@0 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@0 4 #
duke@0 5 # This code is free software; you can redistribute it and/or modify it
duke@0 6 # under the terms of the GNU General Public License version 2 only, as
duke@0 7 # published by the Free Software Foundation.
duke@0 8 #
duke@0 9 # This code is distributed in the hope that it will be useful, but WITHOUT
duke@0 10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@0 11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@0 12 # version 2 for more details (a copy is included in the LICENSE file that
duke@0 13 # accompanied this code).
duke@0 14 #
duke@0 15 # You should have received a copy of the GNU General Public License version
duke@0 16 # 2 along with this work; if not, write to the Free Software Foundation,
duke@0 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@0 18 #
trims@1552 19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
trims@1552 20 # or visit www.oracle.com if you need additional information or have any
trims@1552 21 # questions.
duke@0 22 #
duke@0 23 #
duke@0 24
duke@0 25 # Rules to build serviceability agent library, used by vm.make
duke@0 26
duke@0 27 # libsaproc[_g].so: serviceability agent
phh@1123 28
phh@1123 29 SAPROC = saproc
duke@0 30 LIBSAPROC = lib$(SAPROC).so
duke@0 31
phh@1123 32 SAPROC_G = $(SAPROC)$(G_SUFFIX)
phh@1123 33 LIBSAPROC_G = lib$(SAPROC_G).so
phh@1123 34
duke@0 35 AGENT_DIR = $(GAMMADIR)/agent
duke@0 36
duke@0 37 SASRCDIR = $(AGENT_DIR)/src/os/$(Platform_os_family)/proc
duke@0 38
duke@0 39 SASRCFILES = $(SASRCDIR)/saproc.cpp
duke@0 40
duke@0 41 SAMAPFILE = $(SASRCDIR)/mapfile
duke@0 42
duke@0 43 DEST_SAPROC = $(JDK_LIBDIR)/$(LIBSAPROC)
duke@0 44
duke@0 45 # if $(AGENT_DIR) does not exist, we don't build SA
duke@0 46
stefank@1972 47 ifneq ($(wildcard $(AGENT_DIR)),)
stefank@1972 48 BUILDLIBSAPROC = $(LIBSAPROC)
stefank@1972 49 endif
duke@0 50
duke@0 51 SA_LFLAGS = $(MAPFLAG:FILENAME=$(SAMAPFILE))
duke@0 52
duke@0 53 ifdef USE_GCC
duke@0 54 SA_LFLAGS += -D_REENTRANT
duke@0 55 else
duke@0 56 SA_LFLAGS += -mt -xnolib -norunpath
duke@0 57 endif
duke@0 58
duke@0 59 $(LIBSAPROC): $(SASRCFILES) $(SAMAPFILE)
duke@0 60 $(QUIETLY) if [ "$(BOOT_JAVA_HOME)" = "" ]; then \
duke@0 61 echo "ALT_BOOTDIR, BOOTDIR or JAVA_HOME needs to be defined to build SA"; \
duke@0 62 exit 1; \
duke@0 63 fi
duke@0 64 @echo Making SA debugger back-end...
duke@0 65 $(QUIETLY) $(CPP) \
duke@0 66 $(SYMFLAG) $(ARCHFLAG) $(SHARED_FLAG) $(PICFLAG) \
duke@0 67 -I$(SASRCDIR) \
duke@0 68 -I$(GENERATED) \
duke@0 69 -I$(BOOT_JAVA_HOME)/include \
duke@0 70 -I$(BOOT_JAVA_HOME)/include/$(Platform_os_family) \
duke@0 71 $(SASRCFILES) \
duke@0 72 $(SA_LFLAGS) \
duke@0 73 -o $@ \
duke@0 74 -ldl -ldemangle -lthread -lc
phh@1123 75 [ -f $(LIBSAPROC_G) ] || { ln -s $@ $(LIBSAPROC_G); }
duke@0 76
stefank@1972 77 install_saproc: $(BULDLIBSAPROC)
duke@0 78 $(QUIETLY) if [ -f $(LIBSAPROC) ] ; then \
duke@0 79 echo "Copying $(LIBSAPROC) to $(DEST_SAPROC)"; \
duke@0 80 cp -f $(LIBSAPROC) $(DEST_SAPROC) && echo "Done"; \
duke@0 81 fi
duke@0 82
stefank@1972 83 .PHONY: install_saproc