OSDN Git Service

Fix another mips typo.
[pf3gnuchains/gcc-fork.git] / libgfortran / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 ## We like to use C99 routines when available.  This makes sure that
4 ## __STDC_VERSION__ is set such that libc includes make them available.
5 AM_CFLAGS = -std=gnu99
6
7 toolexeclib_LTLIBRARIES = libgfortran.la libgfortranbegin.la
8
9 libgfortran_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version`
10
11 ## This should really go in the compiler lib dir, not the system lib dir.
12 libgfortranbegin_la_SOURCES = fmain.c
13 libgfortranbegin_la_LDFLAGS = -static
14
15 AM_CPPFLAGS = -I$(srcdir)/io
16
17 libgfortranincludedir = $(includedir)/gforio
18
19 gfor_io_src= \
20 io/backspace.c \
21 io/close.c \
22 io/endfile.c \
23 io/format.c \
24 io/inquire.c \
25 io/list_read.c \
26 io/lock.c \
27 io/open.c \
28 io/read.c \
29 io/rewind.c \
30 io/transfer.c \
31 io/unit.c \
32 io/unix.c \
33 io/write.c
34
35 gfor_io_headers= \
36 io/io.h
37
38 gfor_helper_src= \
39 intrinsics/associated.c \
40 intrinsics/abort.c \
41 intrinsics/args.c \
42 intrinsics/c99_functions.c \
43 intrinsics/cpu_time.c \
44 intrinsics/cshift0.c \
45 intrinsics/date_and_time.c \
46 intrinsics/env.c \
47 intrinsics/eoshift0.c \
48 intrinsics/eoshift2.c \
49 intrinsics/etime.c \
50 intrinsics/ishftc.c \
51 intrinsics/pack_generic.c \
52 intrinsics/size.c \
53 intrinsics/spread_generic.c \
54 intrinsics/string_intrinsics.c \
55 intrinsics/rand.c \
56 intrinsics/random.c \
57 intrinsics/reshape_generic.c \
58 intrinsics/reshape_packed.c \
59 intrinsics/selected_kind.f90 \
60 intrinsics/system_clock.c \
61 intrinsics/transpose_generic.c \
62 intrinsics/unpack_generic.c \
63 runtime/in_pack_generic.c \
64 runtime/in_unpack_generic.c \
65 runtime/normalize.c
66
67 gfor_src= \
68 runtime/environ.c \
69 runtime/error.c \
70 runtime/main.c \
71 runtime/memory.c \
72 runtime/pause.c \
73 runtime/stop.c \
74 runtime/string.c \
75 runtime/select.c \
76 gfortypes.h \
77 libgfortran.h
78
79 i_all_c= \
80 generated/all_l4.c \
81 generated/all_l8.c
82
83 i_any_c= \
84 generated/any_l4.c \
85 generated/any_l8.c
86
87 i_count_c= \
88 generated/count_4_l4.c \
89 generated/count_8_l4.c \
90 generated/count_4_l8.c \
91 generated/count_8_l8.c
92
93 i_maxloc0_c= \
94 generated/maxloc0_4_i4.c \
95 generated/maxloc0_8_i4.c \
96 generated/maxloc0_4_i8.c \
97 generated/maxloc0_8_i8.c \
98 generated/maxloc0_4_r4.c \
99 generated/maxloc0_8_r4.c \
100 generated/maxloc0_4_r8.c \
101 generated/maxloc0_8_r8.c
102
103 i_maxloc1_c= \
104 generated/maxloc1_4_i4.c \
105 generated/maxloc1_8_i4.c \
106 generated/maxloc1_4_i8.c \
107 generated/maxloc1_8_i8.c \
108 generated/maxloc1_4_r4.c \
109 generated/maxloc1_8_r4.c \
110 generated/maxloc1_4_r8.c \
111 generated/maxloc1_8_r8.c
112
113 i_maxval_c= \
114 generated/maxval_i4.c \
115 generated/maxval_i8.c \
116 generated/maxval_r4.c \
117 generated/maxval_r8.c
118
119 i_minloc0_c= \
120 generated/minloc0_4_i4.c \
121 generated/minloc0_8_i4.c \
122 generated/minloc0_4_i8.c \
123 generated/minloc0_8_i8.c \
124 generated/minloc0_4_r4.c \
125 generated/minloc0_8_r4.c \
126 generated/minloc0_4_r8.c \
127 generated/minloc0_8_r8.c
128
129 i_minloc1_c= \
130 generated/minloc1_4_i4.c \
131 generated/minloc1_8_i4.c \
132 generated/minloc1_4_i8.c \
133 generated/minloc1_8_i8.c \
134 generated/minloc1_4_r4.c \
135 generated/minloc1_8_r4.c \
136 generated/minloc1_4_r8.c \
137 generated/minloc1_8_r8.c
138
139 i_minval_c= \
140 generated/minval_i4.c \
141 generated/minval_i8.c \
142 generated/minval_r4.c \
143 generated/minval_r8.c
144
145 i_sum_c= \
146 generated/sum_i4.c \
147 generated/sum_i8.c \
148 generated/sum_r4.c \
149 generated/sum_r8.c \
150 generated/sum_c4.c \
151 generated/sum_c8.c
152
153 i_product_c= \
154 generated/product_i4.c \
155 generated/product_i8.c \
156 generated/product_r4.c \
157 generated/product_r8.c \
158 generated/product_c4.c \
159 generated/product_c8.c
160
161 i_dotprod_c= \
162 generated/dotprod_i4.c \
163 generated/dotprod_i8.c \
164 generated/dotprod_r4.c \
165 generated/dotprod_r8.c 
166
167 i_dotprodl_c= \
168 generated/dotprod_l4.c \
169 generated/dotprod_l8.c
170
171 i_dotprodc_c= \
172 generated/dotprod_c4.c \
173 generated/dotprod_c8.c
174
175 i_matmul_c= \
176 generated/matmul_i4.c \
177 generated/matmul_i8.c \
178 generated/matmul_r4.c \
179 generated/matmul_r8.c \
180 generated/matmul_c4.c \
181 generated/matmul_c8.c
182
183 i_matmull_c= \
184 generated/matmul_l4.c \
185 generated/matmul_l8.c
186
187 i_transpose_c= \
188 generated/transpose_i4.c \
189 generated/transpose_i8.c
190
191 i_shape_c= \
192 generated/shape_i4.c \
193 generated/shape_i8.c
194
195 i_reshape_c= \
196 generated/reshape_i4.c \
197 generated/reshape_i8.c
198
199 i_eoshift1_c= \
200 generated/eoshift1_4.c \
201 generated/eoshift1_8.c
202
203 i_eoshift3_c= \
204 generated/eoshift3_4.c \
205 generated/eoshift3_8.c
206
207 i_cshift1_c= \
208 generated/cshift1_4.c \
209 generated/cshift1_8.c
210
211 in_pack_c = \
212 generated/in_pack_i4.c \
213 generated/in_pack_i8.c
214
215 in_unpack_c = \
216 generated/in_unpack_i4.c \
217 generated/in_unpack_i8.c
218
219 i_exponent_c = \
220 generated/exponent_r4.c \
221 generated/exponent_r8.c
222
223 i_fraction_c = \
224 generated/fraction_r4.c \
225 generated/fraction_r8.c
226
227 i_nearest_c = \
228 generated/nearest_r4.c \
229 generated/nearest_r8.c
230
231 i_set_exponent_c = \
232 generated/set_exponent_r4.c \
233 generated/set_exponent_r8.c
234
235 i_pow_c = \
236 generated/pow_i4_i4.c \
237 generated/pow_i8_i4.c \
238 generated/pow_r4_i4.c \
239 generated/pow_r8_i4.c \
240 generated/pow_c4_i4.c \
241 generated/pow_c8_i4.c \
242 generated/pow_i4_i8.c \
243 generated/pow_i8_i8.c \
244 generated/pow_r4_i8.c \
245 generated/pow_r8_i8.c \
246 generated/pow_c4_i8.c \
247 generated/pow_c8_i8.c
248
249 m4_files= m4/iparm.m4 m4/ifunction.m4 m4/iforeach.m4 m4/all.m4 \
250     m4/any.m4 m4/count.m4 m4/maxloc0.m4 m4/maxloc1.m4 m4/maxval.m4 \
251     m4/minloc0.m4 m4/minloc1.m4 m4/minval.m4 m4/product.m4 m4/sum.m4 \
252     m4/dotprod.m4 m4/dotprodl.m4 m4/dotprodc.m4 m4/matmul.m4 m4/matmull.m4 \
253     m4/ctrig.m4 m4/cexp.m4 m4/chyp.m4 m4/mtype.m4 \
254     m4/specific.m4 m4/specific2.m4 m4/head.m4 m4/shape.m4 m4/reshape.m4 \
255     m4/transpose.m4 m4/eoshift1.m4 m4/eoshift3.m4 m4/exponent.m4 \
256     m4/fraction.m4 m4/nearest.m4 m4/set_exponent.m4 m4/pow.m4
257
258 gfor_built_src= $(i_all_c) $(i_any_c) $(i_count_c) $(i_maxloc0_c) \
259     $(i_maxloc1_c) $(i_maxval_c) $(i_minloc0_c) $(i_minloc1_c) $(i_minval_c) \
260     $(i_product_c) $(i_sum_c) $(i_dotprod_c) $(i_dotprodl_c) $(i_dotprodc_c) \
261     $(i_matmul_c) $(i_matmull_c) $(i_transpose_c) $(i_shape_c) $(i_eoshift1_c) \
262     $(i_eoshift3_c) $(i_cshift1_c) $(i_reshape_c) $(in_pack_c) $(in_unpack_c) \
263     $(i_exponent_c) $(i_fraction_c) $(i_nearest_c) $(i_set_exponent_c) \
264     $(i_pow_c)
265
266 # We only use these if libm doesn't contain complex math functions.
267
268 gfor_math_trig_c= \
269 generated/trig_c4.c \
270 generated/trig_c8.c
271 gfor_math_exp_c= \
272 generated/exp_c4.c \
273 generated/exp_c8.c
274 gfor_math_hyp_c= \
275 generated/hyp_c4.c \
276 generated/hyp_c8.c
277
278 gfor_math_trig_obj= \
279 trig_c4.lo \
280 trig_c8.lo
281 gfor_math_exp_obj= \
282 exp_c4.lo \
283 exp_c8.lo
284 gfor_math_hyp_obj= \
285 hyp_c4.lo \
286 hyp_c8.lo
287
288 # Machine generated specifics
289 gfor_built_specific_src= \
290 generated/_abs_c4.f90 \
291 generated/_abs_c8.f90 \
292 generated/_abs_i4.f90 \
293 generated/_abs_i8.f90 \
294 generated/_abs_r4.f90 \
295 generated/_abs_r8.f90 \
296 generated/_exp_r4.f90 \
297 generated/_exp_r8.f90 \
298 generated/_exp_c4.f90 \
299 generated/_exp_c8.f90 \
300 generated/_log_r4.f90 \
301 generated/_log_r8.f90 \
302 generated/_log_c4.f90 \
303 generated/_log_c8.f90 \
304 generated/_log10_r4.f90 \
305 generated/_log10_r8.f90 \
306 generated/_sqrt_r4.f90 \
307 generated/_sqrt_r8.f90 \
308 generated/_sqrt_c4.f90 \
309 generated/_sqrt_c8.f90 \
310 generated/_asin_r4.f90 \
311 generated/_asin_r8.f90 \
312 generated/_acos_r4.f90 \
313 generated/_acos_r8.f90 \
314 generated/_atan_r4.f90 \
315 generated/_atan_r8.f90 \
316 generated/_sin_r4.f90 \
317 generated/_sin_r8.f90 \
318 generated/_sin_c4.f90 \
319 generated/_sin_c8.f90 \
320 generated/_cos_r4.f90 \
321 generated/_cos_r8.f90 \
322 generated/_cos_c4.f90 \
323 generated/_cos_c8.f90 \
324 generated/_tan_r4.f90 \
325 generated/_tan_r8.f90 \
326 generated/_sinh_r4.f90 \
327 generated/_sinh_r8.f90 \
328 generated/_cosh_r4.f90 \
329 generated/_cosh_r8.f90 \
330 generated/_tanh_r4.f90 \
331 generated/_tanh_r8.f90 \
332 generated/_conjg_c4.f90 \
333 generated/_conjg_c8.f90 \
334 generated/_aint_r4.f90 \
335 generated/_aint_r8.f90 \
336 generated/_anint_r4.f90 \
337 generated/_anint_r8.f90
338
339 gfor_built_specific2_src= \
340 generated/_sign_i4.f90 \
341 generated/_sign_i8.f90 \
342 generated/_sign_r4.f90 \
343 generated/_sign_r8.f90 \
344 generated/_dim_i4.f90 \
345 generated/_dim_i8.f90 \
346 generated/_dim_r4.f90 \
347 generated/_dim_r8.f90 \
348 generated/_atan2_r4.f90 \
349 generated/_atan2_r8.f90 \
350 generated/_mod_i4.f90 \
351 generated/_mod_i8.f90 \
352 generated/_mod_r4.f90 \
353 generated/_mod_r8.f90
354 #specific intrinsics requiring manal code
355 #gfor_specific_c= \
356 intrinsics/_aimag.c \
357 intrinsics/_cabs.c \
358 foo
359
360 gfor_specific_src= \
361 $(gfor_built_specific_src) \
362 $(gfor_built_specific2_src) \
363 intrinsics/dprod_r8.f90
364
365 gfor_cmath_src= $(gfor_math_trig_c) $(gfor_math_exp_c) $(gfor_math_hyp_c)
366 gfor_cmath_obj= $(gfor_math_trig_obj) $(gfor_math_exp_obj) \
367     $(gfor_math_hyp_obj)
368
369 BUILT_SOURCES=$(gfor_built_src) $(gfor_cmath_src) $(gfor_built_specific_src) \
370     $(gfor_built_specific2_src)
371 libgfortran_la_SOURCES = $(gfor_src) $(gfor_built_src) $(gfor_io_src) \
372     $(gfor_helper_src) $(gfor_io_headers) $(gfor_specific_src)
373
374 EXTRA_libgfortran_la_SOURCES = $(gfor_cmath_src)
375
376 libgfortran_la_LIBADD = @MATH_OBJ@
377 libgfortran_la_DEPENDENCIES = @MATH_OBJ@
378
379 I_M4_DEPS=m4/iparm.m4
380 I_M4_DEPS0=$(I_M4_DEPS) m4/iforeach.m4
381 I_M4_DEPS1=$(I_M4_DEPS) m4/ifunction.m4
382
383 ## A 'normal' build shouldn't need to regenerate these
384 ## so we only include them in maintainer mode
385
386 if MAINTAINER_MODE
387 $(i_all_c): m4/all.m4 $(I_M4_DEPS1)
388         m4 -Dfile=$@ -I$(srcdir)/m4 all.m4 > $@
389
390 $(i_any_c): m4/any.m4 $(I_M4_DEPS1)
391         m4 -Dfile=$@ -I$(srcdir)/m4 any.m4> $@
392
393 $(i_count_c): m4/count.m4 $(I_M4_DEPS1)
394         m4 -Dfile=$@ -I$(srcdir)/m4 count.m4> $@
395
396 $(i_maxloc0_c): m4/maxloc0.m4 $(I_M4_DEPS0)
397         m4 -Dfile=$@ -I$(srcdir)/m4 maxloc0.m4 > $@
398
399 $(i_maxloc1_c): m4/maxloc1.m4 $(I_M4_DEPS1)
400         m4 -Dfile=$@ -I$(srcdir)/m4 maxloc1.m4 > $@
401
402 $(i_maxval_c): m4/maxval.m4 $(I_M4_DEPS1)
403         m4 -Dfile=$@ -I$(srcdir)/m4 maxval.m4 > $@
404
405 $(i_minloc0_c): m4/minloc0.m4 $(I_M4_DEPS0)
406         m4 -Dfile=$@ -I$(srcdir)/m4 minloc0.m4 > $@
407
408 $(i_minloc1_c): m4/minloc1.m4 $(I_M4_DEPS1)
409         m4 -Dfile=$@ -I$(srcdir)/m4 minloc1.m4 > $@
410
411 $(i_minval_c): m4/minval.m4 $(I_M4_DEPS1)
412         m4 -Dfile=$@ -I$(srcdir)/m4 minval.m4 > $@
413
414 $(i_product_c): m4/product.m4 $(I_M4_DEPS1)
415         m4 -Dfile=$@ -I$(srcdir)/m4 product.m4 > $@
416
417 $(i_sum_c): m4/sum.m4 $(I_M4_DEPS1)
418         m4 -Dfile=$@ -I$(srcdir)/m4 sum.m4 > $@
419
420 $(i_dotprod_c): m4/dotprod.m4 $(I_M4_DEPS)
421         m4 -Dfile=$@ -I$(srcdir)/m4 dotprod.m4 > $@
422
423 $(i_dotprodl_c): m4/dotprodl.m4 $(I_M4_DEPS)
424         m4 -Dfile=$@ -I$(srcdir)/m4 dotprodl.m4 > $@
425
426 $(i_dotprodc_c): m4/dotprodc.m4 $(I_M4_DEPS)
427         m4 -Dfile=$@ -I$(srcdir)/m4 dotprodc.m4 > $@
428
429 $(i_matmul_c): m4/matmul.m4 $(I_M4_DEPS)
430         m4 -Dfile=$@ -I$(srcdir)/m4 matmul.m4 > $@
431
432 $(i_matmull_c): m4/matmull.m4 $(I_M4_DEPS)
433         m4 -Dfile=$@ -I$(srcdir)/m4 matmull.m4 > $@
434
435 $(i_transpose_c): m4/transpose.m4 $(I_M4_DEPS)
436         m4 -Dfile=$@ -I$(srcdir)/m4 transpose.m4 > $@
437
438 $(i_shape_c): m4/shape.m4 $(I_M4_DEPS)
439         m4 -Dfile=$@ -I$(srcdir)/m4 shape.m4 > $@
440
441 $(i_reshape_c): m4/reshape.m4 $(I_M4_DEPS)
442         m4 -Dfile=$@ -I$(srcdir)/m4 reshape.m4 > $@
443
444 $(i_eoshift1_c): m4/eoshift1.m4 $(I_M4_DEPS)
445         m4 -Dfile=$@ -I$(srcdir)/m4 eoshift1.m4 > $@
446
447 $(i_eoshift3_c): m4/eoshift3.m4 $(I_M4_DEPS)
448         m4 -Dfile=$@ -I$(srcdir)/m4 eoshift3.m4 > $@
449
450 $(i_cshift1_c): m4/cshift1.m4 $(I_M4_DEPS)
451         m4 -Dfile=$@ -I$(srcdir)/m4 cshift1.m4 > $@
452
453 $(in_pack_c): m4/in_pack.m4 $(I_M4_DEPS)
454         m4 -Dfile=$@ -I$(srcdir)/m4 in_pack.m4 > $@
455
456 $(in_unpack_c): m4/in_unpack.m4 $(I_M4_DEPS)
457         m4 -Dfile=$@ -I$(srcdir)/m4 in_unpack.m4 > $@
458
459 $(i_exponent_c): m4/exponent.m4 m4/mtype.m4
460         m4 -Dfile=$@ -I$(srcdir)/m4 exponent.m4 > $@
461
462 $(i_fraction_c): m4/fraction.m4 m4/mtype.m4
463         m4 -Dfile=$@ -I$(srcdir)/m4 fraction.m4 > $@
464
465 $(i_nearest_c): m4/nearest.m4 m4/mtype.m4
466         m4 -Dfile=$@ -I$(srcdir)/m4 nearest.m4 > $@
467
468 $(i_set_exponent_c): m4/set_exponent.m4 m4/mtype.m4
469         m4 -Dfile=$@ -I$(srcdir)/m4 set_exponent.m4 > $@
470
471 $(i_pow_c): m4/pow.m4 $(I_M4_DEPS)
472         m4 -Dfile=$@ -I$(srcdir)/m4 pow.m4 > $@
473
474 $(gfor_math_trig_c): m4/ctrig.m4 m4/mtype.m4
475         m4 -Dfile=$@ -I$(srcdir)/m4 ctrig.m4 > $@
476
477 $(gfor_math_exp_c): m4/cexp.m4 m4/mtype.m4
478         m4 -Dfile=$@ -I$(srcdir)/m4 cexp.m4 > $@
479
480 $(gfor_math_hyp_c): m4/chyp.m4 m4/mtype.m4
481         m4 -Dfile=$@ -I$(srcdir)/m4 chyp.m4 > $@
482
483 $(gfor_built_specific_src): m4/specific.m4 m4/head.m4
484         m4 -Dfile=$@ -I$(srcdir)/m4 specific.m4 > $@
485
486 $(gfor_built_specific2_src): m4/specific2.m4 m4/head.m4
487         m4 -Dfile=$@ -I$(srcdir)/m4 specific2.m4 > $@
488 ## end of maintainer mode only rules
489 endif
490
491 EXTRA_DIST = $(m4_files)
492