1999-08-27 23:37:10 +00:00
|
|
|
# $FreeBSD$
|
1996-10-03 22:52:23 +00:00
|
|
|
|
2000-06-04 06:56:23 +00:00
|
|
|
SRCDIR= ${.CURDIR}/../../../contrib/libstdc++.295
|
1996-10-03 22:52:23 +00:00
|
|
|
|
1999-08-16 04:58:10 +00:00
|
|
|
.PATH: ${SRCDIR} ${SRCDIR}/stl ${SRCDIR}/../libio
|
1996-10-03 22:52:23 +00:00
|
|
|
|
1999-04-05 08:07:41 +00:00
|
|
|
SUBDIR= doc
|
|
|
|
|
1996-10-03 22:52:23 +00:00
|
|
|
LIB= stdc++
|
1999-04-04 16:36:35 +00:00
|
|
|
SHLIB_MAJOR= 3
|
1996-10-03 22:52:23 +00:00
|
|
|
SHLIB_MINOR= 0
|
|
|
|
|
1999-08-16 04:58:10 +00:00
|
|
|
CFLAGS+= -I${.CURDIR} -I${SRCDIR}/include -I${SRCDIR}/../libio -I.
|
|
|
|
CXXFLAGS+= -I${SRCDIR}/stl -I${SRCDIR} -I${SRCDIR}/../gcc/cp/inc -I.
|
1999-04-04 16:36:35 +00:00
|
|
|
CXXFLAGS+= -nostdinc++ -fno-implicit-templates
|
1996-10-03 22:52:23 +00:00
|
|
|
|
1998-10-11 04:56:03 +00:00
|
|
|
LDADD+= -lm
|
|
|
|
DPADD+= ${LIBM}
|
|
|
|
|
1996-10-03 22:52:23 +00:00
|
|
|
HDRS= cassert cctype cerrno cfloat ciso646 climits clocale cmath complex \
|
|
|
|
csetjmp csignal cstdarg cstddef cstdio cstdlib cstring ctime \
|
2001-03-24 09:01:31 +00:00
|
|
|
cwchar cwctype fstream iomanip iosfwd iostream sstream stdexcept \
|
2001-03-24 08:19:31 +00:00
|
|
|
string strstream complex.h stl.h valarray
|
1999-04-04 16:36:35 +00:00
|
|
|
|
1999-11-15 04:16:19 +00:00
|
|
|
STDHDRS=bastring.cc bastring.h complext.cc complext.h dcomplex.h fcomplex.h \
|
|
|
|
gslice.h gslice_array.h indirect_array.h ldcomplex.h mask_array.h \
|
|
|
|
slice.h slice_array.h std_valarray.h straits.h valarray_array.h \
|
|
|
|
valarray_array.tcc valarray_meta.h
|
1999-04-04 16:36:35 +00:00
|
|
|
|
1999-11-15 04:16:19 +00:00
|
|
|
STLHDRS=algo.h algobase.h algorithm alloc.h bitset bvector.h defalloc.h deque \
|
|
|
|
deque.h function.h functional hash_map hash_map.h hash_set hash_set.h \
|
1999-04-04 16:36:35 +00:00
|
|
|
hashtable.h heap.h iterator iterator.h list list.h map map.h memory \
|
|
|
|
multimap.h multiset.h numeric pair.h pthread_alloc pthread_alloc.h \
|
|
|
|
queue rope rope.h ropeimpl.h set set.h slist slist.h stack stack.h \
|
|
|
|
stl_algo.h stl_algobase.h stl_alloc.h stl_bvector.h stl_config.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 \
|
|
|
|
tempbuf.h tree.h type_traits.h utility vector vector.h
|
|
|
|
|
|
|
|
# libstdc++ sources
|
|
|
|
SRCS+= cmathi.cc cstdlibi.cc cstringi.cc stdexcepti.cc stlinst.cc
|
|
|
|
|
|
|
|
# Headers for iostream / libio
|
1996-10-03 22:52:23 +00:00
|
|
|
IHDRS= PlotFile.h SFile.h builtinbuf.h editbuf.h floatio.h fstream.h \
|
|
|
|
indstream.h iolibio.h iomanip.h iostdio.h iostream.h iostreamP.h \
|
|
|
|
istream.h libio.h libioP.h ostream.h parsestream.h pfstream.h \
|
|
|
|
procbuf.h stdiostream.h stream.h streambuf.h strfile.h strstream.h
|
|
|
|
|
1999-04-04 16:36:35 +00:00
|
|
|
# C++ parts of iostream / libio
|
1996-10-03 22:52:23 +00:00
|
|
|
SRCS+= PlotFile.cc SFile.cc builtinbuf.cc editbuf.cc filebuf.cc fstream.cc \
|
|
|
|
indstream.cc ioassign.cc ioextend.cc iomanip.cc iostream.cc \
|
|
|
|
isgetline.cc isgetsb.cc isscan.cc osform.cc parsestream.cc \
|
|
|
|
pfstream.cc procbuf.cc sbform.cc sbgetline.cc sbscan.cc \
|
|
|
|
stdiostream.cc stdstrbufs.cc stdstreams.cc stream.cc streambuf.cc \
|
1998-02-25 01:23:28 +00:00
|
|
|
strstream.cc
|
1996-10-03 22:52:23 +00:00
|
|
|
|
1999-04-04 16:36:35 +00:00
|
|
|
# C parts of iostream / libio
|
1996-10-03 22:52:23 +00:00
|
|
|
SRCS+= cleanup.c filedoalloc.c fileops.c floatconv.c genops.c iofclose.c \
|
1999-04-04 16:36:35 +00:00
|
|
|
iofdopen.c iofeof.c ioferror.c iofflush.c iofflush_u.c iofgetpos.c \
|
|
|
|
iofgets.c iofopen.c iofprintf.c iofputs.c iofread.c iofscanf.c \
|
|
|
|
iofsetpos.c ioftell.c iofwrite.c iogetc.c iogetdelim.c iogetline.c \
|
|
|
|
iogets.c ioignore.c iopadn.c ioperror.c iopopen.c ioprims.c ioprintf.c \
|
|
|
|
ioputc.c ioputs.c ioscanf.c ioseekoff.c ioseekpos.c iosetbuffer.c \
|
|
|
|
iosetvbuf.c iosprintf.c iosscanf.c iostrerror.c ioungetc.c \
|
|
|
|
iovfprintf.c iovfscanf.c iovsprintf.c iovsscanf.c outfloat.c \
|
|
|
|
peekc.c strops.c
|
|
|
|
|
1999-04-07 07:48:23 +00:00
|
|
|
beforeinstall:
|
1996-10-03 22:52:23 +00:00
|
|
|
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
|
1999-04-08 09:13:39 +00:00
|
|
|
${.CURDIR}/_G_config.h \
|
1999-08-16 04:58:10 +00:00
|
|
|
${HDRS:S;^;${SRCDIR}/;} \
|
|
|
|
${IHDRS:S;^;${SRCDIR}/../libio/;} \
|
|
|
|
${STLHDRS:S;^;${SRCDIR}/stl/;} \
|
1999-04-08 07:20:33 +00:00
|
|
|
${DESTDIR}/usr/include/g++
|
1996-10-03 22:52:23 +00:00
|
|
|
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
|
1999-11-15 04:16:19 +00:00
|
|
|
${STDHDRS:S;^;${SRCDIR}/std/;} \
|
1999-04-08 07:20:33 +00:00
|
|
|
${DESTDIR}/usr/include/g++/std
|
1996-10-03 22:52:23 +00:00
|
|
|
|
1999-04-07 07:48:23 +00:00
|
|
|
CLEANFILES+= dummy.h dummy.c dummy.C
|
1999-04-04 16:36:35 +00:00
|
|
|
|
1996-10-03 22:52:23 +00:00
|
|
|
# Lots of special cases
|
|
|
|
|
|
|
|
# ======== cstrmain.o ========
|
1998-03-20 15:10:59 +00:00
|
|
|
SRCS+= cstrmain.cc
|
|
|
|
CLEANFILES+= cstrmain.cc
|
|
|
|
|
|
|
|
cstrmain.cc: sinst.cc
|
|
|
|
echo "#define C 1" > ${.TARGET}
|
1996-10-03 22:52:23 +00:00
|
|
|
.for i in REP MAIN TRAITS ADDSS ADDPS ADDCS ADDSP ADDSC EQSS EQPS EQSP NESS \
|
1999-04-04 16:36:35 +00:00
|
|
|
NEPS NESP LTSS LTPS LTSP GTSS GTPS GTSP LESS LEPS LESP GESS GEPS GESP
|
1998-03-20 15:10:59 +00:00
|
|
|
echo "#define $i 1" >> ${.TARGET}
|
1996-10-03 22:52:23 +00:00
|
|
|
.endfor
|
1998-03-20 15:10:59 +00:00
|
|
|
cat ${.ALLSRC} >> ${.TARGET}
|
1996-10-03 22:52:23 +00:00
|
|
|
|
|
|
|
# ======== cstrio.o ========
|
1998-03-20 15:10:59 +00:00
|
|
|
SRCS+= cstrio.cc
|
|
|
|
CLEANFILES+= cstrio.cc
|
|
|
|
|
|
|
|
cstrio.cc: sinst.cc
|
|
|
|
echo "#define C 1" > ${.TARGET}
|
1996-10-03 22:52:23 +00:00
|
|
|
.for i in EXTRACT INSERT GETLINE
|
1998-03-20 15:10:59 +00:00
|
|
|
echo "#define $i 1" >> ${.TARGET}
|
1996-10-03 22:52:23 +00:00
|
|
|
.endfor
|
1998-03-20 15:10:59 +00:00
|
|
|
cat ${.ALLSRC} >> ${.TARGET}
|
1996-10-03 22:52:23 +00:00
|
|
|
|
|
|
|
# ======== fcomplex.o =======
|
1998-03-20 15:10:59 +00:00
|
|
|
SRCS+= fcomplex.cc
|
|
|
|
CLEANFILES+= fcomplex.cc
|
|
|
|
|
|
|
|
fcomplex.cc: cinst.cc
|
|
|
|
echo "#define F 1" > ${.TARGET}
|
1997-04-09 16:00:07 +00:00
|
|
|
.for i in MAIN ADDCC ADDCF ADDFC SUBCC SUBCF SUBFC MULCC MULCF MULFC DIVCC \
|
1999-04-05 09:01:45 +00:00
|
|
|
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
|
1998-03-20 15:10:59 +00:00
|
|
|
echo "#define $i 1" >> ${.TARGET}
|
1996-10-03 22:52:23 +00:00
|
|
|
.endfor
|
1998-03-20 15:10:59 +00:00
|
|
|
cat ${.ALLSRC} >> ${.TARGET}
|
1996-10-03 22:52:23 +00:00
|
|
|
|
|
|
|
# ======== fcomio.o =======
|
1998-03-20 15:10:59 +00:00
|
|
|
SRCS+= fcomio.cc
|
|
|
|
CLEANFILES+= fcomio.cc
|
|
|
|
|
|
|
|
fcomio.cc: cinst.cc
|
|
|
|
echo "#define F 1" > ${.TARGET}
|
1996-10-03 22:52:23 +00:00
|
|
|
.for i in EXTRACT INSERT
|
1998-03-20 15:10:59 +00:00
|
|
|
echo "#define $i 1" >> ${.TARGET}
|
1996-10-03 22:52:23 +00:00
|
|
|
.endfor
|
1998-03-20 15:10:59 +00:00
|
|
|
cat ${.ALLSRC} >> ${.TARGET}
|
1996-10-03 22:52:23 +00:00
|
|
|
|
|
|
|
# ======== dcomplex.o =======
|
1998-03-20 15:10:59 +00:00
|
|
|
SRCS+= dcomplex.cc
|
|
|
|
CLEANFILES+= dcomplex.cc
|
|
|
|
|
|
|
|
dcomplex.cc: cinst.cc
|
|
|
|
echo "#define D 1" > ${.TARGET}
|
1997-04-09 16:00:07 +00:00
|
|
|
.for i in MAIN ADDCC ADDCF ADDFC SUBCC SUBCF SUBFC MULCC MULCF MULFC DIVCC \
|
1999-04-05 09:01:45 +00:00
|
|
|
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
|
1998-03-20 15:10:59 +00:00
|
|
|
echo "#define $i 1" >> ${.TARGET}
|
1996-10-03 22:52:23 +00:00
|
|
|
.endfor
|
1998-03-20 15:10:59 +00:00
|
|
|
cat ${.ALLSRC} >> ${.TARGET}
|
1996-10-03 22:52:23 +00:00
|
|
|
|
|
|
|
# ======== dcomio.o =======
|
1998-03-20 15:10:59 +00:00
|
|
|
SRCS+= dcomio.cc
|
|
|
|
CLEANFILES+= dcomio.cc
|
|
|
|
|
|
|
|
dcomio.cc: cinst.cc
|
|
|
|
echo "#define D 1" > ${.TARGET}
|
1996-10-03 22:52:23 +00:00
|
|
|
.for i in EXTRACT INSERT
|
1998-03-20 15:10:59 +00:00
|
|
|
echo "#define $i 1" >> ${.TARGET}
|
1996-10-03 22:52:23 +00:00
|
|
|
.endfor
|
1998-03-20 15:10:59 +00:00
|
|
|
cat ${.ALLSRC} >> ${.TARGET}
|
1996-10-03 22:52:23 +00:00
|
|
|
|
|
|
|
# ======== ldcomplex.o =======
|
1998-03-20 15:10:59 +00:00
|
|
|
SRCS+= ldcomplex.cc
|
|
|
|
CLEANFILES+= ldcomplex.cc
|
|
|
|
|
|
|
|
ldcomplex.cc: cinst.cc
|
|
|
|
echo "#define LD 1" > ${.TARGET}
|
1997-04-09 16:00:07 +00:00
|
|
|
.for i in MAIN ADDCC ADDCF ADDFC SUBCC SUBCF SUBFC MULCC MULCF MULFC DIVCC \
|
1999-04-05 09:01:45 +00:00
|
|
|
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
|
1998-03-20 15:10:59 +00:00
|
|
|
echo "#define $i 1" >> ${.TARGET}
|
1996-10-03 22:52:23 +00:00
|
|
|
.endfor
|
1998-03-20 15:10:59 +00:00
|
|
|
cat ${.ALLSRC} >> ${.TARGET}
|
1996-10-03 22:52:23 +00:00
|
|
|
|
|
|
|
# ======== ldcomio.o =======
|
1998-03-20 15:10:59 +00:00
|
|
|
SRCS+= ldcomio.cc
|
|
|
|
CLEANFILES+= ldcomio.cc
|
|
|
|
|
|
|
|
ldcomio.cc: cinst.cc
|
|
|
|
echo "#define LD 1" > ${.TARGET}
|
1996-10-03 22:52:23 +00:00
|
|
|
.for i in EXTRACT INSERT
|
1998-03-20 15:10:59 +00:00
|
|
|
echo "#define $i 1" >> ${.TARGET}
|
1996-10-03 22:52:23 +00:00
|
|
|
.endfor
|
1998-03-20 15:10:59 +00:00
|
|
|
cat ${.ALLSRC} >> ${.TARGET}
|
1996-10-03 22:52:23 +00:00
|
|
|
|
1999-04-07 07:48:23 +00:00
|
|
|
# ======== _G_config.h generation =======
|
|
|
|
# In case you want or need to generate a _G_config.h file.
|
|
|
|
make_G_config_h:
|
|
|
|
CC="${CC}" CXX="${CXX}" CONFIG_NM="nm" \
|
1999-04-08 07:20:33 +00:00
|
|
|
CPP="${CC} -E -nostdinc -idirafter ${DESTDIR}/usr/include" \
|
1999-08-16 04:58:10 +00:00
|
|
|
sh ${SRCDIR}/../libio/gen-params \
|
1999-04-08 07:20:33 +00:00
|
|
|
LIB_VERSION=${SHLIB_MAJOR}.${SHLIB_MINOR}.0 >${.TARGET}
|
1999-04-07 07:48:23 +00:00
|
|
|
|
1996-10-03 22:52:23 +00:00
|
|
|
.include <bsd.lib.mk>
|