1997-08-22 06:57:35 +08:00
|
|
|
# Copyright (C) 1994, 1995 Free Software Foundation
|
|
|
|
|
|
|
|
# This file is part of the GNU ANSI C++ 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 this library; see the file COPYING. If not, write to the Free
|
|
|
|
# Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
|
1999-07-09 08:21:26 +08:00
|
|
|
VERSION = 2.10.0
|
1999-07-18 13:52:37 +08:00
|
|
|
INTERFACE = 3
|
1997-08-22 06:57:35 +08:00
|
|
|
|
1999-04-02 22:17:49 +08:00
|
|
|
gxx_include_dir=${includedir}/g++
|
|
|
|
|
1999-06-05 03:35:36 +08:00
|
|
|
OBJS = cstringi.o stdexcepti.o cstdlibi.o cmathi.o stlinst.o valarray.o
|
1997-11-22 11:36:10 +08:00
|
|
|
SUBLIBS = $(STAMP)-string $(STAMP)-complx
|
1997-08-22 06:57:35 +08:00
|
|
|
|
|
|
|
# C++ headers with no extension
|
|
|
|
HEADERS= cassert cctype cerrno cfloat ciso646 climits clocale cmath complex \
|
|
|
|
csetjmp csignal cstdarg cstddef cstdio cstdlib cstring ctime \
|
|
|
|
cwchar cwctype string stdexcept \
|
1997-12-07 18:33:36 +08:00
|
|
|
algorithm deque functional hash_map hash_set iterator list map \
|
|
|
|
memory numeric pthread_alloc queue rope set slist stack utility \
|
1999-06-05 03:35:36 +08:00
|
|
|
vector fstream iomanip iostream strstream iosfwd bitset valarray
|
1997-08-22 06:57:35 +08:00
|
|
|
|
1998-08-31 05:18:37 +08:00
|
|
|
ARLIB = libstdc++.a.$(VERSION)
|
|
|
|
ARLINK = libstdc++.a
|
1999-08-05 16:01:12 +08:00
|
|
|
MARLINK = libstdc++.a.`echo $(VERSION) | sed 's/\([0-9]*[.][0-9]*\).*/\1/'`
|
1997-08-22 06:57:35 +08:00
|
|
|
SHLIB = libstdc++.so.$(VERSION)
|
|
|
|
SHARLIB = libstdc++-sh.a
|
|
|
|
SHLINK = libstdc++.so
|
1999-08-05 16:01:12 +08:00
|
|
|
MSHLINK = libstdc++.so.`echo $(VERSION) | sed 's/\([0-9]*[.][0-9]*\).*/\1/'`
|
1999-01-14 00:04:01 +08:00
|
|
|
SHFLAGS =
|
1997-08-22 06:57:35 +08:00
|
|
|
SHDEPS =
|
|
|
|
|
|
|
|
STAMP = bigstmp
|
|
|
|
|
1998-08-31 05:18:37 +08:00
|
|
|
LIBS = $(ARLIB) $(ARLINK)
|
1997-08-22 06:57:35 +08:00
|
|
|
|
|
|
|
#### package, host, target, and site dependent Makefile fragments come in here.
|
|
|
|
##
|
|
|
|
|
|
|
|
IO_DIR = ../libio
|
|
|
|
LIBIBERTY_DIR = ../libiberty
|
|
|
|
|
|
|
|
LIBIBERTY_OBJS = `cat $(LIBIBERTY_DIR)/needed-list` strerror.o
|
|
|
|
|
|
|
|
tooldir = $(exec_prefix)/$(target)
|
1998-06-24 14:26:02 +08:00
|
|
|
# This is where the libraries will be installed; note, it will be set
|
|
|
|
# at make runtime now. See below at target install.
|
1997-08-22 06:57:35 +08:00
|
|
|
INSTALLDIR = $(libdir)
|
|
|
|
|
|
|
|
MOSTLYCLEAN_JUNK = *stmp-* tlib*.a *.s *.ii stdlist piclist
|
|
|
|
CLEAN_JUNK = $(LIBS)
|
|
|
|
|
|
|
|
.PHONY: libs
|
|
|
|
libs: $(LIBS)
|
|
|
|
|
|
|
|
stdlist: $(IO_DIR)/iostream.list $(OBJS) $(SUBLIBS) $(LIBIBERTY_DIR)/libiberty.a
|
|
|
|
-rm -f tlist
|
|
|
|
touch tlist
|
|
|
|
echo *.o >> tlist
|
|
|
|
for f in `cat $(IO_DIR)/iostream.list` ; do \
|
|
|
|
echo "$(IO_DIR)/$$f" >> tlist ; \
|
|
|
|
done
|
|
|
|
for f in $(LIBIBERTY_OBJS) ; do \
|
|
|
|
echo "$(LIBIBERTY_DIR)/$$f" >> tlist ; \
|
|
|
|
done
|
|
|
|
mv tlist stdlist
|
|
|
|
|
|
|
|
piclist: stdlist
|
|
|
|
-rm -f tlist
|
|
|
|
cp stdlist tlist
|
1998-02-06 08:34:54 +08:00
|
|
|
if [ x"$(enable_shared)" = xyes ]; then \
|
1997-08-22 06:57:35 +08:00
|
|
|
sed 's,\([A-Za-z_]*\.o\),pic/\1,g' tlist > tlist2 ; \
|
|
|
|
mv tlist2 tlist ; \
|
|
|
|
else true ; fi
|
|
|
|
mv tlist piclist
|
|
|
|
|
|
|
|
$(ARLIB): stdlist
|
|
|
|
-rm -f t$(ARLIB)
|
|
|
|
$(AR) $(AR_FLAGS) t$(ARLIB) `cat stdlist`
|
|
|
|
mv t$(ARLIB) $(ARLIB)
|
|
|
|
$(RANLIB) $(ARLIB)
|
|
|
|
|
1998-08-31 05:18:37 +08:00
|
|
|
$(ARLINK):
|
1998-09-17 08:30:53 +08:00
|
|
|
-rm -f $(ARLINK)
|
1999-01-14 00:04:01 +08:00
|
|
|
$(LN_S) $(ARLIB) $(ARLINK) || cp $(ARLIB) $(ARLINK)
|
1998-08-31 05:18:37 +08:00
|
|
|
|
|
|
|
marlink:
|
|
|
|
@$(MAKE) $(MARLINK) "ARLINK=$(MARLINK)"
|
|
|
|
|
1997-08-22 06:57:35 +08:00
|
|
|
$(SHLIB): piclist
|
1997-11-17 13:41:36 +08:00
|
|
|
$(CC) $(LIBCXXFLAGS) $(SHFLAGS) -shared -o $(SHLIB) `cat piclist` $(SHDEPS)
|
1997-08-22 06:57:35 +08:00
|
|
|
|
|
|
|
$(SHARLIB): $(SHLIB)
|
|
|
|
-rm -f t$(SHARLIB)
|
|
|
|
$(AR) $(AR_FLAGS) t$(SHARLIB) $(SHLIB)
|
|
|
|
mv t$(SHARLIB) $(SHARLIB)
|
|
|
|
$(RANLIB) $(SHARLIB)
|
|
|
|
|
|
|
|
$(SHLINK):
|
1998-09-17 08:30:53 +08:00
|
|
|
-rm -f $(SHLINK)
|
1999-01-14 00:04:01 +08:00
|
|
|
$(LN_S) $(SHLIB) $(SHLINK) || cp $(ARLIB) $(ARLINK)
|
1997-08-22 06:57:35 +08:00
|
|
|
|
|
|
|
mshlink:
|
|
|
|
@$(MAKE) $(MSHLINK) "SHLINK=$(MSHLINK)"
|
|
|
|
|
|
|
|
$(IO_DIR)/iostream.list: force
|
|
|
|
cd $(IO_DIR) ; $(MAKE) $(FLAGS_TO_PASS) iostream.list
|
|
|
|
|
|
|
|
$(LIBIBERTY_DIR)/libiberty.a:
|
|
|
|
cd $(LIBIBERTY_DIR) ; $(MAKE) $(FLAGS_TO_PASS)
|
|
|
|
|
|
|
|
STRFUNCS = REP MAIN TRAITS ADDSS ADDPS ADDCS ADDSP ADDSC \
|
|
|
|
EQSS EQPS EQSP NESS NEPS NESP LTSS LTPS LTSP GTSS GTPS GTSP \
|
|
|
|
LESS LEPS LESP GESS GEPS GESP
|
|
|
|
STRIO = EXTRACT INSERT GETLINE
|
|
|
|
|
|
|
|
# These are here for SunOS VPATH.
|
|
|
|
cstringi.o: cstringi.cc
|
|
|
|
cstdlibi.o: cstdlibi.cc
|
|
|
|
cmathi.o: cmathi.cc
|
|
|
|
stdexcepti.o: stdexcepti.cc
|
|
|
|
stlinst.o: stlinst.cc
|
1999-06-05 03:35:36 +08:00
|
|
|
valarray.o: valarray.cc
|
1997-08-22 06:57:35 +08:00
|
|
|
|
|
|
|
# Later do wide strings, too.
|
|
|
|
stmp-string: ${srcdir}/sinst.cc ${srcdir}/std/bastring.h \
|
|
|
|
${srcdir}/std/bastring.cc ${srcdir}/std/straits.h
|
|
|
|
for name in $(STRFUNCS) $(STRIO); do \
|
|
|
|
echo c$${name}; \
|
1998-02-06 08:34:54 +08:00
|
|
|
if [ x"$(enable_shared)" = xyes ]; then \
|
1997-08-22 06:57:35 +08:00
|
|
|
$(COMPILE.cc) $(PICFLAG) -DC -D$${name} ${srcdir}/sinst.cc \
|
|
|
|
-o pic/c$${name}.o; \
|
|
|
|
else true ; fi; \
|
|
|
|
if [ $$? -eq 0 ]; then true; else exit 1; fi; \
|
|
|
|
$(COMPILE.cc) -DC -D$${name} ${srcdir}/sinst.cc -o c$${name}.o; \
|
|
|
|
if [ $$? -eq 0 ]; then true; else exit 1; fi; \
|
|
|
|
done
|
|
|
|
touch stmp-string
|
|
|
|
|
|
|
|
bigstmp-string: ${srcdir}/sinst.cc ${srcdir}/std/bastring.h \
|
|
|
|
${srcdir}/std/bastring.cc ${srcdir}/std/straits.h
|
|
|
|
echo cstring
|
1998-02-06 08:34:54 +08:00
|
|
|
if [ x"$(enable_shared)" = xyes ]; then \
|
1997-08-22 06:57:35 +08:00
|
|
|
$(COMPILE.cc) $(PICFLAG) -DC \
|
|
|
|
`for N in $(STRFUNCS); do echo " -D$${N}"; done` \
|
|
|
|
$(srcdir)/sinst.cc -o pic/cstrmain.o; \
|
|
|
|
else true ; fi
|
|
|
|
$(COMPILE.cc) -DC `for N in $(STRFUNCS); do echo " -D$${N}"; done` \
|
|
|
|
$(srcdir)/sinst.cc -o cstrmain.o
|
|
|
|
echo cstrio
|
1998-02-06 08:34:54 +08:00
|
|
|
if [ x"$(enable_shared)" = xyes ]; then \
|
1997-08-22 06:57:35 +08:00
|
|
|
$(COMPILE.cc) $(PICFLAG) -DC \
|
|
|
|
`for N in $(STRIO); do echo " -D$${N}"; done` \
|
|
|
|
$(srcdir)/sinst.cc -o pic/cstrio.o; \
|
|
|
|
else true ; fi
|
|
|
|
$(COMPILE.cc) -DC `for N in $(STRIO); do echo " -D$${N}"; done` \
|
|
|
|
$(srcdir)/sinst.cc -o cstrio.o
|
|
|
|
touch bigstmp-string
|
|
|
|
|
|
|
|
COMFUNCS = MAIN ADDCC ADDCF ADDFC SUBCC SUBCF SUBFC MULCC MULCF MULFC DIVCC \
|
|
|
|
DIVCF DIVFC PLUS MINUS EQCC EQCF EQFC NECC NECF NEFC ABS ARG POLAR \
|
|
|
|
CONJ NORM COS COSH EXP LOG POWCC POWCF POWCI POWFC SIN SINH SQRT
|
|
|
|
COMIO = EXTRACT INSERT
|
|
|
|
|
1997-11-26 05:02:19 +08:00
|
|
|
stmp-complx: ${srcdir}/cinst.cc ${srcdir}/std/complext.h \
|
1997-08-22 06:57:35 +08:00
|
|
|
${srcdir}/std/complext.cc ${srcdir}/std/dcomplex.h \
|
|
|
|
${srcdir}/std/ldcomplex.h
|
|
|
|
for N in $(COMFUNCS) $(COMIO); do \
|
|
|
|
echo f$${N}; \
|
1998-02-06 08:34:54 +08:00
|
|
|
if [ x"$(enable_shared)" = xyes ]; then \
|
1997-08-22 06:57:35 +08:00
|
|
|
$(COMPILE.cc) $(PICFLAG) -DF -D$${N} $(srcdir)/cinst.cc \
|
|
|
|
-o pic/f$${N}.o; \
|
|
|
|
else true ; fi; \
|
|
|
|
if [ $$? -eq 0 ]; then true; else exit 1; fi; \
|
|
|
|
$(COMPILE.cc) -DF -D$${N} ${srcdir}/cinst.cc -o f$${N}.o; \
|
|
|
|
if [ $$? -eq 0 ]; then true; else exit 1; fi; \
|
|
|
|
echo d$${N}; \
|
1998-02-06 08:34:54 +08:00
|
|
|
if [ x"$(enable_shared)" = xyes ]; then \
|
1997-08-22 06:57:35 +08:00
|
|
|
$(COMPILE.cc) $(PICFLAG) -DD -D$${N} $(srcdir)/cinst.cc \
|
|
|
|
-o pic/d$${N}.o; \
|
|
|
|
else true ; fi; \
|
|
|
|
if [ $$? -eq 0 ]; then true; else exit 1; fi; \
|
|
|
|
$(COMPILE.cc) -DD -D$${N} ${srcdir}/cinst.cc -o d$${N}.o; \
|
|
|
|
if [ $$? -eq 0 ]; then true; else exit 1; fi; \
|
|
|
|
echo ld$${N}; \
|
1998-02-06 08:34:54 +08:00
|
|
|
if [ x"$(enable_shared)" = xyes ]; then \
|
1997-08-22 06:57:35 +08:00
|
|
|
$(COMPILE.cc) $(PICFLAG) -DLD -D$${N} $(srcdir)/cinst.cc \
|
|
|
|
-o pic/ld$${N}.o; \
|
|
|
|
else true ; fi; \
|
|
|
|
if [ $$? -eq 0 ]; then true; else exit 1; fi; \
|
|
|
|
$(COMPILE.cc) -DLD -D$${N} ${srcdir}/cinst.cc -o ld$${N}.o; \
|
|
|
|
if [ $$? -eq 0 ]; then true; else exit 1; fi; \
|
|
|
|
done
|
1997-11-26 05:02:19 +08:00
|
|
|
touch stmp-complx
|
1997-08-22 06:57:35 +08:00
|
|
|
|
1997-11-22 11:36:10 +08:00
|
|
|
bigstmp-complx: ${srcdir}/cinst.cc ${srcdir}/std/complext.h \
|
1997-08-22 06:57:35 +08:00
|
|
|
${srcdir}/std/complext.cc ${srcdir}/std/dcomplex.h \
|
|
|
|
${srcdir}/std/ldcomplex.h
|
|
|
|
echo fcomplex
|
1998-02-06 08:34:54 +08:00
|
|
|
if [ x"$(enable_shared)" = xyes ]; then \
|
1997-08-22 06:57:35 +08:00
|
|
|
$(COMPILE.cc) $(PICFLAG) -DF \
|
|
|
|
`for N in $(COMFUNCS); do echo " -D$${N}"; done` \
|
|
|
|
$(srcdir)/cinst.cc -o pic/fcomplex.o; \
|
|
|
|
else true ; fi
|
|
|
|
$(COMPILE.cc) -DF `for N in $(COMFUNCS); do echo " -D$${N}"; done` \
|
|
|
|
$(srcdir)/cinst.cc -o fcomplex.o
|
|
|
|
echo fcomio
|
1998-02-06 08:34:54 +08:00
|
|
|
if [ x"$(enable_shared)" = xyes ]; then \
|
1997-08-22 06:57:35 +08:00
|
|
|
$(COMPILE.cc) $(PICFLAG) -DF \
|
|
|
|
`for N in $(COMIO); do echo " -D$${N}"; done` \
|
|
|
|
$(srcdir)/cinst.cc -o pic/fcomio.o; \
|
|
|
|
else true ; fi
|
|
|
|
$(COMPILE.cc) -DF `for N in $(COMIO); do echo " -D$${N}"; done` \
|
|
|
|
$(srcdir)/cinst.cc -o fcomio.o
|
|
|
|
echo dcomplex
|
1998-02-06 08:34:54 +08:00
|
|
|
if [ x"$(enable_shared)" = xyes ]; then \
|
1997-08-22 06:57:35 +08:00
|
|
|
$(COMPILE.cc) $(PICFLAG) -DD \
|
|
|
|
`for N in $(COMFUNCS); do echo " -D$${N}"; done` \
|
|
|
|
$(srcdir)/cinst.cc -o pic/dcomplex.o; \
|
|
|
|
else true ; fi
|
|
|
|
$(COMPILE.cc) -DD `for N in $(COMFUNCS); do echo " -D$${N}"; done` \
|
|
|
|
$(srcdir)/cinst.cc -o dcomplex.o
|
|
|
|
echo dcomio
|
1998-02-06 08:34:54 +08:00
|
|
|
if [ x"$(enable_shared)" = xyes ]; then \
|
1997-08-22 06:57:35 +08:00
|
|
|
$(COMPILE.cc) $(PICFLAG) -DD \
|
|
|
|
`for N in $(COMIO); do echo " -D$${N}"; done` \
|
|
|
|
$(srcdir)/cinst.cc -o pic/dcomio.o; \
|
|
|
|
else true ; fi
|
|
|
|
$(COMPILE.cc) -DD `for N in $(COMIO); do echo " -D$${N}"; done` \
|
|
|
|
$(srcdir)/cinst.cc -o dcomio.o
|
|
|
|
echo ldcomplex
|
1998-02-06 08:34:54 +08:00
|
|
|
if [ x"$(enable_shared)" = xyes ]; then \
|
1997-08-22 06:57:35 +08:00
|
|
|
$(COMPILE.cc) $(PICFLAG) -DLD \
|
|
|
|
`for N in $(COMFUNCS); do echo " -D$${N}"; done` \
|
|
|
|
$(srcdir)/cinst.cc -o pic/ldcomplex.o; \
|
|
|
|
else true ; fi
|
|
|
|
$(COMPILE.cc) -DLD `for N in $(COMFUNCS); do echo " -D$${N}"; done` \
|
|
|
|
$(srcdir)/cinst.cc -o ldcomplex.o
|
|
|
|
echo ldcomio
|
1998-02-06 08:34:54 +08:00
|
|
|
if [ x"$(enable_shared)" = xyes ]; then \
|
1997-08-22 06:57:35 +08:00
|
|
|
$(COMPILE.cc) $(PICFLAG) -DLD \
|
|
|
|
`for N in $(COMIO); do echo " -D$${N}"; done` \
|
|
|
|
$(srcdir)/cinst.cc -o pic/ldcomio.o; \
|
|
|
|
else true ; fi
|
|
|
|
$(COMPILE.cc) -DLD `for N in $(COMIO); do echo " -D$${N}"; done` \
|
|
|
|
$(srcdir)/cinst.cc -o ldcomio.o
|
1997-11-26 05:02:19 +08:00
|
|
|
touch bigstmp-complx
|
1997-08-22 06:57:35 +08:00
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
install:
|
|
|
|
rootme=`pwd`/ ; export rootme ; \
|
|
|
|
if [ -z "$(MULTISUBDIR)" ]; then \
|
|
|
|
cd $(srcdir); \
|
Makefile.in (install): Some of HEADERS come from the stl dir now.
* Makefile.in (install): Some of HEADERS come from the stl dir now.
* algorithm, deque, functional, iterator, list, map, memory, numeric,
queue, set, stack, utility, vector: Now in stl dir.
stl/:
* algo.h, algobase.h, alloc.h, bvector.h, defalloc.h, deque.h,
function.h, hash_map.h, hash_set.h, hashtable.h, heap.h, iterator.h,
list.h, map.h, multimap.h, multiset.h, pair.h, pthread_alloc.h,
rope.h, ropeimpl.h, set.h, slist.h, stack.h, stl_config.h, tempbuf.h,
tree.h, type_traits.h, vector.h: Update to October 27 SGI snapshot.
* algorithm, deque, functional, hash_map, hash_set, iterator, list,
map, memory, numeric, pthread_alloc, queue, rope, set, slist, stack,
stl_algo.h, stl_algobase.h, stl_alloc.h, stl_bvector.h,
stl_construct.h, stl_deque.h, stl_function.h, stl_hash_fun.h,
stl_hash_map.h, stl_hash_set.h, stl_hashtable.h, stl_heap.h,
stl_iterator.h, stl_list.h, stl_map.h, stl_multimap.h, stl_multiset.h,
stl_numeric.h, stl_pair.h, stl_queue.h, stl_raw_storage_iter.h,
stl_relops.h, stl_rope.h, stl_set.h, stl_slist.h, stl_stack.h,
stl_tempbuf.h, stl_tree.h, stl_uninitialized.h, stl_vector.h,
utility, vector: New files in October 27 SGI snapshot.
From-SVN: r16277
1997-11-03 04:28:22 +08:00
|
|
|
for FILE in $(HEADERS); do \
|
1997-11-27 16:37:59 +08:00
|
|
|
rm -f $(gxx_include_dir)/$$FILE ; \
|
Makefile.in (install): Some of HEADERS come from the stl dir now.
* Makefile.in (install): Some of HEADERS come from the stl dir now.
* algorithm, deque, functional, iterator, list, map, memory, numeric,
queue, set, stack, utility, vector: Now in stl dir.
stl/:
* algo.h, algobase.h, alloc.h, bvector.h, defalloc.h, deque.h,
function.h, hash_map.h, hash_set.h, hashtable.h, heap.h, iterator.h,
list.h, map.h, multimap.h, multiset.h, pair.h, pthread_alloc.h,
rope.h, ropeimpl.h, set.h, slist.h, stack.h, stl_config.h, tempbuf.h,
tree.h, type_traits.h, vector.h: Update to October 27 SGI snapshot.
* algorithm, deque, functional, hash_map, hash_set, iterator, list,
map, memory, numeric, pthread_alloc, queue, rope, set, slist, stack,
stl_algo.h, stl_algobase.h, stl_alloc.h, stl_bvector.h,
stl_construct.h, stl_deque.h, stl_function.h, stl_hash_fun.h,
stl_hash_map.h, stl_hash_set.h, stl_hashtable.h, stl_heap.h,
stl_iterator.h, stl_list.h, stl_map.h, stl_multimap.h, stl_multiset.h,
stl_numeric.h, stl_pair.h, stl_queue.h, stl_raw_storage_iter.h,
stl_relops.h, stl_rope.h, stl_set.h, stl_slist.h, stl_stack.h,
stl_tempbuf.h, stl_tree.h, stl_uninitialized.h, stl_vector.h,
utility, vector: New files in October 27 SGI snapshot.
From-SVN: r16277
1997-11-03 04:28:22 +08:00
|
|
|
if [ -f stl/$$FILE ]; then \
|
1997-11-27 16:37:59 +08:00
|
|
|
$(INSTALL_DATA) stl/$$FILE $(gxx_include_dir)/$$FILE ; \
|
Makefile.in (install): Some of HEADERS come from the stl dir now.
* Makefile.in (install): Some of HEADERS come from the stl dir now.
* algorithm, deque, functional, iterator, list, map, memory, numeric,
queue, set, stack, utility, vector: Now in stl dir.
stl/:
* algo.h, algobase.h, alloc.h, bvector.h, defalloc.h, deque.h,
function.h, hash_map.h, hash_set.h, hashtable.h, heap.h, iterator.h,
list.h, map.h, multimap.h, multiset.h, pair.h, pthread_alloc.h,
rope.h, ropeimpl.h, set.h, slist.h, stack.h, stl_config.h, tempbuf.h,
tree.h, type_traits.h, vector.h: Update to October 27 SGI snapshot.
* algorithm, deque, functional, hash_map, hash_set, iterator, list,
map, memory, numeric, pthread_alloc, queue, rope, set, slist, stack,
stl_algo.h, stl_algobase.h, stl_alloc.h, stl_bvector.h,
stl_construct.h, stl_deque.h, stl_function.h, stl_hash_fun.h,
stl_hash_map.h, stl_hash_set.h, stl_hashtable.h, stl_heap.h,
stl_iterator.h, stl_list.h, stl_map.h, stl_multimap.h, stl_multiset.h,
stl_numeric.h, stl_pair.h, stl_queue.h, stl_raw_storage_iter.h,
stl_relops.h, stl_rope.h, stl_set.h, stl_slist.h, stl_stack.h,
stl_tempbuf.h, stl_tree.h, stl_uninitialized.h, stl_vector.h,
utility, vector: New files in October 27 SGI snapshot.
From-SVN: r16277
1997-11-03 04:28:22 +08:00
|
|
|
else \
|
1997-11-27 16:37:59 +08:00
|
|
|
$(INSTALL_DATA) $$FILE $(gxx_include_dir)/$$FILE ; \
|
Makefile.in (install): Some of HEADERS come from the stl dir now.
* Makefile.in (install): Some of HEADERS come from the stl dir now.
* algorithm, deque, functional, iterator, list, map, memory, numeric,
queue, set, stack, utility, vector: Now in stl dir.
stl/:
* algo.h, algobase.h, alloc.h, bvector.h, defalloc.h, deque.h,
function.h, hash_map.h, hash_set.h, hashtable.h, heap.h, iterator.h,
list.h, map.h, multimap.h, multiset.h, pair.h, pthread_alloc.h,
rope.h, ropeimpl.h, set.h, slist.h, stack.h, stl_config.h, tempbuf.h,
tree.h, type_traits.h, vector.h: Update to October 27 SGI snapshot.
* algorithm, deque, functional, hash_map, hash_set, iterator, list,
map, memory, numeric, pthread_alloc, queue, rope, set, slist, stack,
stl_algo.h, stl_algobase.h, stl_alloc.h, stl_bvector.h,
stl_construct.h, stl_deque.h, stl_function.h, stl_hash_fun.h,
stl_hash_map.h, stl_hash_set.h, stl_hashtable.h, stl_heap.h,
stl_iterator.h, stl_list.h, stl_map.h, stl_multimap.h, stl_multiset.h,
stl_numeric.h, stl_pair.h, stl_queue.h, stl_raw_storage_iter.h,
stl_relops.h, stl_rope.h, stl_set.h, stl_slist.h, stl_stack.h,
stl_tempbuf.h, stl_tree.h, stl_uninitialized.h, stl_vector.h,
utility, vector: New files in October 27 SGI snapshot.
From-SVN: r16277
1997-11-03 04:28:22 +08:00
|
|
|
fi ; \
|
1997-11-27 16:37:59 +08:00
|
|
|
chmod a-x $(gxx_include_dir)/$$FILE ; \
|
Makefile.in (install): Some of HEADERS come from the stl dir now.
* Makefile.in (install): Some of HEADERS come from the stl dir now.
* algorithm, deque, functional, iterator, list, map, memory, numeric,
queue, set, stack, utility, vector: Now in stl dir.
stl/:
* algo.h, algobase.h, alloc.h, bvector.h, defalloc.h, deque.h,
function.h, hash_map.h, hash_set.h, hashtable.h, heap.h, iterator.h,
list.h, map.h, multimap.h, multiset.h, pair.h, pthread_alloc.h,
rope.h, ropeimpl.h, set.h, slist.h, stack.h, stl_config.h, tempbuf.h,
tree.h, type_traits.h, vector.h: Update to October 27 SGI snapshot.
* algorithm, deque, functional, hash_map, hash_set, iterator, list,
map, memory, numeric, pthread_alloc, queue, rope, set, slist, stack,
stl_algo.h, stl_algobase.h, stl_alloc.h, stl_bvector.h,
stl_construct.h, stl_deque.h, stl_function.h, stl_hash_fun.h,
stl_hash_map.h, stl_hash_set.h, stl_hashtable.h, stl_heap.h,
stl_iterator.h, stl_list.h, stl_map.h, stl_multimap.h, stl_multiset.h,
stl_numeric.h, stl_pair.h, stl_queue.h, stl_raw_storage_iter.h,
stl_relops.h, stl_rope.h, stl_set.h, stl_slist.h, stl_stack.h,
stl_tempbuf.h, stl_tree.h, stl_uninitialized.h, stl_vector.h,
utility, vector: New files in October 27 SGI snapshot.
From-SVN: r16277
1997-11-03 04:28:22 +08:00
|
|
|
done ; \
|
1999-06-05 03:35:36 +08:00
|
|
|
for FILE in *.h std/*.h std/*.cc std/*.tcc; do \
|
1997-11-27 16:37:59 +08:00
|
|
|
rm -f $(gxx_include_dir)/$$FILE ; \
|
|
|
|
$(INSTALL_DATA) $$FILE $(gxx_include_dir)/$$FILE ; \
|
|
|
|
chmod a-x $(gxx_include_dir)/$$FILE ; \
|
1997-08-22 06:57:35 +08:00
|
|
|
done ; \
|
|
|
|
cd stl; \
|
|
|
|
for FILE in *.h; do \
|
1997-11-27 16:37:59 +08:00
|
|
|
rm -f $(gxx_include_dir)/$$FILE ; \
|
|
|
|
$(INSTALL_DATA) $$FILE $(gxx_include_dir)/$$FILE ; \
|
|
|
|
chmod a-x $(gxx_include_dir)/$$FILE ; \
|
1997-08-22 06:57:35 +08:00
|
|
|
done ; \
|
|
|
|
else true ; \
|
|
|
|
fi
|
|
|
|
rootme=`pwd`/ ; export rootme ; \
|
1998-08-31 05:18:37 +08:00
|
|
|
if [ x$(enable_version_specific_runtime_libs) != xyes ]; then \
|
1998-06-24 14:26:02 +08:00
|
|
|
INSTALLDIR=$(libdir); \
|
|
|
|
else \
|
|
|
|
INSTALLDIR=$(libsubdir); \
|
|
|
|
fi; \
|
1998-08-31 05:18:37 +08:00
|
|
|
INSTALLLINKDIR=$(libsubdir); \
|
1998-09-09 19:49:09 +08:00
|
|
|
if [ $${INSTALLLINKDIR}$(MULTISUBDIR) = $${INSTALLDIR}$(MULTISUBDIR) ]; then \
|
1998-09-03 04:12:35 +08:00
|
|
|
RELINSTALLDIR=; \
|
|
|
|
elif [ x$(MULTISUBDIR) = x ]; then \
|
1998-09-09 19:49:09 +08:00
|
|
|
if [ $(build_alias) = $(target_alias) ]; then \
|
|
|
|
RELINSTALLDIR=../../../; \
|
|
|
|
else \
|
|
|
|
RELINSTALLDIR=../../../../$(target_alias)/lib/; \
|
|
|
|
fi; \
|
1998-09-03 04:12:35 +08:00
|
|
|
else \
|
1998-09-09 19:49:09 +08:00
|
|
|
if [ $(build_alias) = $(target_alias) ]; then \
|
|
|
|
RELINSTALLDIR=../../..`echo $(MULTISUBDIR) | sed -e 's,/[^/]*,/..,g'`$(MULTISUBDIR)/; \
|
|
|
|
else \
|
|
|
|
RELINSTALLDIR=../../../..`echo $(MULTISUBDIR) | sed -e 's,/[^/]*,/..,g'`/$(target_alias)/lib$(MULTISUBDIR)/; \
|
|
|
|
fi; \
|
1998-09-03 04:12:35 +08:00
|
|
|
fi; \
|
|
|
|
if [ $(build_alias) != $(target_alias) ]; then \
|
|
|
|
case $$RELINSTALLDIR in \
|
|
|
|
../../../|../../../../) \
|
|
|
|
RELINSTALLDIR=../$${RELINSTALLDIR}$(target_alias)/lib/;; \
|
|
|
|
esac; \
|
|
|
|
fi; \
|
1998-08-31 05:18:37 +08:00
|
|
|
rm -f $${INSTALLLINKDIR}$(MULTISUBDIR)/$(SHLINK) ; \
|
|
|
|
rm -f $${INSTALLLINKDIR}$(MULTISUBDIR)/$(ARLINK) ; \
|
1997-08-22 06:57:35 +08:00
|
|
|
for FILE in $(LIBS) ; do \
|
1998-06-24 14:26:02 +08:00
|
|
|
rm -f $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \
|
1997-08-22 06:57:35 +08:00
|
|
|
if [ $$FILE = $(SHLINK) ] ; then \
|
1998-08-31 05:18:37 +08:00
|
|
|
if [ -f $${INSTALLDIR}/$(MSHLINK) ]; then \
|
1998-09-17 08:30:53 +08:00
|
|
|
rm -f $${INSTALLLINKDIR}$(MULTISUBDIR)/$$FILE ; \
|
1999-01-14 00:04:01 +08:00
|
|
|
$(LN_S) $${RELINSTALLDIR}$(MSHLINK) $${INSTALLLINKDIR}$(MULTISUBDIR)/$$FILE \
|
|
|
|
|| cp $${RELINSTALLDIR}$(MSHLINK) $${INSTALLLINKDIR}$(MULTISUBDIR)/$$FILE ; \
|
1998-08-31 05:18:37 +08:00
|
|
|
else \
|
1998-09-17 08:30:53 +08:00
|
|
|
rm -f $${INSTALLLINKDIR}$(MULTISUBDIR)/$$FILE ; \
|
1999-01-14 00:04:01 +08:00
|
|
|
$(LN_S) $${RELINSTALLDIR}$(SHLIB) $${INSTALLLINKDIR}$(MULTISUBDIR)/$$FILE \
|
|
|
|
|| cp $${RELINSTALLDIR}$(SHLIB) $${INSTALLLINKDIR}$(MULTISUBDIR)/$$FILE ; \
|
1998-08-31 05:18:37 +08:00
|
|
|
fi; \
|
|
|
|
elif [ $$FILE = $(ARLINK) ] ; then \
|
|
|
|
if [ -f $${INSTALLDIR}/$(MARLINK) ]; then \
|
1998-09-17 08:30:53 +08:00
|
|
|
rm -f $${INSTALLLINKDIR}$(MULTISUBDIR)/$$FILE ; \
|
1999-01-14 00:04:01 +08:00
|
|
|
$(LN_S) $${RELINSTALLDIR}$(MARLINK) $${INSTALLLINKDIR}$(MULTISUBDIR)/$$FILE \
|
|
|
|
|| cp $${RELINSTALLDIR}$(MARLINK) $${INSTALLLINKDIR}$(MULTISUBDIR)/$$FILE ; \
|
1998-08-31 05:18:37 +08:00
|
|
|
else \
|
1998-09-17 08:30:53 +08:00
|
|
|
rm -f $${INSTALLLINKDIR}$(MULTISUBDIR)/$$FILE ; \
|
1999-01-14 00:04:01 +08:00
|
|
|
$(LN_S) $${RELINSTALLDIR}$(ARLIB) $${INSTALLLINKDIR}$(MULTISUBDIR)/$$FILE \
|
|
|
|
|| cp $${RELINSTALLDIR}$(ARLIB) $${INSTALLLINKDIR}$(MULTISUBDIR)/$$FILE ; \
|
1998-08-31 05:18:37 +08:00
|
|
|
fi; \
|
1997-08-22 06:57:35 +08:00
|
|
|
elif [ $$FILE = mshlink ]; then \
|
|
|
|
for FILE in $(MSHLINK) ; do \
|
1998-06-24 14:26:02 +08:00
|
|
|
rm -f $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \
|
1999-01-14 00:04:01 +08:00
|
|
|
$(LN_S) $(SHLIB) $${INSTALLDIR}$(MULTISUBDIR)/$$FILE \
|
|
|
|
|| cp $(SHLIB) $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \
|
1997-08-22 06:57:35 +08:00
|
|
|
done; \
|
1998-08-31 05:18:37 +08:00
|
|
|
elif [ $$FILE = marlink ]; then \
|
|
|
|
for FILE in $(MARLINK) ; do \
|
|
|
|
rm -f $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \
|
1999-01-14 00:04:01 +08:00
|
|
|
$(LN_S) $(ARLIB) $${INSTALLDIR}$(MULTISUBDIR)/$$FILE \
|
|
|
|
|| cp $(ARLIB) $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \
|
1998-08-31 05:18:37 +08:00
|
|
|
done; \
|
1997-08-22 06:57:35 +08:00
|
|
|
elif [ $$FILE = $(SHLIB) ]; then \
|
1998-06-24 14:26:02 +08:00
|
|
|
$(INSTALL_PROGRAM) $$FILE $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \
|
1997-08-22 06:57:35 +08:00
|
|
|
: On the HP, shared libraries must be mode 555. ;\
|
1998-06-24 14:26:02 +08:00
|
|
|
chmod 555 $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \
|
1997-08-22 06:57:35 +08:00
|
|
|
else \
|
1998-06-24 14:26:02 +08:00
|
|
|
$(INSTALL_DATA) $$FILE $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \
|
|
|
|
$(RANLIB) $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \
|
|
|
|
chmod a-x $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \
|
1997-08-22 06:57:35 +08:00
|
|
|
fi ; \
|
|
|
|
done
|
|
|
|
@rootme=`pwd`/ ; export rootme ; \
|
|
|
|
$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
|
|
|
|
|
|
|
|
.PHONY: force
|
|
|
|
force:
|
|
|
|
|
1999-02-07 23:57:14 +08:00
|
|
|
MYCXXFLAGS = -g -O2 -Wpointer-arith -Wnested-externs -Woverloaded-virtual -Wbad-function-cast -Winline -Wwrite-strings -pedantic -Wno-long-long
|
1998-07-12 10:20:51 +08:00
|
|
|
MYCFLAGS = -g -O2 -Wpointer-arith -Wnested-externs
|
|
|
|
|
1997-08-22 06:57:35 +08:00
|
|
|
.PHONY: stuff
|
|
|
|
stuff:
|
1998-07-12 10:20:51 +08:00
|
|
|
$(MAKE) stuff1
|
|
|
|
$(MAKE) stuff2
|
1997-08-22 06:57:35 +08:00
|
|
|
|
|
|
|
stuff1:
|
|
|
|
$(MAKE) clean
|
|
|
|
$(MAKE) -C ../libio c++clean
|
1998-07-12 10:20:51 +08:00
|
|
|
touch ../../gcc/libgcc2.ready
|
1997-08-22 06:57:35 +08:00
|
|
|
|
|
|
|
stuff2:
|
1999-02-07 23:57:14 +08:00
|
|
|
$(MAKE) -C ../../gcc/ libgcc.a
|
|
|
|
$(MAKE) CXXFLAGS="$(MYCXXFLAGS)" CFLAGS="$(MYCFLAGS)"
|
|
|
|
-$(MAKE) check
|
1997-11-26 15:19:11 +08:00
|
|
|
-$(MAKE) -C ../libio check
|
1998-05-17 21:39:11 +08:00
|
|
|
-$(MAKE) -C ../../gcc check-g++
|