OSDN Git Service

2001-10-03 Toon Moene <toon@moene.indiv.nluug.nl>
[pf3gnuchains/gcc-fork.git] / libf2c / libF77 / Makefile.in
1 # Makefile for GNU F77 compiler runtime.
2 # Copyright 1990 - 1994 by AT&T Bell Laboratories and Bellcore (see the
3 # file `Notice').
4 # Portions of this file Copyright (C) 1995-1998 Free Software Foundation, Inc.
5 #   Contributed by Dave Love (d.love@dl.ac.uk).
6 #
7 #This file is part of GNU Fortran.
8 #
9 #GNU Fortran is free software; you can redistribute it and/or modify
10 #it under the terms of the GNU General Public License as published by
11 #the Free Software Foundation; either version 2, or (at your option)
12 #any later version.
13 #
14 #GNU Fortran is distributed in the hope that it will be useful,
15 #but WITHOUT ANY WARRANTY; without even the implied warranty of
16 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 #GNU General Public License for more details.
18 #
19 #You should have received a copy of the GNU General Public License
20 #along with GNU Fortran; see the file COPYING.  If not, write to
21 #the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 #02111-1307, USA.
23
24 #### Start of system configuration section. ####
25
26 # $(srcdir) must be set to the g77 runtime libF77 source directory.
27 srcdir = @srcdir@
28 VPATH = @srcdir@
29
30 # configure sets this to all the -D options appropriate for the
31 # configuration.
32 DEFS = @DEFS@
33
34 F2C_H_DIR = @srcdir@/..
35 G2C_H_DIR = ..
36 CC = @CC@
37 CFLAGS = @CFLAGS@
38 CPPFLAGS = @CPPFLAGS@
39 AR = @AR@
40 ARFLAGS = rc
41 @SET_MAKE@
42
43 SHELL = /bin/sh
44
45 #### End of system configuration section. ####
46
47 ALL_CFLAGS = -I. -I$(srcdir) -I$(G2C_H_DIR) -I$(F2C_H_DIR) $(CPPFLAGS) $(DEFS) $(CFLAGS)
48
49 .SUFFIXES:
50 .SUFFIXES: .c .lo
51
52 .c.lo:
53         @LIBTOOL@ --mode=compile $(CC) -c -DSkip_f2c_Undefs $(ALL_CFLAGS) $<
54
55 MISC =  F77_aloc.lo VersionF.lo s_rnge.lo abort_.lo getarg_.lo iargc_.lo\
56         getenv_.lo signal_.lo s_stop.lo s_paus.lo system_.lo cabs.lo\
57         derf_.lo derfc_.lo erf_.lo erfc_.lo sig_die.lo exit_.lo setarg.lo setsig.lo
58 POW =   pow_ci.lo pow_dd.lo pow_di.lo pow_hh.lo pow_ii.lo  pow_ri.lo pow_zi.lo pow_zz.lo \
59         pow_qq.lo
60 CX =    c_abs.lo c_cos.lo c_div.lo c_exp.lo c_log.lo c_sin.lo c_sqrt.lo
61 DCX =   z_abs.lo z_cos.lo z_div.lo z_exp.lo z_log.lo z_sin.lo z_sqrt.lo
62 REAL =  r_abs.lo r_acos.lo r_asin.lo r_atan.lo r_atn2.lo r_cnjg.lo r_cos.lo\
63         r_cosh.lo r_dim.lo r_exp.lo r_imag.lo r_int.lo\
64         r_lg10.lo r_log.lo r_mod.lo r_nint.lo r_sign.lo\
65         r_sin.lo r_sinh.lo r_sqrt.lo r_tan.lo r_tanh.lo
66 DBL =   d_abs.lo d_acos.lo d_asin.lo d_atan.lo d_atn2.lo\
67         d_cnjg.lo d_cos.lo d_cosh.lo d_dim.lo d_exp.lo\
68         d_imag.lo d_int.lo d_lg10.lo d_log.lo d_mod.lo\
69         d_nint.lo d_prod.lo d_sign.lo d_sin.lo d_sinh.lo\
70         d_sqrt.lo d_tan.lo d_tanh.lo
71 INT =   i_abs.lo i_dim.lo i_dnnt.lo i_indx.lo i_len.lo i_mod.lo i_nint.lo i_sign.lo
72 HALF =  h_abs.lo h_dim.lo h_dnnt.lo h_indx.lo h_len.lo h_mod.lo  h_nint.lo h_sign.lo
73 CMP =   l_ge.lo l_gt.lo l_le.lo l_lt.lo hl_ge.lo hl_gt.lo hl_le.lo hl_lt.lo
74 EFL =   ef1asc_.lo ef1cmc_.lo
75 CHAR =  s_cat.lo s_cmp.lo s_copy.lo
76 F90BIT = lbitbits.lo lbitshft.lo qbitbits.lo qbitshft.lo
77
78 OBJS = $(MISC) $(POW) $(CX) $(DCX) $(REAL) $(DBL) $(INT) \
79          $(HALF) $(CMP) $(EFL) $(CHAR) $(F90BIT)
80
81 all: ../s-libf77 ../libfrtbegin.a
82
83 ../s-libf77: $(OBJS)
84         echo timestamp > ../s-libf77
85
86 objlist:
87         objs="`cat ../objlist`" ; for i in $(OBJS) ; do \
88            x=`echo $$i` ;\
89            objs="$$objs libF77/$$x" ;\
90         done ; \
91         echo -n $$objs > ../objlist
92
93 Makefile: Makefile.in config.status
94         $(SHELL) config.status
95
96 config.status: configure
97         rm -f config.cache
98         CONFIG_SITE=no-such-file CC='$(CC)' AR='$(AR)' CFLAGS='$(CFLAGS)' \
99           CPPFLAGS='$(CPPFLAGS)' $(SHELL) config.status --recheck
100
101 ${srcdir}/configure: configure.in
102         rm -f config.cache
103         cd ${srcdir} && autoconf
104
105 VersionF.lo: Version.c
106         @LIBTOOL@ --mode=compile $(CC) -c $(ALL_CFLAGS) $(srcdir)/Version.c -o $@
107
108 frtbegin.o : main.c
109         $(CC) -c $(ALL_CFLAGS) $(srcdir)/main.c -o $@
110
111 ../libfrtbegin.a: frtbegin.o
112         $(AR) $(ARFLAGS) $@ $<
113         $(RANLIB) $@
114
115 F77_aloc.lo: F77_aloc.c
116 s_rnge.lo: s_rnge.c
117 abort_.lo: abort_.c
118 getarg_.lo: getarg_.c
119 iargc_.lo: iargc_.c
120 getenv_.lo: getenv_.c
121 signal_.lo: signal_.c
122 s_stop.lo: s_stop.c
123 s_paus.lo: s_paus.c
124 system_.lo: system_.c
125 cabs.lo: cabs.c
126 derf_.lo: derf_.c
127 derfc_.lo: derfc_.c
128 erf_.lo: erf_.c
129 erfc_.lo: erfc_.c
130 sig_die.lo: sig_die.c
131 exit_.lo: exit_.c
132 setarg.lo: setarg.c
133 setsig.lo: setsig.c
134 pow_ci.lo: pow_ci.c
135 pow_dd.lo: pow_dd.c
136 pow_di.lo: pow_di.c
137 pow_hh.lo: pow_hh.c
138 pow_ii.lo: pow_ii.c
139 pow_ri.lo:  pow_ri.c
140 pow_zi.lo: pow_zi.c
141 pow_zz.lo: pow_zz.c
142 pow_qq.lo:  pow_qq.c
143 c_abs.lo: c_abs.c
144 c_cos.lo: c_cos.c
145 c_div.lo: c_div.c
146 c_exp.lo: c_exp.c
147 c_log.lo: c_log.c
148 c_sin.lo: c_sin.c
149 c_sqrt.lo: c_sqrt.c
150 z_abs.lo: z_abs.c
151 z_cos.lo: z_cos.c
152 z_div.lo: z_div.c
153 z_exp.lo: z_exp.c
154 z_log.lo: z_log.c
155 z_sin.lo: z_sin.c
156 z_sqrt.lo: z_sqrt.c
157 r_abs.lo: r_abs.c
158 r_acos.lo: r_acos.c
159 r_asin.lo: r_asin.c
160 r_atan.lo: r_atan.c
161 r_atn2.lo: r_atn2.c
162 r_cnjg.lo: r_cnjg.c
163 r_cos.lo: r_cos.c
164 r_cosh.lo: r_cosh.c
165 r_dim.lo: r_dim.c
166 r_exp.lo: r_exp.c
167 r_imag.lo: r_imag.c
168 r_int.lo: r_int.c
169 r_lg10.lo: r_lg10.c
170 r_log.lo: r_log.c
171 r_mod.lo: r_mod.c
172 r_nint.lo: r_nint.c
173 r_sign.lo: r_sign.c
174 r_sin.lo: r_sin.c
175 r_sinh.lo: r_sinh.c
176 r_sqrt.lo: r_sqrt.c
177 r_tan.lo: r_tan.c
178 r_tanh.lo: r_tanh.c
179 d_abs.lo: d_abs.c
180 d_acos.lo: d_acos.c
181 d_asin.lo: d_asin.c
182 d_atan.lo: d_atan.c
183 d_atn2.lo: d_atn2.c
184 d_cnjg.lo: d_cnjg.c
185 d_cos.lo: d_cos.c
186 d_cosh.lo: d_cosh.c
187 d_dim.lo: d_dim.c
188 d_exp.lo: d_exp.c
189 d_imag.lo: d_imag.c
190 d_int.lo: d_int.c
191 d_lg10.lo: d_lg10.c
192 d_log.lo: d_log.c
193 d_mod.lo: d_mod.c
194 d_nint.lo: d_nint.c
195 d_prod.lo: d_prod.c
196 d_sign.lo: d_sign.c
197 d_sin.lo: d_sin.c
198 d_sinh.lo: d_sinh.c
199 d_sqrt.lo: d_sqrt.c
200 d_tan.lo: d_tan.c
201 d_tanh.lo: d_tanh.c
202 i_abs.lo: i_abs.c
203 i_dim.lo: i_dim.c
204 i_dnnt.lo: i_dnnt.c
205 i_indx.lo: i_indx.c
206 i_len.lo: i_len.c
207 i_mod.lo: i_mod.c
208 i_nint.lo: i_nint.c
209 i_sign.lo: i_sign.c
210 h_abs.lo:  h_abs.c
211 h_dim.lo: h_dim.c
212 h_dnnt.lo: h_dnnt.c
213 h_indx.lo: h_indx.c
214 h_len.lo: h_len.c
215 h_mod.lo: h_mod.c
216 h_nint.lo:  h_nint.c
217 h_sign.lo: h_sign.c
218 l_ge.lo: l_ge.c
219 l_gt.lo: l_gt.c
220 l_le.lo: l_le.c
221 l_lt.lo: l_lt.c
222 hl_ge.lo: hl_ge.c
223 hl_gt.lo: hl_gt.c
224 hl_le.lo: hl_le.c
225 hl_lt.lo: hl_lt.c
226 ef1asc_.lo: ef1asc_.c
227 ef1cmc_.lo: ef1cmc_.c
228 s_cat.lo: s_cat.c
229 s_cmp.lo: s_cmp.c
230 s_copy.lo: s_copy.c
231 lbitbits.lo: lbitbits.c
232 lbitshft.lo: lbitshft.c
233 qbitbits.lo: qbitbits.c
234 qbitshft.lo: qbitshft.c
235
236 # Not quite all these actually do depend on f2c.h...
237 $(MISC) $(POW) $(CX) $(DCX) $(REAL) $(DBL) $(INT) $(HALF) $(CMP) $(EFL) \
238   $(CHAR) $(F90BIT): $(F2C_H_DIR)/f2c.h $(G2C_H_DIR)/g2c.h
239
240 check install uninstall install-strip dist installcheck installdirs:
241
242 mostlyclean:
243         rm -f *.o *.lo ../libfrtbegin.a
244         rm -rf .libs
245
246 clean: mostlyclean
247         rm -f config.log
248         rm -f ../s-libf77
249
250 distclean: clean
251         rm -f config.cache config.status Makefile ../s-libf77 configure
252
253 maintainer-clean:
254
255 .PHONY: mostlyclean clean distclean maintainer-clean all check uninstall \
256         install-strip dist installcheck installdirs archive