jdk/make/tools/add_gnu_debuglink/Makefile
author dsamersoff
Thu, 17 Oct 2013 16:08:01 +0400
changeset 21069 728330d2593a
parent 12853 7bdaa5aefd3d
permissions -rw-r--r--
8025812: tmtools/jmap/heap_config tests fail on Linux-ia32 because it Cant attach to the core file Summary: Coredump store memsz elf field rounded up to page Reviewed-by: dholmes, sla
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12853
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
     1
#
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
     2
# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
     4
#
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
     7
# published by the Free Software Foundation.
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
     8
#
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
     9
# This code is distributed in the hope that it will be useful, but WITHOUT
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    10
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    11
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    12
# version 2 for more details (a copy is included in the LICENSE file that
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    13
# accompanied this code).
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    14
#
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    15
# You should have received a copy of the GNU General Public License version
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    16
# 2 along with this work; if not, write to the Free Software Foundation,
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    17
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    18
#
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    19
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    20
# or visit www.oracle.com if you need additional information or have any
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    21
# questions.
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    22
#  
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    23
#
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    24
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    25
# Rules to build add_gnu_debuglink, used by various Makefiles on Solaris
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    26
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    27
BUILDDIR = ../..
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    28
include $(BUILDDIR)/common/Defs.gmk
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    29
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    30
# Default name
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    31
PROGRAM = add_gnu_debuglink
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    32
ADD_GNU_DEBUGLINK_PROG = $(ABS_BUILDTOOLBINDIR)/$(PROGRAM)
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    33
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    34
ADD_GNU_DEBUGLINK_SRC     = add_gnu_debuglink.c
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    35
ADD_GNU_DEBUGLINK_FLAGS   = 
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    36
LIBS_ADD_GNU_DEBUGLINK   += -lelf
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    37
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    38
all: $(ADD_GNU_DEBUGLINK)
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    39
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    40
$(ADD_GNU_DEBUGLINK_PROG): $(ADD_GNU_DEBUGLINK_SRC)
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    41
	$(MKDIR) -p $(BUILDTOOLBINDIR)
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    42
	$(CC) -g -o $@ $< $(ADD_GNU_DEBUGLINK_FLAGS) $(LIBS_ADD_GNU_DEBUGLINK)
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    43
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    44
clean::
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    45
	$(RM) $(ADD_GNU_DEBUGLINK_PROG)
7bdaa5aefd3d 7170449: Management is completely broken at least on Solaris 11 X86
dcubed
parents:
diff changeset
    46