]> gcc.gnu.org Git - gcc.git/blame - libstdc++/Makefile.in
call.c (joust): Tweak message.
[gcc.git] / libstdc++ / Makefile.in
CommitLineData
6599da04
JM
1# Copyright (C) 1994, 1995 Free Software Foundation
2
3# This file is part of the GNU ANSI C++ Library. This library is free
4# software; you can redistribute it and/or modify it under the terms of
5# the GNU General Public License as published by the Free Software
6# Foundation; either version 2, or (at your option) any later version.
7
8# This library is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11# GNU General Public License for more details.
12
13# You should have received a copy of the GNU General Public License
14# along with this library; see the file COPYING. If not, write to the Free
15# Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16
17VERSION = 2.8.0
18
19OBJS = cstringi.o stdexcepti.o cstdlibi.o cmathi.o stlinst.o
20SUBLIBS = $(STAMP)-string $(STAMP)-complex
21
22# C++ headers with no extension
23HEADERS= cassert cctype cerrno cfloat ciso646 climits clocale cmath complex \
24 csetjmp csignal cstdarg cstddef cstdio cstdlib cstring ctime \
25 cwchar cwctype string stdexcept \
26 algorithm deque list map queue set stack vector utility functional \
27 iterator memory numeric
28
29ARLIB = libstdc++.a
30SHLIB = libstdc++.so.$(VERSION)
31SHARLIB = libstdc++-sh.a
32SHLINK = libstdc++.so
33MSHLINK = libstdc++.so.`echo $(VERSION) | sed 's/\([0-9][.][0-9]\).*/\1/'`
34SHFLAGS =
35SHDEPS =
36
37STAMP = bigstmp
38
39LIBS = $(ARLIB)
40
41#### package, host, target, and site dependent Makefile fragments come in here.
42##
43
44IO_DIR = ../libio
45LIBIBERTY_DIR = ../libiberty
46
47LIBIBERTY_OBJS = `cat $(LIBIBERTY_DIR)/needed-list` strerror.o
48
49tooldir = $(exec_prefix)/$(target)
50INSTALLDIR = $(libdir)
51
52MOSTLYCLEAN_JUNK = *stmp-* tlib*.a *.s *.ii stdlist piclist
53CLEAN_JUNK = $(LIBS)
54
55# Remove these for public releases.
56CXXFLAGS = -g -O -Wpointer-arith -Wnested-externs -Woverloaded-virtual -Wbad-function-cast -Winline -Wwrite-strings
57CFLAGS = -g -O -Wpointer-arith -Wnested-externs
58
59.PHONY: libs
60libs: $(LIBS)
61
62stdlist: $(IO_DIR)/iostream.list $(OBJS) $(SUBLIBS) $(LIBIBERTY_DIR)/libiberty.a
63 -rm -f tlist
64 touch tlist
65 echo *.o >> tlist
66 for f in `cat $(IO_DIR)/iostream.list` ; do \
67 echo "$(IO_DIR)/$$f" >> tlist ; \
68 done
69 for f in $(LIBIBERTY_OBJS) ; do \
70 echo "$(LIBIBERTY_DIR)/$$f" >> tlist ; \
71 done
72 mv tlist stdlist
73
74piclist: stdlist
75 -rm -f tlist
76 cp stdlist tlist
77 if [ -n "$(PICFLAG)" ]; then \
78 sed 's,\([A-Za-z_]*\.o\),pic/\1,g' tlist > tlist2 ; \
79 mv tlist2 tlist ; \
80 else true ; fi
81 mv tlist piclist
82
83$(ARLIB): stdlist
84 -rm -f t$(ARLIB)
85 $(AR) $(AR_FLAGS) t$(ARLIB) `cat stdlist`
86 mv t$(ARLIB) $(ARLIB)
87 $(RANLIB) $(ARLIB)
88
89$(SHLIB): piclist
90 $(CXX) $(LIBCXXFLAGS) $(SHFLAGS) -shared -o $(SHLIB) `cat piclist` $(SHDEPS)
91
92$(SHARLIB): $(SHLIB)
93 -rm -f t$(SHARLIB)
94 $(AR) $(AR_FLAGS) t$(SHARLIB) $(SHLIB)
95 mv t$(SHARLIB) $(SHARLIB)
96 $(RANLIB) $(SHARLIB)
97
98$(SHLINK):
99 ln -s -f $(SHLIB) $(SHLINK)
100
101mshlink:
102 @$(MAKE) $(MSHLINK) "SHLINK=$(MSHLINK)"
103
104$(IO_DIR)/iostream.list: force
105 cd $(IO_DIR) ; $(MAKE) $(FLAGS_TO_PASS) iostream.list
106
107$(LIBIBERTY_DIR)/libiberty.a:
108 cd $(LIBIBERTY_DIR) ; $(MAKE) $(FLAGS_TO_PASS)
109
110STRFUNCS = REP MAIN TRAITS ADDSS ADDPS ADDCS ADDSP ADDSC \
111 EQSS EQPS EQSP NESS NEPS NESP LTSS LTPS LTSP GTSS GTPS GTSP \
112 LESS LEPS LESP GESS GEPS GESP
113STRIO = EXTRACT INSERT GETLINE
114
115# These are here for SunOS VPATH.
116cstringi.o: cstringi.cc
117cstdlibi.o: cstdlibi.cc
118cmathi.o: cmathi.cc
119stdexcepti.o: stdexcepti.cc
120stlinst.o: stlinst.cc
121
122# Later do wide strings, too.
123stmp-string: ${srcdir}/sinst.cc ${srcdir}/std/bastring.h \
124 ${srcdir}/std/bastring.cc ${srcdir}/std/straits.h
125 for name in $(STRFUNCS) $(STRIO); do \
126 echo c$${name}; \
127 if [ -n "$(PICFLAG)" ]; then \
128 $(COMPILE.cc) $(PICFLAG) -DC -D$${name} ${srcdir}/sinst.cc \
129 -o pic/c$${name}.o; \
130 else true ; fi; \
131 if [ $$? -eq 0 ]; then true; else exit 1; fi; \
132 $(COMPILE.cc) -DC -D$${name} ${srcdir}/sinst.cc -o c$${name}.o; \
133 if [ $$? -eq 0 ]; then true; else exit 1; fi; \
134 done
135 touch stmp-string
136
137bigstmp-string: ${srcdir}/sinst.cc ${srcdir}/std/bastring.h \
138 ${srcdir}/std/bastring.cc ${srcdir}/std/straits.h
139 echo cstring
140 if [ -n "$(PICFLAG)" ]; then \
141 $(COMPILE.cc) $(PICFLAG) -DC \
142 `for N in $(STRFUNCS); do echo " -D$${N}"; done` \
143 $(srcdir)/sinst.cc -o pic/cstrmain.o; \
144 else true ; fi
145 $(COMPILE.cc) -DC `for N in $(STRFUNCS); do echo " -D$${N}"; done` \
146 $(srcdir)/sinst.cc -o cstrmain.o
147 echo cstrio
148 if [ -n "$(PICFLAG)" ]; then \
149 $(COMPILE.cc) $(PICFLAG) -DC \
150 `for N in $(STRIO); do echo " -D$${N}"; done` \
151 $(srcdir)/sinst.cc -o pic/cstrio.o; \
152 else true ; fi
153 $(COMPILE.cc) -DC `for N in $(STRIO); do echo " -D$${N}"; done` \
154 $(srcdir)/sinst.cc -o cstrio.o
155 touch bigstmp-string
156
157COMFUNCS = MAIN ADDCC ADDCF ADDFC SUBCC SUBCF SUBFC MULCC MULCF MULFC DIVCC \
158 DIVCF DIVFC PLUS MINUS EQCC EQCF EQFC NECC NECF NEFC ABS ARG POLAR \
159 CONJ NORM COS COSH EXP LOG POWCC POWCF POWCI POWFC SIN SINH SQRT
160COMIO = EXTRACT INSERT
161
162stmp-complex: ${srcdir}/cinst.cc ${srcdir}/std/complext.h \
163 ${srcdir}/std/complext.cc ${srcdir}/std/dcomplex.h \
164 ${srcdir}/std/ldcomplex.h
165 for N in $(COMFUNCS) $(COMIO); do \
166 echo f$${N}; \
167 if [ -n "$(PICFLAG)" ]; then \
168 $(COMPILE.cc) $(PICFLAG) -DF -D$${N} $(srcdir)/cinst.cc \
169 -o pic/f$${N}.o; \
170 else true ; fi; \
171 if [ $$? -eq 0 ]; then true; else exit 1; fi; \
172 $(COMPILE.cc) -DF -D$${N} ${srcdir}/cinst.cc -o f$${N}.o; \
173 if [ $$? -eq 0 ]; then true; else exit 1; fi; \
174 echo d$${N}; \
175 if [ -n "$(PICFLAG)" ]; then \
176 $(COMPILE.cc) $(PICFLAG) -DD -D$${N} $(srcdir)/cinst.cc \
177 -o pic/d$${N}.o; \
178 else true ; fi; \
179 if [ $$? -eq 0 ]; then true; else exit 1; fi; \
180 $(COMPILE.cc) -DD -D$${N} ${srcdir}/cinst.cc -o d$${N}.o; \
181 if [ $$? -eq 0 ]; then true; else exit 1; fi; \
182 echo ld$${N}; \
183 if [ -n "$(PICFLAG)" ]; then \
184 $(COMPILE.cc) $(PICFLAG) -DLD -D$${N} $(srcdir)/cinst.cc \
185 -o pic/ld$${N}.o; \
186 else true ; fi; \
187 if [ $$? -eq 0 ]; then true; else exit 1; fi; \
188 $(COMPILE.cc) -DLD -D$${N} ${srcdir}/cinst.cc -o ld$${N}.o; \
189 if [ $$? -eq 0 ]; then true; else exit 1; fi; \
190 done
191 touch stmp-complex
192
193bigstmp-complex: ${srcdir}/cinst.cc ${srcdir}/std/complext.h \
194 ${srcdir}/std/complext.cc ${srcdir}/std/dcomplex.h \
195 ${srcdir}/std/ldcomplex.h
196 echo fcomplex
197 if [ -n "$(PICFLAG)" ]; then \
198 $(COMPILE.cc) $(PICFLAG) -DF \
199 `for N in $(COMFUNCS); do echo " -D$${N}"; done` \
200 $(srcdir)/cinst.cc -o pic/fcomplex.o; \
201 else true ; fi
202 $(COMPILE.cc) -DF `for N in $(COMFUNCS); do echo " -D$${N}"; done` \
203 $(srcdir)/cinst.cc -o fcomplex.o
204 echo fcomio
205 if [ -n "$(PICFLAG)" ]; then \
206 $(COMPILE.cc) $(PICFLAG) -DF \
207 `for N in $(COMIO); do echo " -D$${N}"; done` \
208 $(srcdir)/cinst.cc -o pic/fcomio.o; \
209 else true ; fi
210 $(COMPILE.cc) -DF `for N in $(COMIO); do echo " -D$${N}"; done` \
211 $(srcdir)/cinst.cc -o fcomio.o
212 echo dcomplex
213 if [ -n "$(PICFLAG)" ]; then \
214 $(COMPILE.cc) $(PICFLAG) -DD \
215 `for N in $(COMFUNCS); do echo " -D$${N}"; done` \
216 $(srcdir)/cinst.cc -o pic/dcomplex.o; \
217 else true ; fi
218 $(COMPILE.cc) -DD `for N in $(COMFUNCS); do echo " -D$${N}"; done` \
219 $(srcdir)/cinst.cc -o dcomplex.o
220 echo dcomio
221 if [ -n "$(PICFLAG)" ]; then \
222 $(COMPILE.cc) $(PICFLAG) -DD \
223 `for N in $(COMIO); do echo " -D$${N}"; done` \
224 $(srcdir)/cinst.cc -o pic/dcomio.o; \
225 else true ; fi
226 $(COMPILE.cc) -DD `for N in $(COMIO); do echo " -D$${N}"; done` \
227 $(srcdir)/cinst.cc -o dcomio.o
228 echo ldcomplex
229 if [ -n "$(PICFLAG)" ]; then \
230 $(COMPILE.cc) $(PICFLAG) -DLD \
231 `for N in $(COMFUNCS); do echo " -D$${N}"; done` \
232 $(srcdir)/cinst.cc -o pic/ldcomplex.o; \
233 else true ; fi
234 $(COMPILE.cc) -DLD `for N in $(COMFUNCS); do echo " -D$${N}"; done` \
235 $(srcdir)/cinst.cc -o ldcomplex.o
236 echo ldcomio
237 if [ -n "$(PICFLAG)" ]; then \
238 $(COMPILE.cc) $(PICFLAG) -DLD \
239 `for N in $(COMIO); do echo " -D$${N}"; done` \
240 $(srcdir)/cinst.cc -o pic/ldcomio.o; \
241 else true ; fi
242 $(COMPILE.cc) -DLD `for N in $(COMIO); do echo " -D$${N}"; done` \
243 $(srcdir)/cinst.cc -o ldcomio.o
244 touch bigstmp-complex
245
246.PHONY: install
247install:
248 rootme=`pwd`/ ; export rootme ; \
249 if [ -z "$(MULTISUBDIR)" ]; then \
250 cd $(srcdir); \
251 for FILE in $(HEADERS) *.h std/*.*; do \
252 rm -f $(gxx_includedir)/$$FILE ; \
253 $(INSTALL_DATA) $$FILE $(gxx_includedir)/$$FILE ; \
254 chmod a-x $(gxx_includedir)/$$FILE ; \
255 done ; \
256 cd stl; \
257 for FILE in *.h; do \
258 rm -f $(gxx_includedir)/$$FILE ; \
259 $(INSTALL_DATA) $$FILE $(gxx_includedir)/$$FILE ; \
260 chmod a-x $(gxx_includedir)/$$FILE ; \
261 done ; \
262 else true ; \
263 fi
264 rootme=`pwd`/ ; export rootme ; \
265 for FILE in $(LIBS) ; do \
266 rm -f $(INSTALLDIR)$(MULTISUBDIR)/$$FILE ; \
267 if [ $$FILE = $(SHLINK) ] ; then \
268 ln -s -f $(SHLIB) $(INSTALLDIR)$(MULTISUBDIR)/$$FILE ; \
269 elif [ $$FILE = mshlink ]; then \
270 for FILE in $(MSHLINK) ; do \
271 rm -f $(INSTALLDIR)$(MULTISUBDIR)/$$FILE ; \
272 ln -s -f $$FILE $(INSTALLDIR)$(MULTISUBDIR)/$$FILE ; \
273 done; \
274 elif [ $$FILE = $(SHLIB) ]; then \
275 $(INSTALL_PROGRAM) $$FILE $(INSTALLDIR)$(MULTISUBDIR)/$$FILE ; \
276 : On the HP, shared libraries must be mode 555. ;\
277 chmod 555 $(INSTALLDIR)$(MULTISUBDIR)/$$FILE ; \
278 else \
279 $(INSTALL_DATA) $$FILE $(INSTALLDIR)$(MULTISUBDIR)/$$FILE ; \
280 $(RANLIB) $(INSTALLDIR)$(MULTISUBDIR)/$$FILE ; \
281 chmod a-x $(INSTALLDIR)$(MULTISUBDIR)/$$FILE ; \
282 fi ; \
283 done
284 @rootme=`pwd`/ ; export rootme ; \
285 $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
286
287.PHONY: force
288force:
289
290.PHONY: stuff
291stuff:
292 $(MAKE) clean
293 $(MAKE) -C ../libio c++clean
294 $(MAKE) -C ../libg++ clean
295 $(MAKE) check
296 $(MAKE) -C ../libio check
297 $(MAKE) -C ../libg++ check
298
299stuff1:
300 $(MAKE) clean
301 $(MAKE) -C ../libio c++clean
302 $(MAKE) -C ../libg++ clean
303
304stuff2:
305 $(MAKE) check
306 $(MAKE) -C ../libio check
307 $(MAKE) -C ../libg++ check
This page took 0.060441 seconds and 5 git commands to generate.