Makefile revision 1303
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson#
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# CDDL HEADER START
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson#
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# The contents of this file are subject to the terms of the
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# Common Development and Distribution License (the "License").
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# You may not use this file except in compliance with the License.
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson#
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# or http://www.opensolaris.org/os/licensing.
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# See the License for the specific language governing permissions
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# and limitations under the License.
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson#
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# When distributing Covered Code, include this CDDL HEADER in each
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# If applicable, add the following below this CDDL HEADER, with the
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# fields enclosed by brackets "[]" replaced with your own identifying
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# information: Portions Copyright [yyyy] [name of copyright owner]
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson#
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# CDDL HEADER END
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson#
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson#
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsoninclude ../../make-rules/shared-macros.mk
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCOMPONENT_NAME= bash
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCOMPONENT_VERSION= 4.2
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCOMPONENT_PROJECT_URL= http://www.gnu.org/software/bash/
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCOMPONENT_ARCHIVE_HASH = \
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson sha256:a27a1179ec9c0830c65c6aa5d7dab60f7ce1a2a608618570f96bfa72e95ab3d8
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/bash/$(COMPONENT_ARCHIVE)
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCOMPONENT_BUGDB= utility/bash
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsoninclude ../../make-rules/prep.mk
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsoninclude ../../make-rules/configure.mk
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsoninclude ../../make-rules/ips.mk
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonIPS_COMPONENT_VERSION = $(COMPONENT_VERSION).9
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonPATCH_LEVEL = 0
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonPKG_PROTO_DIRS += $(COMPONENT_DIR)/Solaris
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# Enable C99 mode + -Xc for it's additional warnings.
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonstudio_C99MODE = -Xc $(studio_C99_ENABLE)
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# Use the maximum number of registers on sparc since we have no libraries
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonstudio_XREGS.sparc = -xregs=appl
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# 8 byte memory alignment + interpretation of non-alignment instead of SIGBUS
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonstudio_ALIGN.sparc.32 = -xmemalign=8i
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# -xinline=%auto -- we like inlining where appropriate
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCFLAGS += -xinline=%auto
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# -xbuiltin=%none -- builtins have been known to be buggy
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCFLAGS += -xbuiltin=%none
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCFLAGS += $(XPG6MODE)
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCFLAGS += $(CPP_POSIX)
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonCFLAGS += $(CPP_C99_EXTENDED_MATH)
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# configure checks for some functions, but doesn't seem to want to link in
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# the required libraries for them. We avoid linking with libthread.so.1
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# just because we pass -mt, by explicitly passing -lc.
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonLIBS = -lc -lsocket -lgen
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# -z redlocsym -- let's shrink the SHT_SYMTAB as much as we can
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonLDFLAGS = $(LD_Z_REDLOCSYM)
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson# The bash test harness needs the GNU userland utilities
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonTEST_PATH = "PATH=$(BUILD_DIR_32):$(GNUBIN):$(USRBINDIR)"
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilsonTEST_OUTPUT = $(COMPONENT_DIR)/bash_test_results_$(MACH).out
9763c30263c2e128dade7dbb7fa4aeabc936d8b3neil_a_wilson
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=yes
CONFIGURE_OPTIONS += --enable-xpg-echo-default=yes
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=yes
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