home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 8
/
FreshFishVol8-CD2.bin
/
bbs
/
gnu
/
libg++-2.6.2.lha
/
libg++-2.6.2
/
libio
/
config.shared
< prev
next >
Wrap
Text File
|
1994-11-29
|
13KB
|
403 lines
# Copyright (C) 1993 Free Software Foundation
#
# This file is part of the GNU IO Library. This library is free
# software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GNU CC; see the file COPYING. If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
# Significant variables:
test -z "${TO_TOPDIR}" && TO_TOPDIR=${TOLIBGXX}../
DOING_LIBGXX=${DOING_LIBGXX-false}
THIS_FILE="${srcdir}/${TOLIBGXX}config.shared"
echo "# Start of package fragment generated by ${THIS_FILE}."
# TOLIBGXX
# MOSTLYCLEAN
# CLEAN
# DISTCLEAN
# REALCLEAN
# SUBDIRS [defaults to (configdirs)]
# INFO_FILES List of (basenames of) texinfo files
# INFO_SUBDIRS [default: empty] sub-directories containing documentation
rootme=${rootme-`pwd`}
TOPDIR=${TOPDIR='$${rootme}'${TO_TOPDIR}}
echo '#' TOPDIR="${TOPDIR} invsubdir=${invsubdir} subdir=${subdir}"
SUBDIRS=${SUBDIRS-${configdirs}}
echo "srcdir = ${srcdir}"
echo "SUBDIRS = ${SUBDIRS}"
echo "prefix = ${prefix-/usr/local}"
echo "exec_prefix = ${exec_prefix-'${prefix}'}"
echo 'bindir = $(exec_prefix)/bin'
echo 'libdir = $(exec_prefix)/lib'
echo 'datadir = $(prefix)/lib'
echo 'mandir = $(prefix)/man'
echo 'man1dir = $(mandir)/man1'
echo 'man2dir = $(mandir)/man2'
echo 'man3dir = $(mandir)/man3'
echo 'man4dir = $(mandir)/man4'
echo 'man5dir = $(mandir)/man5'
echo 'man6dir = $(mandir)/man6'
echo 'man7dir = $(mandir)/man7'
echo 'man8dir = $(mandir)/man8'
echo 'man9dir = $(mandir)/man9'
echo 'infodir = $(prefix)/info'
echo 'includedir = $(prefix)/include'
echo 'gxx_includedir = $(libdir)/g++-include'
echo 'docdir = $(datadir)/doc'
echo ''
echo 'SHELL = /bin/sh'
echo ''
case "$srcdir" in
/*) echo 'INSTALL = $(srcdir)'/"${TO_TOPDIR}install.sh -c" ;;
*) echo 'INSTALL = $${rootme}$(srcdir)'/"${TO_TOPDIR}install.sh -c" ;;
esac
echo 'INSTALL_PROGRAM = $(INSTALL)'
echo 'INSTALL_DATA = $(INSTALL)'
echo ''
echo 'AR = `if [ -f' ${TOPDIR}'binutils/ar ] ; \'
echo " then echo ${TOPDIR}binutils/ar ; "'\'
echo ' else echo ar ; fi`'
echo 'AR_FLAGS = rc'
echo 'RANLIB = `if [ -f' ${TOPDIR}'binutils/ranlib ] ; \'
echo ' then echo '${TOPDIR}'binutils/ranlib ; \'
echo ' else echo ranlib ; fi`'
echo 'NM = `if [ -f' ${TOPDIR}'binutils/nm.new ] ; \'
echo ' then echo '${TOPDIR}'binutils/nm.new ; \'
echo ' else echo nm ; fi`'
echo 'NLMCONV = `if [ -f' ${TOPDIR}'binutils/nlmconv ] ; \'
echo ' then echo '${TOPDIR}'binutils/nlmconv ; \'
echo ' else echo nlmconv ; fi`'
echo 'LD = `if [ -f' ${TOPDIR}'ld/ld.new ] ; \'
echo ' then echo '${TOPDIR}'ld/ld.new ; \'
echo ' else echo ld ; fi`'
echo ''
echo 'MAKEINFO = `if [ -f '${TOPDIR}'texinfo/C/makeinfo ] ; \'
echo ' then echo '${TOPDIR}'texinfo/C/makeinfo ; \'
echo ' else echo makeinfo ; fi`'
echo 'TEXIDIR=${srcdir}/'"${TO_TOPDIR}/texinfo"
echo 'TEXI2DVI = TEXINPUTS=${TEXIDIR}:$$TEXINPUTS texi2dvi'
echo ''
echo 'CC = `if [ -f '${TOPDIR}'gcc/xgcc ] ; \'
echo ' then echo '${TOPDIR}'gcc/xgcc -B'${TOPDIR}'gcc/ ; \'
echo ' else echo cc ; fi`'
echo 'CXX = `if [ -f '${TOPDIR}'gcc/xgcc ] ; \'
echo ' then echo '${TOPDIR}'gcc/xgcc -B'${TOPDIR}'gcc/ ; \'
echo ' else echo gcc ; fi`'
echo ''
# FIXME!!!
if true ; then
echo 'WRAP_C_INCLUDES ='
else
echo 'WRAP_C_INCLUDES = -I$(srcdir)'/${TOLIBGXX}g++-include
fi
echo 'CFLAGS = -g'
echo 'CXXFLAGS = -g -O'
echo 'LIBCFLAGS = $(CFLAGS)'
echo 'LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates'
if test "${DOING_LIBGXX}" = "true" ; then
echo "TOLIBGXX = ${TOLIBGXX}"
echo 'PROTODIR = $(srcdir)'/${TOLIBGXX}src/gen
echo "LIBS = -L./${TOLIBGXX} -lg++"
echo "LD_LIBRARY_PATH = ${TOLIBGXX}"
echo ".EXPORT_ALL_VARIABLES:"
# You can override iostream (e.g. in a site- or host-Makefile fragment) to:
# iostream (Normal iostream library)
# old-stream (Old stream library; no longer supported)
# no-stream (If you don't want iostream to be part of libg++)
echo 'IO_DIR = ../libio'
echo '# IO_DIR = no-stream'
fi
if [ -z "${ALL}" ] ; then
if [ -n "${TARGETLIB}" ] ; then
ALL='$(TARGETLIB)'
echo "TARGETLIB = ${TARGETLIB}"
elif [ -n "${TARGETPROG}" ] ; then
ALL='${TARGETPROG}'
echo "TARGETPROG = ${TARGETPROG}"
else
echo "config error: neither ALL, TARGETLIB or TARGETPROG is defined" 1>&2
fi
fi
echo "all: ${ALL}"
if [ "${SUBDIRS}" != "" ] ; then
echo ' @rootme=`pwd`/; export rootme; \'
echo ' $(MAKE) "DODIRS=$(SUBDIRS)" DO=all $(FLAGS_TO_PASS) subdir_do'
fi
echo '.PHONY: all'
echo ''
echo
if [ "${SUBDIRS}" != "" ] ; then
echo '.PHONY: subdir_do'
echo 'subdir_do: force'
echo ' @rootme=`pwd`/; export rootme; \'
echo ' for i in $(DODIRS); do \'
echo ' if [ -f ./$$i/Makefile ] ; then \'
echo ' echo "cd $$i; make $(DO) ..." ; \'
echo ' (cd $$i ; $(MAKE) $(FLAGS_TO_PASS) $(DO)) || exit 1 ; \'
echo ' else true ; fi ; \'
echo ' done'
echo ''
echo '# List of variables to pass to sub-makes. This should not be needed'
echo '# by GNU make or Sun make (both of which pass command-line variable'
echo '# overrides thouh $(MAKE)) but may be needed by older versions.'
echo ''
echo 'FLAGS_TO_PASS= \'
echo ' "INSTALL=$(INSTALL)" \'
echo ' "INSTALL_DATA=$(INSTALL_DATA)" \'
echo ' "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \'
echo ' "prefix=$(prefix)" \'
echo ' "exec_prefix=$(exec_prefix)" \'
echo ' "tooldir=$(tooldir)" \'
echo ' "AR=$(AR)" \'
echo ' "AR_FLAGS=$(AR_FLAGS)" \'
echo ' "CC=$(CC)" \'
echo ' "CXX=$(CXX)" \'
echo ' "CFLAGS=$(CFLAGS)" \'
echo ' "CXXFLAGS=$(CXXFLAGS)" \'
echo ' "RANLIB=$(RANLIB)" \'
echo ' "LIBCFLAGS=$(LIBCFLAGS)" \'
echo ' "LIBCXXFLAGS=$(LIBCXXFLAGS)" \'
echo ' "LOADLIBES=$(LOADLIBES)" \'
echo ' "LDFLAGS=$(LDFLAGS)" \'
echo ' "MAKEINFO=$(MAKEINFO)"'
fi
echo 'NOSTDINC = -nostdinc++'
if test -n "${CXXINCLUDES}" ; then
echo "CXXINCLUDES = ${CXXINCLUDES} "'$(NOSTDINC)'
elif test "${DOING_LIBGXX}" = "true" ; then
echo 'CXXINCLUDES = $(NOSTDINC)'" -I. -I${TO_TOPDIR}libio"' -I$(srcdir) -I$(srcdir)/'"${TOLIBGXX}"'$(IO_DIR) -I$(srcdir)/'"${TOLIBGXX}src"' $(WRAP_C_INCLUDES)'
fi
if test -n "${CINCLUDES}" ; then
echo "CINCLUDES = ${CINCLUDES}"
elif test "${DOING_LIBGXX}" = "true" ; then
echo 'CINCLUDES ='
fi
if [ "${LIBDIR}" = "yes" ]; then
echo 'XCFLAGS = $(LIBCFLAGS)'
echo 'XCXXFLAGS = $(LIBCXXFLAGS)'
else
echo 'XCFLAGS = $(CFLAGS)'
echo 'XCXXFLAGS = $(CXXFLAGS)'
fi
echo '.SUFFIXES: .o .C .cc'
echo 'COMPILE.c = $(CC) -c $(XCFLAGS) $(CINCLUDES)'
echo '.c.o:'
echo ' $(COMPILE.c) $<'
[ "${TOUCH_ON_COMPILE}" = "yes" ] && echo ' @touch stamp'
echo 'COMPILE.cc = $(CXX) -c $(XCXXFLAGS) $(CXXINCLUDES)'
echo '.C.o:'
echo ' $(COMPILE.cc) $<'
[ "${TOUCH_ON_COMPILE}" = "yes" ] && echo ' @touch stamp'
echo '.cc.o:'
echo ' $(COMPILE.cc) $<'
[ "${TOUCH_ON_COMPILE}" = "yes" ] && echo ' @touch stamp'
echo ''
if [ -n "${TARGETLIB}" ] ; then
echo TARGETLIB = ${TARGETLIB}
fi
if [ -n "${TARGETPROG}" ] ; then
echo TARGETPROG = ${TARGETPROG}
fi
echo ''
echo '.PHONY: install'
echo 'install:'
echo '.PHONY: check'
if [ "${CHECK}" != "check" ] ; then
echo "check: ${ALL} ${CHECK}"
if [ "${SUBDIRS}" != "" ] ; then
echo ' @rootme=`pwd`/; export rootme; \'
echo ' $(MAKE) "DODIRS=$(SUBDIRS)" DO=check $(FLAGS_TO_PASS) subdir_do'
fi
fi
# Generate rules for documentation (depending on INFO_FILES and INFO_SUBDIRS).
echo '.PHONY: info dvi install-info clean-info'
# emit the rule for 'info'
if [ -z "${INFO_FILES}" ] ; then
echo 'info:'
else
echo info: `for file in ${INFO_FILES} ; do echo $file.info ; done`
fi
if [ "${INFO_SUBDIRS}" != "" ] ; then
echo ' @rootme=`pwd`/; export rootme; \
$(MAKE) "DODIRS='${INFO_SUBDIRS}'" DO=info $(FLAGS_TO_PASS) subdir_do'
fi
# emit the rule for 'dvi'
if [ -z "${INFO_FILES}" ] ; then
echo 'dvi:'
else
echo dvi: `f