Makefile revision 1273
98N/A#
98N/A# CDDL HEADER START
98N/A#
98N/A# The contents of this file are subject to the terms of the
1379N/A# Common Development and Distribution License (the "License").
98N/A# You may not use this file except in compliance with the License.
98N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
919N/A#
919N/Ainclude ../../make-rules/shared-macros.mk
919N/A
98N/ACOMPONENT_NAME= bash
98N/ACOMPONENT_VERSION= 4.1
98N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
98N/ACOMPONENT_PROJECT_URL= http://www.gnu.org/software/bash/
98N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
98N/ACOMPONENT_ARCHIVE_HASH= \
1339N/A sha256:3f627124a83c6d34db503a923e20710d370573a29dd5d11d6f116d1aee7be1da
1339N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/bash/$(COMPONENT_ARCHIVE)
1339N/ACOMPONENT_BUGDB= utility/bash
1265N/A
493N/Ainclude ../../make-rules/prep.mk
98N/Ainclude ../../make-rules/configure.mk
911N/Ainclude ../../make-rules/ips.mk
1379N/A
1379N/AIPS_COMPONENT_VERSION = $(COMPONENT_VERSION).9
1379N/APATCH_LEVEL = 0
911N/A
98N/APKG_PROTO_DIRS += $(COMPONENT_DIR)/Solaris
235N/A
493N/A# Enable C99 mode + -Xc for it's additional warnings.
98N/Astudio_C99MODE = -Xc $(studio_C99_ENABLE)
916N/A
916N/A# Use the maximum number of registers on sparc since we have no libraries
916N/Astudio_XREGS.sparc = -xregs=appl
916N/A
970N/A# 8 byte memory alignment + interpretation of non-alignment instead of SIGBUS
970N/Astudio_ALIGN.sparc.32 = -xmemalign=8i
970N/A
970N/A# -xinline=%auto -- we like inlining where appropriate
970N/ACFLAGS += -xinline=%auto
970N/A
970N/A# -xbuiltin=%none -- builtins have been known to be buggy
970N/ACFLAGS += -xbuiltin=%none
970N/A
970N/ACFLAGS += $(XPG6MODE)
970N/ACFLAGS += $(CPP_POSIX)
970N/ACFLAGS += $(CPP_C99_EXTENDED_MATH)
970N/A
970N/A# configure checks for some functions, but doesn't seem to want to link in
970N/A# the required libraries for them. We avoid linking with libthread.so.1
970N/A# just because we pass -mt, by explicitly passing -lc.
970N/ALIBS = -lc -lsocket -lgen
970N/A
970N/A# -z redlocsym -- let's shrink the SHT_SYMTAB as much as we can
970N/ALDFLAGS = $(LD_Z_REDLOCSYM)
970N/A
970N/A# The bash test harness needs the GNU userland utilities
970N/ATEST_PATH = "PATH=$(BUILD_DIR_32):$(GNUBIN):$(USRBINDIR)"
970N/ATEST_OUTPUT = $(COMPONENT_DIR)/bash_test_results_$(MACH).out
970N/A
1029N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
1029N/ACONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
1124N/ACONFIGURE_ENV += LIBS="$(LIBS)"
1124N/A
1124N/ACONFIGURE_OPTIONS += --localstatedir=/var
1124N/ACONFIGURE_OPTIONS += --enable-alias
1124N/ACONFIGURE_OPTIONS += --enable-arith-for-command
1124N/ACONFIGURE_OPTIONS += --enable-array-variables
1303N/ACONFIGURE_OPTIONS += --enable-bang-history
1303N/ACONFIGURE_OPTIONS += --enable-brace-expansion
1351N/ACONFIGURE_OPTIONS += --enable-casemod-attributes
1351N/ACONFIGURE_OPTIONS += --enable-casemod-expansions
1351N/ACONFIGURE_OPTIONS += --enable-command-timing
1351N/ACONFIGURE_OPTIONS += --enable-cond-command
970N/ACONFIGURE_OPTIONS += --enable-cond-regexp
98N/ACONFIGURE_OPTIONS += --enable-coprocesses
98N/ACONFIGURE_OPTIONS += --enable-debugger
1265N/ACONFIGURE_OPTIONS += --enable-directory-stack
1124N/ACONFIGURE_OPTIONS += --enable-disabled-builtins
1124N/ACONFIGURE_OPTIONS += --enable-dparen-arithmetic
1124N/ACONFIGURE_OPTIONS += --enable-extended-glob
1265N/ACONFIGURE_OPTIONS += --enable-help-builtin
1265N/ACONFIGURE_OPTIONS += --enable-history
1265N/ACONFIGURE_OPTIONS += --enable-job-control
1124N/ACONFIGURE_OPTIONS += --enable-multibyte
98N/ACONFIGURE_OPTIONS += --enable-net-redirections
493N/ACONFIGURE_OPTIONS += --enable-process-substitution
98N/ACONFIGURE_OPTIONS += --enable-progcomp
970N/ACONFIGURE_OPTIONS += --enable-prompt-string-decoding
970N/ACONFIGURE_OPTIONS += --enable-readline
970N/ACONFIGURE_OPTIONS += --enable-restricted
1026N/ACONFIGURE_OPTIONS += --enable-select
970N/ACONFIGURE_OPTIONS += --enable-separate-helpfiles
970N/ACONFIGURE_OPTIONS += --enable-single-help-strings
1026N/ACONFIGURE_OPTIONS += --disable-strict-posix-default
1124N/ACONFIGURE_OPTIONS += --enable-usg-echo-default
1003N/ACONFIGURE_OPTIONS += --enable-xpg-echo-default
98N/ACONFIGURE_OPTIONS += --enable-mem-scramble
98N/ACONFIGURE_OPTIONS += --disable-profiling
98N/ACONFIGURE_OPTIONS += --enable-static-link
908N/ACONFIGURE_OPTIONS += --enable-largefile
591N/ACONFIGURE_OPTIONS += --enable-nls
493N/ACONFIGURE_OPTIONS += --with-bash-malloc
493N/ACONFIGURE_OPTIONS += --with-curses
1201N/ACONFIGURE_OPTIONS += --with-installed-readline=no
1201N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
1201N/A
1201N/ATEST_ENV += -i
1265N/ATEST_ENV += $(TEST_PATH)
1265N/ATEST_ENV += $(TARGET_ENV)
1201N/A
1201N/Abuild: $(BUILD_32)
1201N/A
1201N/Ainstall: $(INSTALL_32)
493N/A ( cd $(PROTOUSRSHAREDIR)/locale ; \
493N/A cp -Rp "en@boldquot" en ; \
493N/A cp -Rp "en@boldquot" en_CA ; \
493N/A cp -Rp "en@boldquot" en_GB )
493N/A
493N/Atest: $(TEST_32)
1026N/A
705N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
493N/A
557N/Ainclude ../../make-rules/depend.mk
1176N/A
493N/A