1 # 2 # CDDL HEADER START 3 # 4 # The contents of this file are subject to the terms of the 5 # Common Development and Distribution License (the "License"). 6 # You may not use this file except in compliance with the License. 7 # 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 # or http://www.opensolaris.org/os/licensing. 10 # See the License for the specific language governing permissions 11 # and limitations under the License. 12 # 13 # When distributing Covered Code, include this CDDL HEADER in each 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 # If applicable, add the following below this CDDL HEADER, with the 16 # fields enclosed by brackets "[]" replaced with your own identifying 17 # information: Portions Copyright [yyyy] [name of copyright owner] 18 # 19 # CDDL HEADER END 20 # 21 # 22 # /* Portions Copyright 2007 ShivaKumar GN */ 23 24 # Copyright 2008 Sun Microsystems, Inc. All rights reserved. 25 # Use is subject to license terms. 26 # 27 #ident "@(#)Makefile.sfw 1.3 08/03/25 SMI" 28 29 VER=expect-5.43 30 TCLVER=tcl8.4.18 31 TKVER=tk8.4.18 32 33 SCRIPTS = timed-run timed-read ftp-rfc autopasswd lpunlock weather \ 34 passmass rftp kibitz rlogin-cwd xpstat tkpasswd dislocate xkibitz \ 35 tknewsbiff unbuffer mkpasswd cryptdir decryptdir autoexpect multixterm 36 37 include ../Makefile.cmd 38 39 all: $(VER)/config.status 40 (cd $(VER); env \ 41 CC="$(CC)" \ 42 CXX="$(CXX)" \ 43 "LD_OPTIONS=-M $(SRC)/cmd/mapfile_noexstk -L/usr/lib -R/usr/lib" \ 44 PATH=$(SFW_PATH) \ 45 MAKE=$(GMAKE) \ 46 $(GMAKE) all ${SCRIPTS}) 47 @find . -name core -exec rm -f {} \; 48 49 install: all 50 $(SH) ./install-sfw 51 52 $(VER)/config.status: $(VER)/configure 53 (cd $(VER); env \ 54 env ac_cv_sys_long_file_names=yes \ 55 CC="$(CC)" \ 56 CXX="$(CXX)" \ 57 "LD_OPTIONS=-M $(SRC)/cmd/mapfile_noexstk -L/usr/lib -R/usr/lib" \ 58 PATH=$(SFW_PATH) \ 59 MAKE=$(GMAKE) \ 60 ./configure --prefix=/usr \ 61 --with-tcl=$(SRC)/lib/tcl/$(TCLVER)/unix \ 62 --with-tk=$(SRC)/lib/tk/$(TKVER)/unix \ 63 --with-tclinclude=$(SRC)/lib/tcl/$(TCLVER) \ 64 --with-tkinclude=$(SRC)/lib/tk/$(TKVER)/generic \ 65 --enable-shared=yes) 66 67 $(VER)/configure: $(VER).tar.gz 68 /usr/bin/gzip -dc $(VER).tar.gz | /usr/sfw/bin/gtar xpf - 69 touch $(VER)/configure 70 /usr/bin/gpatch -p0 < expect-lib-path-into-tcl-subdir.patch 71 72 clean: 73 -rm -rf $(VER) 74 75 include ../Makefile.targ 76 77 FRC: 78