Makefile revision 1258
2772c0bad271d7a345ef7779dd318fa6098a6bfand#
2772c0bad271d7a345ef7779dd318fa6098a6bfand# CDDL HEADER START
2772c0bad271d7a345ef7779dd318fa6098a6bfand#
e57e674bd581bf1e801f749f92955bc330627409nd# The contents of this file are subject to the terms of the
2772c0bad271d7a345ef7779dd318fa6098a6bfand# Common Development and Distribution License (the "License").
acc36ab93565d2880447d535da6ca6e5feac7a70nd# You may not use this file except in compliance with the License.
031b91a62d25106ae69d4693475c79618dd5e884fielding#
031b91a62d25106ae69d4693475c79618dd5e884fielding# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
031b91a62d25106ae69d4693475c79618dd5e884fielding# or http://www.opensolaris.org/os/licensing.
031b91a62d25106ae69d4693475c79618dd5e884fielding# See the License for the specific language governing permissions
031b91a62d25106ae69d4693475c79618dd5e884fielding# and limitations under the License.
031b91a62d25106ae69d4693475c79618dd5e884fielding#
acc36ab93565d2880447d535da6ca6e5feac7a70nd# When distributing Covered Code, include this CDDL HEADER in each
acc36ab93565d2880447d535da6ca6e5feac7a70nd# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
acc36ab93565d2880447d535da6ca6e5feac7a70nd# If applicable, add the following below this CDDL HEADER, with the
acc36ab93565d2880447d535da6ca6e5feac7a70nd# fields enclosed by brackets "[]" replaced with your own identifying
acc36ab93565d2880447d535da6ca6e5feac7a70nd# information: Portions Copyright [yyyy] [name of copyright owner]
acc36ab93565d2880447d535da6ca6e5feac7a70nd#
acc36ab93565d2880447d535da6ca6e5feac7a70nd# CDDL HEADER END
acc36ab93565d2880447d535da6ca6e5feac7a70nd#
acc36ab93565d2880447d535da6ca6e5feac7a70nd
acc36ab93565d2880447d535da6ca6e5feac7a70nd#
7db9f691a00ead175b03335457ca296a33ddf31bnd# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
2772c0bad271d7a345ef7779dd318fa6098a6bfand#
2772c0bad271d7a345ef7779dd318fa6098a6bfand
b51bf223f42d43ca6b1b33c95124edcfa5a871a4ndinclude ../../make-rules/shared-macros.mk
b51bf223f42d43ca6b1b33c95124edcfa5a871a4nd
2772c0bad271d7a345ef7779dd318fa6098a6bfandCOMPONENT_NAME= gdb
2772c0bad271d7a345ef7779dd318fa6098a6bfandCOMPONENT_VERSION= 6.8
a0e42292521d317fda1b5d7a33f0754066cfe97andCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
cc04b9186e16eb08609e37ceace74b45f14973ccndCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
2772c0bad271d7a345ef7779dd318fa6098a6bfandCOMPONENT_ARCHIVE_HASH= \
a0e42292521d317fda1b5d7a33f0754066cfe97and sha256:a3c5455f30ffb3e6eeafb9e54598b48f9fbf46e3e99f431120360c183ddcc889
52bc21ad2115333a8295c5f3e4f328d7431e6989ndCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/gdb/$(COMPONENT_ARCHIVE)
2772c0bad271d7a345ef7779dd318fa6098a6bfandCOMPONENT_BUGDB= utility/gdb
2772c0bad271d7a345ef7779dd318fa6098a6bfand
2772c0bad271d7a345ef7779dd318fa6098a6bfandinclude ../../make-rules/prep.mk
2772c0bad271d7a345ef7779dd318fa6098a6bfandinclude ../../make-rules/configure.mk
2772c0bad271d7a345ef7779dd318fa6098a6bfandinclude ../../make-rules/ips.mk
2772c0bad271d7a345ef7779dd318fa6098a6bfand
e57e674bd581bf1e801f749f92955bc330627409nd# optimization level lowered to -xO3 to address failures in the
2772c0bad271d7a345ef7779dd318fa6098a6bfand# gdb test suite at -xO4.
2772c0bad271d7a345ef7779dd318fa6098a6bfand
2772c0bad271d7a345ef7779dd318fa6098a6bfandstudio_OPT.sparc.32 = -xO3
2772c0bad271d7a345ef7779dd318fa6098a6bfandstudio_OPT.sparc.64 = -xO3
ffff37fd9690bf67a95ab87349a81505f0036120ndstudio_OPT.i386.32 = -xO3
2772c0bad271d7a345ef7779dd318fa6098a6bfandstudio_OPT.i386.64 = -xO3
2772c0bad271d7a345ef7779dd318fa6098a6bfand
2772c0bad271d7a345ef7779dd318fa6098a6bfandIPS_COMPONENT_VERSION = 6.8
2772c0bad271d7a345ef7779dd318fa6098a6bfandCOMPONENT_PROJECT_URL = http://www.gnu.org/software/gdb/
2772c0bad271d7a345ef7779dd318fa6098a6bfand
e57e674bd581bf1e801f749f92955bc330627409ndCURSES_DIR_32 = /usr/gnu/lib
2772c0bad271d7a345ef7779dd318fa6098a6bfandCURSES_DIR_64 = /usr/gnu/lib/$(MACH64)
2772c0bad271d7a345ef7779dd318fa6098a6bfandCURSES_DIR = $(CURSES_DIR_$(BITS))
2772c0bad271d7a345ef7779dd318fa6098a6bfandLDFLAGS += -L$(CURSES_DIR) -R$(CURSES_DIR)
f86a9f0713e8e93d398e669b7dfc3a41d104a3a1nd
2772c0bad271d7a345ef7779dd318fa6098a6bfand# `echo $(CFLAGS)` and `echo $(LDFLAGS)` used to
2772c0bad271d7a345ef7779dd318fa6098a6bfand# work around problem with extra blank characters
2772c0bad271d7a345ef7779dd318fa6098a6bfand# inserted into configrue option strings during
2772c0bad271d7a345ef7779dd318fa6098a6bfand# nested configure invocations within the gdb build.
e57e674bd581bf1e801f749f92955bc330627409nd
2772c0bad271d7a345ef7779dd318fa6098a6bfandCONFIGURE_ENV += CFLAGS="`echo $(CFLAGS)`"
2772c0bad271d7a345ef7779dd318fa6098a6bfandCONFIGURE_ENV += LDFLAGS="`echo $(LDFLAGS)`"
2772c0bad271d7a345ef7779dd318fa6098a6bfand
2772c0bad271d7a345ef7779dd318fa6098a6bfandCONFIGURE_OPTIONS += --with-system-readline
2772c0bad271d7a345ef7779dd318fa6098a6bfandCONFIGURE_OPTIONS += --with-x=no
2772c0bad271d7a345ef7779dd318fa6098a6bfandCONFIGURE_OPTIONS += --with-curses
6e48215232940ab47baefa4f6eb9cd546eb2400atakashiCONFIGURE_OPTIONS += --with-libexpat-prefix=/usr/lib
2772c0bad271d7a345ef7779dd318fa6098a6bfandCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
2772c0bad271d7a345ef7779dd318fa6098a6bfand
2772c0bad271d7a345ef7779dd318fa6098a6bfand# common targets
2772c0bad271d7a345ef7779dd318fa6098a6bfandbuild: $(BUILD_64)
2772c0bad271d7a345ef7779dd318fa6098a6bfand
e57e674bd581bf1e801f749f92955bc330627409ndinstall: $(INSTALL_64)
e57e674bd581bf1e801f749f92955bc330627409nd
2772c0bad271d7a345ef7779dd318fa6098a6bfandtest: $(NO_TESTS)
2772c0bad271d7a345ef7779dd318fa6098a6bfand
2772c0bad271d7a345ef7779dd318fa6098a6bfandBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
2772c0bad271d7a345ef7779dd318fa6098a6bfand
2772c0bad271d7a345ef7779dd318fa6098a6bfandinclude ../../make-rules/depend.mk
2772c0bad271d7a345ef7779dd318fa6098a6bfand