Makefile revision 370
369N/A#
369N/A# CDDL HEADER START
369N/A#
369N/A# The contents of this file are subject to the terms of the
369N/A# Common Development and Distribution License (the "License").
369N/A# You may not use this file except in compliance with the License.
369N/A#
369N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
369N/A# or http://www.opensolaris.org/os/licensing.
369N/A# See the License for the specific language governing permissions
369N/A# and limitations under the License.
369N/A#
369N/A# When distributing Covered Code, include this CDDL HEADER in each
369N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
369N/A# If applicable, add the following below this CDDL HEADER, with the
369N/A# fields enclosed by brackets "[]" replaced with your own identifying
369N/A# information: Portions Copyright [yyyy] [name of copyright owner]
369N/A#
369N/A# CDDL HEADER END
369N/A#
844N/A
369N/A#
369N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
369N/A#
369N/A
369N/Ainclude ../../make-rules/shared-macros.mk
369N/A
369N/ACOMPONENT_NAME= gdb
844N/ACOMPONENT_VERSION= 6.8
844N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
369N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
369N/ACOMPONENT_ARCHIVE_HASH= sha1:15e67382c39640caafa144abf2c8943106aa97d9
369N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/gdb/$(COMPONENT_ARCHIVE)
369N/A
369N/Ainclude ../../make-rules/prep.mk
369N/Ainclude ../../make-rules/configure.mk
369N/Ainclude ../../make-rules/ips.mk
369N/A
369N/A# optimization level lowered to -xO3 to address failures in the
369N/A# gdb test suite at -xO4.
369N/A
369N/Astudio_OPT.sparc.32 = -xO3
369N/Astudio_OPT.sparc.64 = -xO3
369N/Astudio_OPT.i386.32 = -xO3
369N/Astudio_OPT.i386.64 = -xO3
369N/A
369N/AIPS_COMPONENT_VERSION = 6.8
369N/ACOMPONENT_PROJECT_URL = http://www.gnu.org/software/gdb/
369N/A
369N/ACURSES_DIR_32 = /usr/gnu/lib
369N/ACURSES_DIR_64 = /usr/gnu/lib/$(MACH64)
369N/ACURSES_DIR = $(CURSES_DIR_$(BITS))
LDFLAGS += -L$(CURSES_DIR) -R$(CURSES_DIR)
# `echo $(CFLAGS)` and `echo $(LDFLAGS)` used to
# work around problem with extra blank characters
# inserted into configrue option strings during
# nested configure invocations within the gdb build.
CONFIGURE_ENV += CFLAGS="`echo $(CFLAGS)`"
CONFIGURE_ENV += LDFLAGS="`echo $(LDFLAGS)`"
CONFIGURE_OPTIONS += --with-system-readline
CONFIGURE_OPTIONS += --with-x=no
CONFIGURE_OPTIONS += --with-curses
CONFIGURE_OPTIONS += --with-libexpat-prefix=/usr/lib
CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
# common targets
build: $(BUILD_64)
install: $(INSTALL_64)
test: $(NO_TESTS)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk