Makefile revision 3661
394N/A#
394N/A# CDDL HEADER START
394N/A#
394N/A# The contents of this file are subject to the terms of the
394N/A# Common Development and Distribution License (the "License").
394N/A# You may not use this file except in compliance with the License.
394N/A#
394N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
394N/A# or http://www.opensolaris.org/os/licensing.
394N/A# See the License for the specific language governing permissions
394N/A# and limitations under the License.
394N/A#
394N/A# When distributing Covered Code, include this CDDL HEADER in each
394N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
394N/A# If applicable, add the following below this CDDL HEADER, with the
394N/A# fields enclosed by brackets "[]" replaced with your own identifying
394N/A# information: Portions Copyright [yyyy] [name of copyright owner]
394N/A#
394N/A# CDDL HEADER END
394N/A#
3661N/A
394N/A#
394N/A# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
394N/A#
394N/A
394N/Ainclude ../../make-rules/shared-macros.mk
394N/A
445N/ACOMPONENT_NAME= gdb
618N/ACOMPONENT_VERSION= 7.6
394N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
394N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:8070389a5dcc104eb0be483d582729f98ed4d761ad19cedd3f17b5d2502faa36
394N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/gdb/$(COMPONENT_ARCHIVE)
1273N/ACOMPONENT_PROJECT_URL = http://www.gnu.org/software/gdb/
394N/ACOMPONENT_BUGDB= utility/gdb
3661N/A
3661N/ATPNO= 17258
394N/A
394N/Ainclude ../../make-rules/prep.mk
394N/Ainclude ../../make-rules/configure.mk
394N/Ainclude ../../make-rules/ips.mk
394N/A
394N/ACOMPILER=gcc
394N/A
783N/A# GDB wants the GNU utilities
783N/APATH=/usr/gnu/bin:$(GCC_ROOT)/bin:/usr/bin:/usr/perl5/bin
783N/A
394N/ACFLAGS_sparc = -g -O2 -mcpu=ultrasparc -mtune=ultrasparc
394N/ACFLAGS_sparc += -mno-unaligned-doubles
394N/ACFLAGS_sparc += -mapp-regs -mhard-float
394N/ACFLAGS_i386 = -g -O2 -march=opteron -mtune=opteron
394N/ACFLAGS_EXTRA = -Wall -Wno-long-long -Wcast-align -fno-omit-frame-pointer
394N/A
394N/ACFLAGS = $(CC_BITS) $(CFLAGS_EXTRA) $(CFLAGS_$(MACH))
CXXFLAGS = $(CC_BITS) $(CFLAGS_EXTRA) $(CFLAGS_$(MACH))
CPPFLAGS = -D_REENTRANT -I/usr/include/ncurses
# `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 += CPPFLAGS="`echo $(CPPFLAGS)`"
CONFIGURE_ENV += LDFLAGS="`echo $(LDFLAGS)`"
CONFIGURE_OPTIONS += --with-x=no
CONFIGURE_OPTIONS += --with-curses
CONFIGURE_OPTIONS += --disable-werror
CONFIGURE_OPTIONS += --enable-plugins
CONFIGURE_OPTIONS += --enable-tui
CONFIGURE_OPTIONS += --without-auto-load-safe-path
CONFIGURE_OPTIONS += --with-python=yes
CONFIGURE_OPTIONS += --with-libexpat-prefix=/usr/lib
CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
# Generate the newly added Solaris instruction and
# register tables which weren't there by default.
COMPONENT_PRE_CONFIGURE_ACTION = \
( cd $(SOURCE_DIR)/gdb/features ; \
$(GMAKE) all )
COMPONENT_POST_INSTALL_ACTION = \
( cd $(PROTOUSRDIR)/share/gdb/python/gdb ; \
$(PYTHON) -m compileall . ; \
cd $(PROTOUSRDIR)/share/gdb/python/gdb/command ; \
$(PYTHON) -m compileall . ; \
cd $(PROTOUSRDIR)/share/gdb/python/gdb/function ; \
$(PYTHON) -m compileall . ; \
cd $(PROTOUSRBINDIR64)/ ; \
/usr/bin/strip -x gdb ; \
cd $(COMPONENT_DIR) ; \
$(INSTALL) -m 0755 $(COMPONENT_DIR)/Solaris/gdbtui \
$(PROTOUSRBINDIR)/ ; \
$(INSTALL) -m 0644 $(SOURCE_DIR)/gdb/doc/gdb.info \
$(PROTOUSRSHAREDIR)/info/ ; \
$(INSTALL) -m 0644 $(SOURCE_DIR)/gdb/doc/gdb.info-1 \
$(PROTOUSRSHAREDIR)/info/ ; \
$(INSTALL) -m 0644 $(SOURCE_DIR)/gdb/doc/gdb.info-2 \
$(PROTOUSRSHAREDIR)/info/ ; \
$(INSTALL) -m 0644 $(SOURCE_DIR)/gdb/doc/gdb.info-3 \
$(PROTOUSRSHAREDIR)/info/ ; \
$(INSTALL) -m 0644 $(SOURCE_DIR)/gdb/doc/gdb.info-4 \
$(PROTOUSRSHAREDIR)/info/ ; \
$(INSTALL) -m 0644 $(SOURCE_DIR)/gdb/doc/gdb.info-5 \
$(PROTOUSRSHAREDIR)/info/ ; \
$(INSTALL) -m 0644 $(SOURCE_DIR)/gdb/doc/gdb.info-6 \
$(PROTOUSRSHAREDIR)/info/ ; \
$(INSTALL) -m 0644 $(SOURCE_DIR)/gdb/doc/gdb.info-7 \
$(PROTOUSRSHAREDIR)/info/ ; \
$(INSTALL) -m 0644 $(SOURCE_DIR)/gdb/doc/gdbint.info \
$(PROTOUSRSHAREDIR)/info/ ; \
$(INSTALL) -m 0644 $(SOURCE_DIR)/gdb/doc/gdbint.info-1 \
$(PROTOUSRSHAREDIR)/info/ ; \
$(INSTALL) -m 0644 $(SOURCE_DIR)/gdb/doc/gdbint.info-2 \
$(PROTOUSRSHAREDIR)/info/ ; \
$(INSTALL) -m 0644 $(SOURCE_DIR)/gdb/doc/annotate.info \
$(PROTOUSRSHAREDIR)/info/ ; \
$(INSTALL) -m 0644 $(SOURCE_DIR)/gdb/doc/stabs.info \
$(PROTOUSRSHAREDIR)/info/ )
# Disable ASLR: it's a debugger and we do not want to risk
# altering the results of the debugging experiment.
ASLR_MODE=$(ASLR_DISABLE)
# common targets
build: $(BUILD_64)
install: $(INSTALL_64)
test: $(NO_TESTS)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk