usr/src/cmd/bash/Makefile.sfw
changeset 72 82bde2a81435
parent 71 121736d79438
child 73 73cc228b67a6
--- a/usr/src/cmd/bash/Makefile.sfw	Mon Mar 21 01:03:46 2011 -0800
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,158 +0,0 @@
-#
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-# Copyright 2001, 2010, Oracle and/or its affiliates. All rights reserved.
-#
-# ident	"@(#)Makefile.sfw	1.19	10/11/08 SMI"
-#
-
-VER =		$(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh)
-TARBALL =	$(VER).tar.gz
-PWD:sh=pwd
-
-include ../Makefile.cmd
-
-# We must use the c99 driver because some c99 math functions are
-# only available with this driver, and not with cc -xc99=%all
-CC = $(SPRO_VROOT)/bin/c99
-
-CFLAGS_GENERIC = -Xc -features=extinl,extensions -xprefetch=auto 
-CFLAGS_GENERIC += -xbuiltin=%none -xnorunpath -xcsi -xinline=%auto 
-CFLAGS_GENERIC += -xustr=ascii_utf16_ushort -xF=%none -xthreadvar=%all 
-CFLAGS_GENERIC += -xspace -xldscope=symbolic -KPIC -mt -D_REENTRANT 
-CFLAGS_GENERIC += -D__EXTENSIONS__=1 -D_LARGEFILE_SOURCE 
-CFLAGS_GENERIC += -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=600 -D_XPG6 
-CFLAGS_GENERIC += -D_POSIX_PTHREAD_SEMANTICS -D_POSIX_C_SOURCE=200112L 
-CFLAGS_GENERIC += -D__XOPEN_OR_POSIX -D_STRICT_STDC -D_STRICT_STDC__ 
-CFLAGS_GENERIC += -D_STDC_C99 -D_ISOC99_SOURCE -D__C99FEATURES__ -DSOLARIS
-
-CFLAGS_i386 = -m32 -xregs=no%frameptr -xarch=generic -xO3 -s
-CFLAGS_sparc = -m32 -xvis=yes -xmemalign=8i -xregs=appl 
-CFLAGS_sparc += -xtarget=ultra2 -xarch=sparcvis -xchip=ultra2 -xO4 -s
-CFLAGS = $(CFLAGS_GENERIC) $(CFLAGS_$(MACH))
-
-LDFLAGS = -lc -lm -lsocket -lresolv -lnsl -lgen 
-LDFLAGS += -z combreloc -z redlocsym -z ignore -z rescan -z absexec
-LDFLAGS += -KPIC
-
-LD_OPTIONS = -M $(SRC)/cmd/mapfile_noexstk
-LD_OPTIONS += -lsocket -lresolv -lnsl -lgen -z ignore
-
-# The bash test harness needs the GNU userland utilities
-GNU_PATH = /usr/gnu/bin
-
-# We need a temporary install directory to get all the *.mo
-# localization files.
-DESTDIR=$(SRC)/cmd/bash/proto-$(MACH)
-
-# We need to tell the install-sfw script where the bash system
-# scripts are.
-SCRIPTDIR=$(SRC)/cmd/bash/Solaris
-
-TARGET_ENV = CC=$(CC) CXX=$(CCC)
-TARGET_ENV += "CPPFLAGS=$(CPPFLAGS)"
-TARGET_ENV += "CFLAGS=$(CFLAGS)"
-TARGET_ENV += "LDFLAGS=$(LDFLAGS)"
-TARGET_ENV += "LD=$(CC) $(CFLAGS) $(LDFLAGS)"
-TARGET_ENV += "PATH=$(GNU_PATH):$(SFW_PATH)"
-TARGET_ENV += "MAKE=$(GMAKE)"
-TARGET_ENV += "INSTALL=$(GINSTALL)"
-
-TEST_OUTPUT = bash_test_results_$(MACH).out
-
-# For running the test harness we need to pick up some executables
-# which are built in $(top_srcdir).
-TEST_PATH = "PATH=$(SRC)/cmd/bash/$(VER):$(GNU_PATH):$(SFW_PATH)"
-
-all: $(VER)/config.status
-	( cd $(VER); env - \
-	    LD_OPTIONS="$(LD_OPTIONS)" $(GMAKE) )
-
-test: all
-	( cd $(VER) ; \
-	    env - $(TARGET_ENV) $(TEST_PATH) $(GMAKE) check > \
-	    $(TEST_OUTPUT) 2>&1 )
-
-install: all
-	mkdir -p $(DESTDIR)
-	( cd $(VER) ; env "DESTDIR=$(DESTDIR)" \
-	    $(GMAKE) DESTDIR=$(DESTDIR) \
-	    INSTALL=$(GINSTALL) install )
-	INSTDIR=$(DESTDIR) SCRIPTDIR=$(SCRIPTDIR) VERS=$(VER) $(SHELL) ./install-sfw
-
-$(VER)/configure: $(VER)/$(SFW_STAMP_UNPACKED)
-
-$(VER)/apply_patches.sh: $(PWD)/Solaris/apply_patches.sh $(VER)/configure
-	( cd $(VER) ; \
-	    cp -fp ../Solaris/apply_patches.sh . ; \
-	    chmod 0755 ./apply_patches.sh ; \
-	    $(SHELL) ./apply_patches.sh )
-
-$(VER)/config.status: $(VER)/apply_patches.sh
-	(cd $(VER); env - $(TARGET_ENV) \
-	    ./configure --prefix=$(CFGPREFIX) \
-	    --localstatedir=/var \
-	    --enable-alias \
-	    --enable-arith-for-command \
-	    --enable-array-variables \
-	    --enable-bang-history \
-	    --enable-brace-expansion \
-	    --enable-casemod-attributes \
-	    --enable-casemod-expansions \
-	    --enable-command-timing \
-	    --enable-cond-command \
-	    --enable-cond-regexp \
-	    --enable-coprocesses \
-	    --enable-debugger \
-	    --enable-directory-stack \
-	    --enable-disabled-builtins \
-	    --enable-dparen-arithmetic \
-	    --enable-extended-glob \
-	    --enable-help-builtin \
-	    --enable-history \
-	    --enable-job-control \
-	    --enable-multibyte \
-	    --enable-net-redirections \
-	    --enable-process-substitution \
-	    --enable-progcomp \
-	    --enable-prompt-string-decoding \
-	    --enable-readline \
-	    --enable-restricted \
-	    --enable-select \
-	    --enable-separate-helpfiles \
-	    --enable-single-help-strings \
-	    --disable-strict-posix-default \
-	    --enable-usg-echo-default \
-	    --enable-xpg-echo-default \
-	    --enable-mem-scramble \
-	    --disable-profiling \
-	    --enable-static-link \
-	    --enable-largefile \
-	    --enable-nls \
-	    --with-bash-malloc \
-	    --with-curses \
-	    --with-installed-readline=no )
-
-clean:
-	-rm -rf $(VER) $(DESTDIR)
-
-include ../Makefile.targ
-