Makefile revision 5516
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#
5516N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
110N/A#
110N/Ainclude ../../make-rules/shared-macros.mk
110N/A
110N/ACOMPONENT_NAME= bash
5516N/ACOMPONENT_VERSION= 4.3
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 = \
5516N/A sha256:afc687a28e0e24dc21b988fa159ff9dbcf6b7caa92ade8645cc6d5605cd024d4
110N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/bash/$(COMPONENT_ARCHIVE)
1258N/ACOMPONENT_BUGDB= utility/bash
110N/A
5516N/ATPNO= 21712
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_C99_EXTENDED_MATH)
5516N/ACFLAGS += -I/usr/include/ncurses
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
5516N/A# Results output is slightly different on Intel vs. SPARC.
5516N/ACOMPONENT_TEST_MASTER = \
5516N/A $(COMPONENT_TEST_RESULTS_DIR)/results-$(MACH).master
5516N/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"' \
5516N/A '-e "/^Testing/d"' \
5516N/A '-e "/m64/d"' \
5516N/A '-e "/DPROGRAM/d"' \
5516N/A '-e "/^rm -f/d"' \
5516N/A '-e "/^ls -l/d"' \
5516N/A '-e "/text/d"' \
5516N/A '-e "/size/d"' \
5516N/A '-e "/bash$$/d"' \
5516N/A '-e "/warning/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"' \
5516N/A '-e "/^$$/d"'
3823N/A
110N/A# The bash test harness needs the GNU userland utilities
1625N/ATEST_PATH = "PATH=$(BUILD_DIR_64):$(GNUBIN):$(USRBINDIR)"
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
5516N/ACONFIGURE_OPTIONS += --enable-bang-history
5516N/ACONFIGURE_OPTIONS += --enable-brace-expansion
5516N/ACONFIGURE_OPTIONS += --enable-casemod-attributes
5516N/ACONFIGURE_OPTIONS += --enable-casemod-expansions
5516N/ACONFIGURE_OPTIONS += --enable-command-timing
5516N/ACONFIGURE_OPTIONS += --enable-cond-command
5516N/ACONFIGURE_OPTIONS += --enable-cond-regexp
5516N/ACONFIGURE_OPTIONS += --enable-coprocesses
5516N/ACONFIGURE_OPTIONS += --enable-debugger
5516N/ACONFIGURE_OPTIONS += --enable-directory-stack
5516N/ACONFIGURE_OPTIONS += --enable-disabled-builtins
5516N/ACONFIGURE_OPTIONS += --enable-dparen-arithmetic
5516N/ACONFIGURE_OPTIONS += --enable-extended-glob
5516N/ACONFIGURE_OPTIONS += --enable-help-builtin
5516N/ACONFIGURE_OPTIONS += --enable-history
5516N/ACONFIGURE_OPTIONS += --enable-job-control
5516N/ACONFIGURE_OPTIONS += --enable-multibyte
5516N/ACONFIGURE_OPTIONS += --enable-net-redirections
5516N/ACONFIGURE_OPTIONS += --enable-process-substitution
5516N/ACONFIGURE_OPTIONS += --enable-progcomp
5516N/ACONFIGURE_OPTIONS += --enable-prompt-string-decoding
5516N/ACONFIGURE_OPTIONS += --enable-readline
5516N/ACONFIGURE_OPTIONS += --enable-restricted
5516N/ACONFIGURE_OPTIONS += --enable-select
5516N/ACONFIGURE_OPTIONS += --enable-separate-helpfiles
5516N/ACONFIGURE_OPTIONS += --enable-single-help-strings
5516N/ACONFIGURE_OPTIONS += --disable-strict-posix-default
1303N/ACONFIGURE_OPTIONS += --enable-usg-echo-default=yes
1303N/ACONFIGURE_OPTIONS += --enable-xpg-echo-default=yes
5516N/ACONFIGURE_OPTIONS += --enable-mem-scramble
5516N/ACONFIGURE_OPTIONS += --disable-profiling
5516N/ACONFIGURE_OPTIONS += --enable-static-link
110N/ACONFIGURE_OPTIONS += --enable-largefile
5516N/ACONFIGURE_OPTIONS += --enable-nls
1303N/ACONFIGURE_OPTIONS += --with-bash-malloc=yes
5516N/ACONFIGURE_OPTIONS += --with-curses
5516N/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)
4708N/A
4708N/A# The tests use /tmp/xx, and there can only be one user running
5516N/A# the them at a time. Need to remove /tmp/xx after testing to
4708N/A# avoid permission issues for other users running these tests
4708N/ACOMPONENT_POST_TEST_ACTION = rm -f /tmp/xx
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
4337N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
4337N/A
5516N/AREQUIRED_PACKAGES += library/ncurses
3817N/AREQUIRED_PACKAGES += shell/ksh93
3817N/AREQUIRED_PACKAGES += system/library
5516N/A