Makefile revision 181
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#
110N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
110N/A#
110N/Ainclude ../../make-rules/shared-macros.mk
110N/A
110N/ACOMPONENT_NAME= bash
110N/ACOMPONENT_VERSION= 4.1
110N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
110N/ACOMPONENT_PROJECT_URL= http://www.gnu.org/software/bash/
110N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
110N/ACOMPONENT_ARCHIVE_HASH= sha1:3bd1ec9c66f3689f6b3495bdaaf9077b2e5dc150
110N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/bash/$(COMPONENT_ARCHIVE)
110N/A
110N/Ainclude ../../make-rules/prep.mk
110N/Ainclude ../../make-rules/configure.mk
110N/Ainclude ../../make-rules/ips.mk
110N/A
110N/AIPS_COMPONENT_VERSION = $(COMPONENT_VERSION).9
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
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
110N/A# The bash test harness needs the GNU userland utilities
110N/ATEST_PATH = "PATH=$(BUILD_DIR_32):$(GNUBIN):$(USRBINDIR)"
110N/ATEST_OUTPUT = $(COMPONENT_DIR)/bash_test_results_$(MACH).out
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
110N/ACONFIGURE_OPTIONS += --enable-usg-echo-default
110N/ACONFIGURE_OPTIONS += --enable-xpg-echo-default
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
110N/ACONFIGURE_OPTIONS += --with-bash-malloc
110N/ACONFIGURE_OPTIONS += --with-curses
110N/ACONFIGURE_OPTIONS += --with-installed-readline=no
110N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
110N/A
181N/ATEST_ENV += -i
181N/ATEST_ENV += $(TEST_PATH)
181N/ATEST_ENV += $(TARGET_ENV)
181N/A
110N/Abuild: $(BUILD_32)
110N/A
110N/Ainstall: $(INSTALL_32)
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
181N/Atest: $(TEST_32)
110N/A
110N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
110N/A
110N/Ainclude ../../make-rules/depend.mk
110N/A