New Makefile.sfw
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
23 #
24 # Copyright 2007 Sun Microsystems, Inc. All Rights Reserved.
25 # Use is subject to license terms.
26 #
27 #
28
29 VER=expect-5.43
30
31 SCRIPTS = timed-run timed-read ftp-rfc autopasswd lpunlock weather \
32 passmass rftp kibitz rlogin-cwd xpstat tkpasswd dislocate xkibitz \
33 tknewsbiff unbuffer mkpasswd cryptdir decryptdir autoexpect multixterm
34
35 all: $(VER)/config.status
36 (cd $(VER); env \
37 CC="$(SRC)/tools/cc -I/usr/sfw/include" \
38 CXX=$(SRC)/tools/cc \
39 "LD_OPTIONS=-L/usr/sfw/lib -L$(ROOT)/opt/sfw/lib -R/usr/sfw/lib:/opt/sfw/lib" \
40 MAKE=/usr/sfw/bin/gmake \
41 /usr/sfw/bin/gmake all ${SCRIPTS})
42 @find . -name core -exec rm -f {} \;
43
44 include ../Makefile.cmd
45
46 install: all
47 $(SH) ./install-sfw
48
49 $(VER)/config.status: $(VER)/configure
50 (cd $(VER); env \
51 env ac_cv_sys_long_file_names=yes \
52 CC="$(SRC)/tools/cc -I/usr/sfw/include" \
53 CXX=$(SRC)/tools/cc \
54 "LD_OPTIONS=-L/usr/sfw/lib -L$(ROOT)/opt/sfw/lib -R/usr/sfw/lib:/opt/sfw/lib" \
55 MAKE=/usr/sfw/bin/gmake \
56 ./configure --prefix=/opt/sfw \
57 --with-tcl=/usr/lib \
58 --with-tk=/usr/lib \
59 --with-tclinclude=$(SRC)/lib/tcl/tcl8.4.14 \
60 --with-tkinclude=$(SRC)/lib/tk/tk8.4.14 )
61
62 $(VER)/configure: $(VER).tar.bz2
63 bzip2 -dc $(VER).tar.bz2 | /usr/sfw/bin/gtar xpf -
64 touch $(VER)/configure
65 /usr/bin/gpatch -p0 < fixline1.patch
66
67 clean:
68 -rm -rf $(VER)
69
70 include ../Makefile.targ
71
72 .SUFFIXES:
73
74 FRC: