make/linux/makefiles/saproc.make

Tue, 05 Apr 2011 14:12:31 -0700

author
trims
date
Tue, 05 Apr 2011 14:12:31 -0700
changeset 2708
1d1603768966
parent 2384
0a8e0d4345b3
child 3150
da0999c4b733
permissions
-rw-r--r--

7010070: Update all 2010 Oracle-changed OpenJDK files to have the proper copyright dates - second pass
Summary: Update the copyright to be 2010 on all changed files in OpenJDK
Reviewed-by: ohair

duke@435 1 #
trims@2384 2 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
duke@435 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@435 4 #
duke@435 5 # This code is free software; you can redistribute it and/or modify it
duke@435 6 # under the terms of the GNU General Public License version 2 only, as
duke@435 7 # published by the Free Software Foundation.
duke@435 8 #
duke@435 9 # This code is distributed in the hope that it will be useful, but WITHOUT
duke@435 10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@435 11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@435 12 # version 2 for more details (a copy is included in the LICENSE file that
duke@435 13 # accompanied this code).
duke@435 14 #
duke@435 15 # You should have received a copy of the GNU General Public License version
duke@435 16 # 2 along with this work; if not, write to the Free Software Foundation,
duke@435 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@435 18 #
trims@1907 19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
trims@1907 20 # or visit www.oracle.com if you need additional information or have any
trims@1907 21 # questions.
duke@435 22 #
duke@435 23 #
duke@435 24
duke@435 25 # Rules to build serviceability agent library, used by vm.make
duke@435 26
duke@435 27 # libsaproc[_g].so: serviceability agent
phh@1558 28
phh@1558 29 SAPROC = saproc
duke@435 30 LIBSAPROC = lib$(SAPROC).so
duke@435 31
phh@1558 32 SAPROC_G = $(SAPROC)$(G_SUFFIX)
phh@1558 33 LIBSAPROC_G = lib$(SAPROC_G).so
phh@1558 34
duke@435 35 AGENT_DIR = $(GAMMADIR)/agent
duke@435 36
duke@435 37 SASRCDIR = $(AGENT_DIR)/src/os/$(Platform_os_family)
duke@435 38
duke@435 39 SASRCFILES = $(SASRCDIR)/salibelf.c \
duke@435 40 $(SASRCDIR)/symtab.c \
duke@435 41 $(SASRCDIR)/libproc_impl.c \
duke@435 42 $(SASRCDIR)/ps_proc.c \
duke@435 43 $(SASRCDIR)/ps_core.c \
duke@435 44 $(SASRCDIR)/LinuxDebuggerLocal.c
duke@435 45
duke@435 46 SAMAPFILE = $(SASRCDIR)/mapfile
duke@435 47
duke@435 48 DEST_SAPROC = $(JDK_LIBDIR)/$(LIBSAPROC)
duke@435 49
aph@1202 50 # DEBUG_BINARIES overrides everything, use full -g debug information
aph@1202 51 ifeq ($(DEBUG_BINARIES), true)
aph@1202 52 SA_DEBUG_CFLAGS = -g
aph@1202 53 endif
aph@1202 54
duke@435 55 # if $(AGENT_DIR) does not exist, we don't build SA
bobv@2036 56 # also, we don't build SA on Itanium, PPC, ARM or zero.
duke@435 57
stefank@2314 58 ifneq ($(wildcard $(AGENT_DIR)),)
stefank@2314 59 ifneq ($(filter-out ia64 arm ppc zero,$(SRCARCH)),)
stefank@2314 60 BUILDLIBSAPROC = $(LIBSAPROC)
stefank@2314 61 endif
stefank@2314 62 endif
stefank@2314 63
duke@435 64
never@1192 65 SA_LFLAGS = $(MAPFLAG:FILENAME=$(SAMAPFILE)) $(LDFLAGS_HASH_STYLE)
duke@435 66
duke@435 67 $(LIBSAPROC): $(SASRCFILES) $(SAMAPFILE)
duke@435 68 $(QUIETLY) if [ "$(BOOT_JAVA_HOME)" = "" ]; then \
duke@435 69 echo "ALT_BOOTDIR, BOOTDIR or JAVA_HOME needs to be defined to build SA"; \
duke@435 70 exit 1; \
duke@435 71 fi
duke@435 72 @echo Making SA debugger back-end...
duke@435 73 $(QUIETLY) $(CC) -D$(BUILDARCH) -D_GNU_SOURCE \
duke@435 74 $(SYMFLAG) $(ARCHFLAG) $(SHARED_FLAG) $(PICFLAG) \
duke@435 75 -I$(SASRCDIR) \
duke@435 76 -I$(GENERATED) \
duke@435 77 -I$(BOOT_JAVA_HOME)/include \
duke@435 78 -I$(BOOT_JAVA_HOME)/include/$(Platform_os_family) \
duke@435 79 $(SASRCFILES) \
duke@435 80 $(SA_LFLAGS) \
aph@1202 81 $(SA_DEBUG_CFLAGS) \
duke@435 82 -o $@ \
duke@435 83 -lthread_db
phh@1558 84 $(QUIETLY) [ -f $(LIBSAPROC_G) ] || { ln -s $@ $(LIBSAPROC_G); }
duke@435 85
stefank@2314 86 install_saproc: $(BUILDLIBSAPROC)
duke@435 87 $(QUIETLY) if [ -e $(LIBSAPROC) ] ; then \
duke@435 88 echo "Copying $(LIBSAPROC) to $(DEST_SAPROC)"; \
duke@435 89 cp -f $(LIBSAPROC) $(DEST_SAPROC) && echo "Done"; \
duke@435 90 fi
duke@435 91
stefank@2314 92 .PHONY: install_saproc

mercurial