Makefile revision 110
e69f7d715a3db7f1fff1c8334714c8fab63852abjoncruz# CDDL HEADER START
e69f7d715a3db7f1fff1c8334714c8fab63852abjoncruz# The contents of this file are subject to the terms of the
e69f7d715a3db7f1fff1c8334714c8fab63852abjoncruz# Common Development and Distribution License (the "License").
e69f7d715a3db7f1fff1c8334714c8fab63852abjoncruz# You may not use this file except in compliance with the License.
e69f7d715a3db7f1fff1c8334714c8fab63852abjoncruz# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
e69f7d715a3db7f1fff1c8334714c8fab63852abjoncruz# See the License for the specific language governing permissions
e69f7d715a3db7f1fff1c8334714c8fab63852abjoncruz# and limitations under the License.
e69f7d715a3db7f1fff1c8334714c8fab63852abjoncruz# When distributing Covered Code, include this CDDL HEADER in each
e69f7d715a3db7f1fff1c8334714c8fab63852abjoncruz# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e69f7d715a3db7f1fff1c8334714c8fab63852abjoncruz# If applicable, add the following below this CDDL HEADER, with the
e69f7d715a3db7f1fff1c8334714c8fab63852abjoncruz# fields enclosed by brackets "[]" replaced with your own identifying
e69f7d715a3db7f1fff1c8334714c8fab63852abjoncruz# information: Portions Copyright [yyyy] [name of copyright owner]
e69f7d715a3db7f1fff1c8334714c8fab63852abjoncruz# CDDL HEADER END
e69f7d715a3db7f1fff1c8334714c8fab63852abjoncruz# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
e69f7d715a3db7f1fff1c8334714c8fab63852abjoncruzCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
e69f7d715a3db7f1fff1c8334714c8fab63852abjoncruzCOMPONENT_PROJECT_URL= http://www.gnu.org/software/bash/
e69f7d715a3db7f1fff1c8334714c8fab63852abjoncruzCOMPONENT_ARCHIVE_HASH= sha1:3bd1ec9c66f3689f6b3495bdaaf9077b2e5dc150
e69f7d715a3db7f1fff1c8334714c8fab63852abjoncruzCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/bash/$(COMPONENT_ARCHIVE)
e69f7d715a3db7f1fff1c8334714c8fab63852abjoncruz# Enable C99 mode + -Xc for it's additional warnings.
8a507a13a4a6adfb638f731e371abbbf25817697jaspervdg# Use the maximum number of registers on sparc since we have no libraries
8a507a13a4a6adfb638f731e371abbbf25817697jaspervdg# 8 byte memory alignment + interpretation of non-alignment instead of SIGBUS
e69f7d715a3db7f1fff1c8334714c8fab63852abjoncruz# -xinline=%auto -- we like inlining where appropriate
e69f7d715a3db7f1fff1c8334714c8fab63852abjoncruz# -xbuiltin=%none -- builtins have been known to be buggy
e69f7d715a3db7f1fff1c8334714c8fab63852abjoncruz# configure checks for some functions, but doesn't seem to want to link in
e69f7d715a3db7f1fff1c8334714c8fab63852abjoncruz# the required libraries for them. We avoid linking with libthread.so.1
e69f7d715a3db7f1fff1c8334714c8fab63852abjoncruz# just because we pass -mt, by explicitly passing -lc.
e69f7d715a3db7f1fff1c8334714c8fab63852abjoncruz# -z redlocsym -- let's shrink the SHT_SYMTAB as much as we can
8a507a13a4a6adfb638f731e371abbbf25817697jaspervdg# The bash test harness needs the GNU userland utilities
8a507a13a4a6adfb638f731e371abbbf25817697jaspervdgTEST_PATH = "PATH=$(BUILD_DIR_32):$(GNUBIN):$(USRBINDIR)"
8a507a13a4a6adfb638f731e371abbbf25817697jaspervdgTEST_OUTPUT = $(COMPONENT_DIR)/bash_test_results_$(MACH).out
8a507a13a4a6adfb638f731e371abbbf25817697jaspervdgCONFIGURE_OPTIONS += --enable-prompt-string-decoding
8a507a13a4a6adfb638f731e371abbbf25817697jaspervdgCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
8a507a13a4a6adfb638f731e371abbbf25817697jaspervdg ( mkdir -p $(PROTO_DIR)/etc/bash/bash_completion.d ; \
8a507a13a4a6adfb638f731e371abbbf25817697jaspervdg cp -p $(COMPONENT_DIR)/Solaris/etc.bash.bash_completion \
8a507a13a4a6adfb638f731e371abbbf25817697jaspervdg sed -f oracleman-stability $(PROTOUSRSHAREMAN1DIR)/bash.1 > \