Old 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 VER=xemacs-21.4.15
29 SRCTAR=$(VER).tar.gz
30
31 all: $(VER)/config.status
32 (cd $(VER); env \
33 "LD_OPTIONS=-L${ROOT}/opt/sfw/lib -L/usr/sfw/lib -L/usr/lib -R/opt/sfw/lib -R/usr/sfw/lib -R/usr/lib" \
34 CC=$(SRC)/tools/gcc CXX=$(SRC)/tools/g++ \
35 MAKE=/usr/sfw/bin/gmake /usr/sfw/bin/gmake)
36 @find . -name core -exec rm -f {} \;
37
38 include ../Makefile.cmd
39
40 install: all
41 $(SH) ./install-sfw
42
43 $(VER)/config.status: $(VER)/configure.ccd
44 (cd $(VER); \
45 env \
46 "LD_OPTIONS=-L${ROOT}/opt/sfw/lib -L/usr/sfw/lib -L/usr/lib -R/opt/sfw/lib -R/usr/sfw/lib -R/usr/lib" \
47 CC=$(SRC)/tools/gcc CXX=$(SRC)/tools/g++ \
48 MAKE=/usr/ccs/bin/make \
49 ./configure.ccd --prefix=/opt/sfw \
50 --without-gif --without-ldap --with-msw=no \
51 --mail-locking=lockf \
52 --x-includes=/usr/openwin/include \
53 --x-libraries=/usr/openwin/lib \
54 --site-includes=$(ROOT)/opt/sfw/include \
55 --site-libraries=$(ROOT)/opt/sfw/lib \
56 --with-workshop --with-tooltalk)
57
58 $(VER)/configure.ccd: $(VER)/configure fixconfigure
59 ./fixconfigure < $(VER)/configure > $(VER)/configure.ccd
60 @echo "Patched configure for long file names"
61 # @echo "Changes to remove long file name check:"
62 # -diff -u $(VER)/configure $(VER)/configure.ccd
63 chmod a+x $(VER)/configure.ccd
64
65 $(VER)/configure: $(SRCTAR)
66 gzip -dc $(SRCTAR) | tar xpf -
67 touch $@
68 /usr/bin/gpatch -p0 < sol2patch
69
70 # Temporarily not using autoconf because the XEmacs configure.in doesn't
71 # work with autoconf 2.53:
72 # (cd $(VER); /opt/sfw/bin/autoconf)
73
74 fixconfigure: fixconfigure.pl
75 rm -f fixconfigure
76 cp fixconfigure.pl fixconfigure
77 chmod a+x fixconfigure
78
79 clean:
80 -rm -rf $(VER) fixconfigure
81
82 include ../Makefile.targ
83
84 .SUFFIXES:
85