usr/src/cmd/expect/Makefile.sfw
author Jon Tibble <meths@btinternet.com>
Fri, 10 Feb 2012 16:19:42 +0000
branchoi_151a
changeset 114 b6d40d0a7b17
parent 0 b34509ac961f
permissions -rw-r--r--
Added tag oi_151a_prestable1 for changeset b1282e88c680

# 
#  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
#
#
# /* Portions Copyright 2007 ShivaKumar GN */

# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
#ident	"@(#)Makefile.sfw	1.3	08/03/25 SMI"

VER=expect-5.43
TCLVER=tcl8.4.18
TKVER=tk8.4.18

SCRIPTS = timed-run timed-read ftp-rfc autopasswd lpunlock weather \
	  passmass rftp kibitz rlogin-cwd xpstat tkpasswd dislocate xkibitz \
	  tknewsbiff unbuffer mkpasswd cryptdir decryptdir autoexpect multixterm

include ../Makefile.cmd

all: $(VER)/config.status
	(cd $(VER); env \
	    CC="$(CC)" \
	    CXX="$(CXX)" \
	    "LD_OPTIONS=-M $(SRC)/cmd/mapfile_noexstk -L/usr/lib -R/usr/lib" \
	    PATH=$(SFW_PATH) \
	    MAKE=$(GMAKE) \
	    $(GMAKE) all ${SCRIPTS})
	@find . -name core -exec rm -f {} \;

install: all 
	$(SH) ./install-sfw

$(VER)/config.status: $(VER)/configure
	(cd $(VER); env \
	    env ac_cv_sys_long_file_names=yes \
	    CC="$(CC)" \
	    CXX="$(CXX)" \
	    "LD_OPTIONS=-M $(SRC)/cmd/mapfile_noexstk -L/usr/lib -R/usr/lib" \
	    PATH=$(SFW_PATH) \
	    MAKE=$(GMAKE) \
            ./configure --prefix=/usr \
		    --with-tcl=$(SRC)/lib/tcl/$(TCLVER)/unix \
                    --with-tk=$(SRC)/lib/tk/$(TKVER)/unix \
                    --with-tclinclude=$(SRC)/lib/tcl/$(TCLVER) \
                    --with-tkinclude=$(SRC)/lib/tk/$(TKVER)/generic \
                    --enable-shared=yes)

$(VER)/configure: $(VER).tar.gz
	/usr/bin/gzip -dc $(VER).tar.gz | /usr/sfw/bin/gtar xpf -
	touch $(VER)/configure
	/usr/bin/gpatch -p0 < expect-lib-path-into-tcl-subdir.patch
	
clean:
	-rm -rf $(VER)

include ../Makefile.targ

FRC: