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