1 # $FreeBSD: src/gnu/lib/libstdc++/Makefile,v 1.24.2.1 2001/11/21 18:55:27 obrien Exp $
2 # $DragonFly: src/gnu/lib/gcc2/libstdc++/Attic/Makefile,v 1.3 2004/04/04 21:31:14 joerg Exp $
4 SRCDIR= ${.CURDIR}/../../../../contrib/libstdc++
6 .PATH: ${SRCDIR} ${SRCDIR}/stl ${SRCDIR}/../libio
14 CFLAGS+= -I${.CURDIR} -I${SRCDIR}/include -I${SRCDIR}/../libio -I.
15 CXXFLAGS+= -I${SRCDIR}/stl -I${SRCDIR} -I${SRCDIR}/../gcc/cp/inc -I.
16 CXXFLAGS+= -nostdinc++ -fno-implicit-templates
21 HDRS= cassert cctype cerrno cfloat ciso646 climits clocale cmath complex \
22 csetjmp csignal cstdarg cstddef cstdio cstdlib cstring ctime \
23 cwchar cwctype fstream iomanip iosfwd iostream sstream stdexcept \
24 string strstream complex.h stl.h valarray
26 STDHDRS=bastring.cc bastring.h complext.cc complext.h dcomplex.h fcomplex.h \
27 gslice.h gslice_array.h indirect_array.h ldcomplex.h mask_array.h \
28 slice.h slice_array.h std_valarray.h straits.h valarray_array.h \
29 valarray_array.tcc valarray_meta.h
31 STLHDRS=algo.h algobase.h algorithm alloc.h bitset bvector.h defalloc.h deque \
32 deque.h function.h functional hash_map hash_map.h hash_set hash_set.h \
33 hashtable.h heap.h iterator iterator.h list list.h map map.h memory \
34 multimap.h multiset.h numeric pair.h pthread_alloc pthread_alloc.h \
35 queue rope rope.h ropeimpl.h set set.h slist slist.h stack stack.h \
36 stl_algo.h stl_algobase.h stl_alloc.h stl_bvector.h stl_config.h \
37 stl_construct.h stl_deque.h stl_function.h stl_hash_fun.h \
38 stl_hash_map.h stl_hash_set.h stl_hashtable.h stl_heap.h \
39 stl_iterator.h stl_list.h stl_map.h stl_multimap.h stl_multiset.h \
40 stl_numeric.h stl_pair.h stl_queue.h stl_raw_storage_iter.h \
41 stl_relops.h stl_rope.h stl_set.h stl_slist.h stl_stack.h \
42 stl_tempbuf.h stl_tree.h stl_uninitialized.h stl_vector.h \
43 tempbuf.h tree.h type_traits.h utility vector vector.h
46 SRCS+= cmathi.cc cstdlibi.cc cstringi.cc stdexcepti.cc stlinst.cc
48 # Headers for iostream / libio
49 IHDRS= PlotFile.h SFile.h builtinbuf.h editbuf.h floatio.h fstream.h \
50 indstream.h iolibio.h iomanip.h iostdio.h iostream.h iostreamP.h \
51 istream.h libio.h libioP.h ostream.h parsestream.h pfstream.h \
52 procbuf.h stdiostream.h stream.h streambuf.h strfile.h strstream.h
54 # C++ parts of iostream / libio
55 SRCS+= PlotFile.cc SFile.cc builtinbuf.cc editbuf.cc filebuf.cc fstream.cc \
56 indstream.cc ioassign.cc ioextend.cc iomanip.cc iostream.cc \
57 isgetline.cc isgetsb.cc isscan.cc osform.cc parsestream.cc \
58 pfstream.cc procbuf.cc sbform.cc sbgetline.cc sbscan.cc \
59 stdiostream.cc stdstrbufs.cc stdstreams.cc stream.cc streambuf.cc \
62 # C parts of iostream / libio
63 SRCS+= cleanup.c filedoalloc.c fileops.c floatconv.c genops.c iofclose.c \
64 iofdopen.c iofeof.c ioferror.c iofflush.c iofflush_u.c iofgetpos.c \
65 iofgets.c iofopen.c iofprintf.c iofputs.c iofread.c iofscanf.c \
66 iofsetpos.c ioftell.c iofwrite.c iogetc.c iogetdelim.c iogetline.c \
67 iogets.c ioignore.c iopadn.c ioperror.c iopopen.c ioprims.c ioprintf.c \
68 ioputc.c ioputs.c ioscanf.c ioseekoff.c ioseekpos.c iosetbuffer.c \
69 iosetvbuf.c iosprintf.c iosscanf.c iostrerror.c ioungetc.c \
70 iovfprintf.c iovfscanf.c iovsprintf.c iovsscanf.c outfloat.c \
73 INCSGROUPS= INCS STDINCS
74 INCS= ${HDRS:S;^;${SRCDIR}/;} ${IHDRS:S;^;${SRCDIR}/../libio/;}
75 INCSDIR=${INCLUDEDIR}/c++/2.95
77 STDINCS= ${STLHDRS:S;^;${SRCDIR}/stl/;}
78 STDINCSDIR= ${INCLUDEDIR}/c++/2.95/std
80 CLEANFILES+= dummy.h dummy.c dummy.C
82 # Lots of special cases
84 # ======== cstrmain.o ========
86 CLEANFILES+= cstrmain.cc
89 echo "#define C 1" > ${.TARGET}
90 .for i in REP MAIN TRAITS ADDSS ADDPS ADDCS ADDSP ADDSC EQSS EQPS EQSP NESS \
91 NEPS NESP LTSS LTPS LTSP GTSS GTPS GTSP LESS LEPS LESP GESS GEPS GESP
92 echo "#define $i 1" >> ${.TARGET}
94 cat ${.ALLSRC} >> ${.TARGET}
96 # ======== cstrio.o ========
98 CLEANFILES+= cstrio.cc
101 echo "#define C 1" > ${.TARGET}
102 .for i in EXTRACT INSERT GETLINE
103 echo "#define $i 1" >> ${.TARGET}
105 cat ${.ALLSRC} >> ${.TARGET}
107 # ======== fcomplex.o =======
109 CLEANFILES+= fcomplex.cc
111 fcomplex.cc: cinst.cc
112 echo "#define F 1" > ${.TARGET}
113 .for i in MAIN ADDCC ADDCF ADDFC SUBCC SUBCF SUBFC MULCC MULCF MULFC DIVCC \
114 DIVCF DIVFC PLUS MINUS EQCC EQCF EQFC NECC NECF NEFC ABS ARG POLAR CONJ \
115 NORM COS COSH EXP LOG POWCC POWCF POWCI POWFC SIN SINH SQRT
116 echo "#define $i 1" >> ${.TARGET}
118 cat ${.ALLSRC} >> ${.TARGET}
120 # ======== fcomio.o =======
122 CLEANFILES+= fcomio.cc
125 echo "#define F 1" > ${.TARGET}
126 .for i in EXTRACT INSERT
127 echo "#define $i 1" >> ${.TARGET}
129 cat ${.ALLSRC} >> ${.TARGET}
131 # ======== dcomplex.o =======
133 CLEANFILES+= dcomplex.cc
135 dcomplex.cc: cinst.cc
136 echo "#define D 1" > ${.TARGET}
137 .for i in MAIN ADDCC ADDCF ADDFC SUBCC SUBCF SUBFC MULCC MULCF MULFC DIVCC \
138 DIVCF DIVFC PLUS MINUS EQCC EQCF EQFC NECC NECF NEFC ABS ARG POLAR CONJ \
139 NORM COS COSH EXP LOG POWCC POWCF POWCI POWFC SIN SINH SQRT
140 echo "#define $i 1" >> ${.TARGET}
142 cat ${.ALLSRC} >> ${.TARGET}
144 # ======== dcomio.o =======
146 CLEANFILES+= dcomio.cc
149 echo "#define D 1" > ${.TARGET}
150 .for i in EXTRACT INSERT
151 echo "#define $i 1" >> ${.TARGET}
153 cat ${.ALLSRC} >> ${.TARGET}
155 # ======== ldcomplex.o =======
157 CLEANFILES+= ldcomplex.cc
159 ldcomplex.cc: cinst.cc
160 echo "#define LD 1" > ${.TARGET}
161 .for i in MAIN ADDCC ADDCF ADDFC SUBCC SUBCF SUBFC MULCC MULCF MULFC DIVCC \
162 DIVCF DIVFC PLUS MINUS EQCC EQCF EQFC NECC NECF NEFC ABS ARG POLAR CONJ \
163 NORM COS COSH EXP LOG POWCC POWCF POWCI POWFC SIN SINH SQRT
164 echo "#define $i 1" >> ${.TARGET}
166 cat ${.ALLSRC} >> ${.TARGET}
168 # ======== ldcomio.o =======
170 CLEANFILES+= ldcomio.cc
173 echo "#define LD 1" > ${.TARGET}
174 .for i in EXTRACT INSERT
175 echo "#define $i 1" >> ${.TARGET}
177 cat ${.ALLSRC} >> ${.TARGET}
179 # ======== _G_config.h generation =======
180 # In case you want or need to generate a _G_config.h file.
182 CC="${CC}" CXX="${CXX}" CONFIG_NM="nm" \
183 CPP="${CC} -E -nostdinc -idirafter ${DESTDIR}/usr/include" \
184 sh ${SRCDIR}/../libio/gen-params \
185 LIB_VERSION=${SHLIB_MAJOR}.${SHLIB_MINOR}.0 >${.TARGET}
187 .include <bsd.lib.mk>