Makefile revision 3823
110N/A#
110N/A# CDDL HEADER START
110N/A#
110N/A# The contents of this file are subject to the terms of the
110N/A# Common Development and Distribution License (the "License").
110N/A# You may not use this file except in compliance with the License.
110N/A#
110N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
110N/A# or http://www.opensolaris.org/os/licensing.
110N/A# See the License for the specific language governing permissions
110N/A# and limitations under the License.
110N/A#
110N/A# When distributing Covered Code, include this CDDL HEADER in each
110N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
110N/A# If applicable, add the following below this CDDL HEADER, with the
110N/A# fields enclosed by brackets "[]" replaced with your own identifying
110N/A# information: Portions Copyright [yyyy] [name of copyright owner]
110N/A#
110N/A# CDDL HEADER END
110N/A#
3817N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
110N/A#
110N/Ainclude ../../make-rules/shared-macros.mk
110N/A
110N/ACOMPONENT_NAME= bash
1303N/ACOMPONENT_VERSION= 4.2
110N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
110N/ACOMPONENT_PROJECT_URL= http://www.gnu.org/software/bash/
110N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
1303N/ACOMPONENT_ARCHIVE_HASH = \
1303N/A sha256:a27a1179ec9c0830c65c6aa5d7dab60f7ce1a2a608618570f96bfa72e95ab3d8
110N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/bash/$(COMPONENT_ARCHIVE)
1258N/ACOMPONENT_BUGDB= utility/bash
110N/A
2899N/ATPNO= 7265
2899N/A
3817N/Ainclude $(WS_MAKE_RULES)/prep.mk
3817N/Ainclude $(WS_MAKE_RULES)/configure.mk
3817N/Ainclude $(WS_MAKE_RULES)/ips.mk
110N/A
2851N/ABASH_PATCHLEVEL=$(shell grep -h "define PATCHLEVEL" $(COMPONENT_DIR)/patches/bash* | nawk '{print $$NF}' | sort -n | tail -1)
2851N/AIPS_COMPONENT_VERSION = $(COMPONENT_VERSION).$(BASH_PATCHLEVEL)
110N/APATCH_LEVEL = 0
110N/A
181N/APKG_PROTO_DIRS += $(COMPONENT_DIR)/Solaris
110N/A
110N/A# Enable C99 mode + -Xc for it's additional warnings.
110N/Astudio_C99MODE = -Xc $(studio_C99_ENABLE)
110N/A
110N/A# Use the maximum number of registers on sparc since we have no libraries
110N/Astudio_XREGS.sparc = -xregs=appl
110N/A
110N/A# 8 byte memory alignment + interpretation of non-alignment instead of SIGBUS
110N/Astudio_ALIGN.sparc.32 = -xmemalign=8i
1625N/Astudio_ALIGN.sparc.64 = -xmemalign=16i
110N/A
110N/A# -xinline=%auto -- we like inlining where appropriate
110N/ACFLAGS += -xinline=%auto
110N/A
110N/A# -xbuiltin=%none -- builtins have been known to be buggy
110N/ACFLAGS += -xbuiltin=%none
110N/A
110N/ACFLAGS += $(XPG6MODE)
110N/ACFLAGS += $(CPP_POSIX)
110N/ACFLAGS += $(CPP_C99_EXTENDED_MATH)
110N/A
110N/A# configure checks for some functions, but doesn't seem to want to link in
110N/A# the required libraries for them. We avoid linking with libthread.so.1
110N/A# just because we pass -mt, by explicitly passing -lc.
110N/ALIBS = -lc -lsocket -lgen
110N/A
110N/A# -z redlocsym -- let's shrink the SHT_SYMTAB as much as we can
110N/ALDFLAGS = $(LD_Z_REDLOCSYM)
110N/A
3823N/A# Do not change the order of these regexp transforms.
3823N/ACOMPONENT_TEST_TRANSFORMS += \
3823N/A '-e "/^</d"' \
3823N/A '-e "/^>/d"' \
3823N/A '-e "/^---/d"' \
3823N/A '-e "s/^[0-9]\{1,\}[a-z]\{1,\}[0-9]\{1,\}//g"' \
3823N/A '-e "s/^[0-9]\{1,\},[0-9]\{1,\}[a-z]\{1,\}[0-9]\{1,\},[0-9]\{1,\}//g"' \
3823N/A '-e "/^$$/d"' \
3823N/A '-e "s/i386-pc-//g"' \
3823N/A '-e "s/i386//g"' \
3823N/A '-e "s/sparc-sun-//g"' \
3823N/A '-e "s/sparc//g"'
3823N/A
110N/A# The bash test harness needs the GNU userland utilities
1625N/ATEST_PATH = "PATH=$(BUILD_DIR_64):$(GNUBIN):$(USRBINDIR)"
3823N/ATEST_RESULTS_FILE = $(COMPONENT_TEST_RESULTS_DIR)/test-$(BITS)-results
110N/A
110N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
110N/ACONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
110N/ACONFIGURE_ENV += LIBS="$(LIBS)"
110N/A
110N/ACONFIGURE_OPTIONS += --localstatedir=/var
110N/ACONFIGURE_OPTIONS += --enable-alias
110N/ACONFIGURE_OPTIONS += --enable-arith-for-command
110N/ACONFIGURE_OPTIONS += --enable-array-variables
110N/ACONFIGURE_OPTIONS += --enable-bang-history
110N/ACONFIGURE_OPTIONS += --enable-brace-expansion
110N/ACONFIGURE_OPTIONS += --enable-casemod-attributes
110N/ACONFIGURE_OPTIONS += --enable-casemod-expansions
110N/ACONFIGURE_OPTIONS += --enable-command-timing
110N/ACONFIGURE_OPTIONS += --enable-cond-command
110N/ACONFIGURE_OPTIONS += --enable-cond-regexp
110N/ACONFIGURE_OPTIONS += --enable-coprocesses
110N/ACONFIGURE_OPTIONS += --enable-debugger
110N/ACONFIGURE_OPTIONS += --enable-directory-stack
110N/ACONFIGURE_OPTIONS += --enable-disabled-builtins
110N/ACONFIGURE_OPTIONS += --enable-dparen-arithmetic
110N/ACONFIGURE_OPTIONS += --enable-extended-glob
110N/ACONFIGURE_OPTIONS += --enable-help-builtin
110N/ACONFIGURE_OPTIONS += --enable-history
110N/ACONFIGURE_OPTIONS += --enable-job-control
110N/ACONFIGURE_OPTIONS += --enable-multibyte
110N/ACONFIGURE_OPTIONS += --enable-net-redirections
110N/ACONFIGURE_OPTIONS += --enable-process-substitution
110N/ACONFIGURE_OPTIONS += --enable-progcomp
110N/ACONFIGURE_OPTIONS += --enable-prompt-string-decoding
110N/ACONFIGURE_OPTIONS += --enable-readline
110N/ACONFIGURE_OPTIONS += --enable-restricted
110N/ACONFIGURE_OPTIONS += --enable-select
110N/ACONFIGURE_OPTIONS += --enable-separate-helpfiles
110N/ACONFIGURE_OPTIONS += --enable-single-help-strings
110N/ACONFIGURE_OPTIONS += --disable-strict-posix-default
1303N/ACONFIGURE_OPTIONS += --enable-usg-echo-default=yes
1303N/ACONFIGURE_OPTIONS += --enable-xpg-echo-default=yes
110N/ACONFIGURE_OPTIONS += --enable-mem-scramble
110N/ACONFIGURE_OPTIONS += --disable-profiling
110N/ACONFIGURE_OPTIONS += --enable-static-link
110N/ACONFIGURE_OPTIONS += --enable-largefile
110N/ACONFIGURE_OPTIONS += --enable-nls
1303N/ACONFIGURE_OPTIONS += --with-bash-malloc=yes
110N/ACONFIGURE_OPTIONS += --with-curses
110N/ACONFIGURE_OPTIONS += --with-installed-readline=no
110N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
110N/A
3353N/ACOMPONENT_TEST_DIR = $(BUILD_DIR_64)
3353N/ACOMPONENT_TEST_ENV = - $(TEST_PATH)
3823N/ACOMPONENT_TEST_TARGETS = check > $(TEST_RESULTS_FILE) 2>&1
181N/A
1625N/AASLR_MODE=$(ASLR_ENABLE)
110N/A
3477N/Aconfigure: $(CONFIGURE_64)
3477N/A
1625N/Abuild: $(BUILD_64)
1625N/A
1625N/Ainstall: $(INSTALL_64)
110N/A ( cd $(PROTOUSRSHAREDIR)/locale ; \
110N/A cp -Rp "en@boldquot" en ; \
110N/A cp -Rp "en@boldquot" en_CA ; \
110N/A cp -Rp "en@boldquot" en_GB )
110N/A
3353N/Atest: $(TEST_64)
110N/A
3817N/AREQUIRED_PACKAGES += shell/ksh93
3817N/AREQUIRED_PACKAGES += system/library