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 2009 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             --with-postgresql=no \
 53             --x-includes=/usr/openwin/include \
 54             --x-libraries=/usr/openwin/lib \
 55             --site-includes=$(ROOT)/opt/sfw/include \
 56             --site-libraries=$(ROOT)/opt/sfw/lib \
 57             --with-workshop --with-tooltalk)
 58 
 59 $(VER)/configure.ccd: $(VER)/configure fixconfigure
 60         ./fixconfigure < $(VER)/configure > $(VER)/configure.ccd
 61         @echo "Patched configure for long file names"
 62 #       @echo "Changes to remove long file name check:"
 63 #       -diff -u $(VER)/configure $(VER)/configure.ccd
 64         chmod a+x $(VER)/configure.ccd
 65 
 66 $(VER)/configure: $(SRCTAR) 
 67         gzip -dc $(SRCTAR) | tar xpf -
 68         touch $@
 69         /usr/bin/gpatch -p0 < sol2patch
 70 
 71 # Temporarily not using autoconf because the XEmacs configure.in doesn't
 72 # work with autoconf 2.53:
 73 #       (cd $(VER); /opt/sfw/bin/autoconf)
 74 
 75 fixconfigure: fixconfigure.pl
 76         rm -f fixconfigure
 77         cp fixconfigure.pl fixconfigure
 78         chmod a+x fixconfigure
 79 
 80 clean:
 81         -rm -rf $(VER) fixconfigure
 82 
 83 include ../Makefile.targ
 84 
 85 .SUFFIXES:
 86