OSDN Git Service

* ifcvt.c (cond_exec_find_if_block): Return FALSE if no
[pf3gnuchains/gcc-fork.git] / libgfortran / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3
4 ACLOCAL_AMFLAGS = -I ../config
5
6 ## May be used by toolexeclibdir.
7 gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
8
9 toolexeclib_LTLIBRARIES = libgfortran.la
10 libgfortran_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` -lm $(extra_ldflags_libgfortran)
11
12 myexeclib_LTLIBRARIES = libgfortranbegin.la
13 myexeclibdir = $(libdir)/gcc/$(target_alias)/$(gcc_version)$(MULTISUBDIR)
14 libgfortranbegin_la_SOURCES = fmain.c
15 libgfortranbegin_la_LDFLAGS = -static
16
17 ## io.h conflicts with some a system header on some platforms, so
18 ## use -iquote
19 AM_CPPFLAGS = -iquote$(srcdir)/io -I$(srcdir)/$(MULTISRCTOP)../gcc \
20               -I$(srcdir)/$(MULTISRCTOP)../gcc/config \
21               -I$(MULTIBUILDTOP)../../$(host_subdir)/gcc -D_GNU_SOURCE
22
23 gfor_io_src= \
24 io/close.c \
25 io/file_pos.c \
26 io/format.c \
27 io/inquire.c \
28 io/intrinsics.c \
29 io/list_read.c \
30 io/lock.c \
31 io/open.c \
32 io/read.c \
33 io/size_from_kind.c \
34 io/transfer.c \
35 io/unit.c \
36 io/unix.c \
37 io/write.c
38
39 gfor_io_headers= \
40 io/io.h
41
42 gfor_helper_src= \
43 intrinsics/associated.c \
44 intrinsics/abort.c \
45 intrinsics/access.c \
46 intrinsics/args.c \
47 intrinsics/c99_functions.c \
48 intrinsics/chdir.c \
49 intrinsics/chmod.c \
50 intrinsics/clock.c \
51 intrinsics/cpu_time.c \
52 intrinsics/cshift0.c \
53 intrinsics/ctime.c \
54 intrinsics/date_and_time.c \
55 intrinsics/env.c \
56 intrinsics/eoshift0.c \
57 intrinsics/eoshift2.c \
58 intrinsics/etime.c \
59 intrinsics/exit.c \
60 intrinsics/fnum.c \
61 intrinsics/gerror.c \
62 intrinsics/getcwd.c \
63 intrinsics/getlog.c \
64 intrinsics/getXid.c \
65 intrinsics/hostnm.c \
66 intrinsics/kill.c \
67 intrinsics/ierrno.c \
68 intrinsics/ishftc.c \
69 intrinsics/link.c \
70 intrinsics/malloc.c \
71 intrinsics/mvbits.c \
72 intrinsics/move_alloc.c \
73 intrinsics/pack_generic.c \
74 intrinsics/perror.c \
75 intrinsics/signal.c \
76 intrinsics/size.c \
77 intrinsics/sleep.c \
78 intrinsics/spread_generic.c \
79 intrinsics/string_intrinsics.c \
80 intrinsics/system.c \
81 intrinsics/rand.c \
82 intrinsics/random.c \
83 intrinsics/rename.c \
84 intrinsics/reshape_generic.c \
85 intrinsics/reshape_packed.c \
86 intrinsics/selected_int_kind.f90 \
87 intrinsics/selected_real_kind.f90 \
88 intrinsics/stat.c \
89 intrinsics/symlnk.c \
90 intrinsics/system_clock.c \
91 intrinsics/time.c \
92 intrinsics/transpose_generic.c \
93 intrinsics/umask.c \
94 intrinsics/unlink.c \
95 intrinsics/unpack_generic.c \
96 runtime/in_pack_generic.c \
97 runtime/in_unpack_generic.c
98
99 gfor_src= \
100 runtime/backtrace.c \
101 runtime/compile_options.c \
102 runtime/environ.c \
103 runtime/error.c \
104 runtime/fpu.c \
105 runtime/main.c \
106 runtime/memory.c \
107 runtime/pause.c \
108 runtime/stop.c \
109 runtime/string.c \
110 runtime/select.c
111
112 i_all_c= \
113 $(srcdir)/generated/all_l4.c \
114 $(srcdir)/generated/all_l8.c \
115 $(srcdir)/generated/all_l16.c
116
117 i_any_c= \
118 $(srcdir)/generated/any_l4.c \
119 $(srcdir)/generated/any_l8.c \
120 $(srcdir)/generated/any_l16.c
121
122 i_count_c= \
123 $(srcdir)/generated/count_4_l4.c \
124 $(srcdir)/generated/count_8_l4.c \
125 $(srcdir)/generated/count_16_l4.c \
126 $(srcdir)/generated/count_4_l8.c \
127 $(srcdir)/generated/count_8_l8.c \
128 $(srcdir)/generated/count_16_l8.c \
129 $(srcdir)/generated/count_4_l16.c \
130 $(srcdir)/generated/count_8_l16.c \
131 $(srcdir)/generated/count_16_l16.c
132
133 i_maxloc0_c= \
134 $(srcdir)/generated/maxloc0_4_i1.c \
135 $(srcdir)/generated/maxloc0_8_i1.c \
136 $(srcdir)/generated/maxloc0_16_i1.c \
137 $(srcdir)/generated/maxloc0_4_i2.c \
138 $(srcdir)/generated/maxloc0_8_i2.c \
139 $(srcdir)/generated/maxloc0_16_i2.c \
140 $(srcdir)/generated/maxloc0_4_i4.c \
141 $(srcdir)/generated/maxloc0_8_i4.c \
142 $(srcdir)/generated/maxloc0_16_i4.c \
143 $(srcdir)/generated/maxloc0_4_i8.c \
144 $(srcdir)/generated/maxloc0_8_i8.c \
145 $(srcdir)/generated/maxloc0_16_i8.c \
146 $(srcdir)/generated/maxloc0_4_i16.c \
147 $(srcdir)/generated/maxloc0_8_i16.c \
148 $(srcdir)/generated/maxloc0_16_i16.c \
149 $(srcdir)/generated/maxloc0_4_r4.c \
150 $(srcdir)/generated/maxloc0_8_r4.c \
151 $(srcdir)/generated/maxloc0_16_r4.c \
152 $(srcdir)/generated/maxloc0_4_r8.c \
153 $(srcdir)/generated/maxloc0_8_r8.c \
154 $(srcdir)/generated/maxloc0_16_r8.c \
155 $(srcdir)/generated/maxloc0_4_r10.c \
156 $(srcdir)/generated/maxloc0_8_r10.c \
157 $(srcdir)/generated/maxloc0_16_r10.c \
158 $(srcdir)/generated/maxloc0_4_r16.c \
159 $(srcdir)/generated/maxloc0_8_r16.c \
160 $(srcdir)/generated/maxloc0_16_r16.c
161
162 i_maxloc1_c= \
163 $(srcdir)/generated/maxloc1_4_i1.c \
164 $(srcdir)/generated/maxloc1_8_i1.c \
165 $(srcdir)/generated/maxloc1_16_i1.c \
166 $(srcdir)/generated/maxloc1_4_i2.c \
167 $(srcdir)/generated/maxloc1_8_i2.c \
168 $(srcdir)/generated/maxloc1_16_i2.c \
169 $(srcdir)/generated/maxloc1_4_i4.c \
170 $(srcdir)/generated/maxloc1_8_i4.c \
171 $(srcdir)/generated/maxloc1_16_i4.c \
172 $(srcdir)/generated/maxloc1_4_i8.c \
173 $(srcdir)/generated/maxloc1_8_i8.c \
174 $(srcdir)/generated/maxloc1_16_i8.c \
175 $(srcdir)/generated/maxloc1_4_i16.c \
176 $(srcdir)/generated/maxloc1_8_i16.c \
177 $(srcdir)/generated/maxloc1_16_i16.c \
178 $(srcdir)/generated/maxloc1_4_r4.c \
179 $(srcdir)/generated/maxloc1_8_r4.c \
180 $(srcdir)/generated/maxloc1_16_r4.c \
181 $(srcdir)/generated/maxloc1_4_r8.c \
182 $(srcdir)/generated/maxloc1_8_r8.c \
183 $(srcdir)/generated/maxloc1_16_r8.c \
184 $(srcdir)/generated/maxloc1_4_r10.c \
185 $(srcdir)/generated/maxloc1_8_r10.c \
186 $(srcdir)/generated/maxloc1_16_r10.c \
187 $(srcdir)/generated/maxloc1_4_r16.c \
188 $(srcdir)/generated/maxloc1_8_r16.c \
189 $(srcdir)/generated/maxloc1_16_r16.c
190
191 i_maxval_c= \
192 $(srcdir)/generated/maxval_i1.c \
193 $(srcdir)/generated/maxval_i2.c \
194 $(srcdir)/generated/maxval_i4.c \
195 $(srcdir)/generated/maxval_i8.c \
196 $(srcdir)/generated/maxval_i16.c \
197 $(srcdir)/generated/maxval_r4.c \
198 $(srcdir)/generated/maxval_r8.c \
199 $(srcdir)/generated/maxval_r10.c \
200 $(srcdir)/generated/maxval_r16.c
201
202 i_minloc0_c= \
203 $(srcdir)/generated/minloc0_4_i1.c \
204 $(srcdir)/generated/minloc0_8_i1.c \
205 $(srcdir)/generated/minloc0_16_i1.c \
206 $(srcdir)/generated/minloc0_4_i2.c \
207 $(srcdir)/generated/minloc0_8_i2.c \
208 $(srcdir)/generated/minloc0_16_i2.c \
209 $(srcdir)/generated/minloc0_4_i4.c \
210 $(srcdir)/generated/minloc0_8_i4.c \
211 $(srcdir)/generated/minloc0_16_i4.c \
212 $(srcdir)/generated/minloc0_4_i8.c \
213 $(srcdir)/generated/minloc0_8_i8.c \
214 $(srcdir)/generated/minloc0_16_i8.c \
215 $(srcdir)/generated/minloc0_4_i16.c \
216 $(srcdir)/generated/minloc0_8_i16.c \
217 $(srcdir)/generated/minloc0_16_i16.c \
218 $(srcdir)/generated/minloc0_4_r4.c \
219 $(srcdir)/generated/minloc0_8_r4.c \
220 $(srcdir)/generated/minloc0_16_r4.c \
221 $(srcdir)/generated/minloc0_4_r8.c \
222 $(srcdir)/generated/minloc0_8_r8.c \
223 $(srcdir)/generated/minloc0_16_r8.c \
224 $(srcdir)/generated/minloc0_4_r10.c \
225 $(srcdir)/generated/minloc0_8_r10.c \
226 $(srcdir)/generated/minloc0_16_r10.c \
227 $(srcdir)/generated/minloc0_4_r16.c \
228 $(srcdir)/generated/minloc0_8_r16.c \
229 $(srcdir)/generated/minloc0_16_r16.c
230
231 i_minloc1_c= \
232 $(srcdir)/generated/minloc1_4_i1.c \
233 $(srcdir)/generated/minloc1_8_i1.c \
234 $(srcdir)/generated/minloc1_16_i1.c \
235 $(srcdir)/generated/minloc1_4_i2.c \
236 $(srcdir)/generated/minloc1_8_i2.c \
237 $(srcdir)/generated/minloc1_16_i2.c \
238 $(srcdir)/generated/minloc1_4_i4.c \
239 $(srcdir)/generated/minloc1_8_i4.c \
240 $(srcdir)/generated/minloc1_16_i4.c \
241 $(srcdir)/generated/minloc1_4_i8.c \
242 $(srcdir)/generated/minloc1_8_i8.c \
243 $(srcdir)/generated/minloc1_16_i8.c \
244 $(srcdir)/generated/minloc1_4_i16.c \
245 $(srcdir)/generated/minloc1_8_i16.c \
246 $(srcdir)/generated/minloc1_16_i16.c \
247 $(srcdir)/generated/minloc1_4_r4.c \
248 $(srcdir)/generated/minloc1_8_r4.c \
249 $(srcdir)/generated/minloc1_16_r4.c \
250 $(srcdir)/generated/minloc1_4_r8.c \
251 $(srcdir)/generated/minloc1_8_r8.c \
252 $(srcdir)/generated/minloc1_16_r8.c \
253 $(srcdir)/generated/minloc1_4_r10.c \
254 $(srcdir)/generated/minloc1_8_r10.c \
255 $(srcdir)/generated/minloc1_16_r10.c \
256 $(srcdir)/generated/minloc1_4_r16.c \
257 $(srcdir)/generated/minloc1_8_r16.c \
258 $(srcdir)/generated/minloc1_16_r16.c
259
260 i_minval_c= \
261 $(srcdir)/generated/minval_i1.c \
262 $(srcdir)/generated/minval_i2.c \
263 $(srcdir)/generated/minval_i4.c \
264 $(srcdir)/generated/minval_i8.c \
265 $(srcdir)/generated/minval_i16.c \
266 $(srcdir)/generated/minval_r4.c \
267 $(srcdir)/generated/minval_r8.c \
268 $(srcdir)/generated/minval_r10.c \
269 $(srcdir)/generated/minval_r16.c
270
271 i_sum_c= \
272 $(srcdir)/generated/sum_i1.c \
273 $(srcdir)/generated/sum_i2.c \
274 $(srcdir)/generated/sum_i4.c \
275 $(srcdir)/generated/sum_i8.c \
276 $(srcdir)/generated/sum_i16.c \
277 $(srcdir)/generated/sum_r4.c \
278 $(srcdir)/generated/sum_r8.c \
279 $(srcdir)/generated/sum_r10.c \
280 $(srcdir)/generated/sum_r16.c \
281 $(srcdir)/generated/sum_c4.c \
282 $(srcdir)/generated/sum_c8.c \
283 $(srcdir)/generated/sum_c10.c \
284 $(srcdir)/generated/sum_c16.c
285
286 i_product_c= \
287 $(srcdir)/generated/product_i1.c \
288 $(srcdir)/generated/product_i2.c \
289 $(srcdir)/generated/product_i4.c \
290 $(srcdir)/generated/product_i8.c \
291 $(srcdir)/generated/product_i16.c \
292 $(srcdir)/generated/product_r4.c \
293 $(srcdir)/generated/product_r8.c \
294 $(srcdir)/generated/product_r10.c \
295 $(srcdir)/generated/product_r16.c \
296 $(srcdir)/generated/product_c4.c \
297 $(srcdir)/generated/product_c8.c \
298 $(srcdir)/generated/product_c10.c \
299 $(srcdir)/generated/product_c16.c
300
301 i_matmul_c= \
302 $(srcdir)/generated/matmul_i1.c \
303 $(srcdir)/generated/matmul_i2.c \
304 $(srcdir)/generated/matmul_i4.c \
305 $(srcdir)/generated/matmul_i8.c \
306 $(srcdir)/generated/matmul_i16.c \
307 $(srcdir)/generated/matmul_r4.c \
308 $(srcdir)/generated/matmul_r8.c \
309 $(srcdir)/generated/matmul_r10.c \
310 $(srcdir)/generated/matmul_r16.c \
311 $(srcdir)/generated/matmul_c4.c \
312 $(srcdir)/generated/matmul_c8.c \
313 $(srcdir)/generated/matmul_c10.c \
314 $(srcdir)/generated/matmul_c16.c
315
316 i_matmull_c= \
317 $(srcdir)/generated/matmul_l4.c \
318 $(srcdir)/generated/matmul_l8.c \
319 $(srcdir)/generated/matmul_l16.c
320
321 i_transpose_c= \
322 $(srcdir)/generated/transpose_i4.c \
323 $(srcdir)/generated/transpose_i8.c \
324 $(srcdir)/generated/transpose_i16.c \
325 $(srcdir)/generated/transpose_r4.c \
326 $(srcdir)/generated/transpose_r8.c \
327 $(srcdir)/generated/transpose_r10.c \
328 $(srcdir)/generated/transpose_r16.c \
329 $(srcdir)/generated/transpose_c4.c \
330 $(srcdir)/generated/transpose_c8.c \
331 $(srcdir)/generated/transpose_c10.c \
332 $(srcdir)/generated/transpose_c16.c
333
334 i_shape_c= \
335 $(srcdir)/generated/shape_i4.c \
336 $(srcdir)/generated/shape_i8.c \
337 $(srcdir)/generated/shape_i16.c
338
339 i_reshape_c= \
340 $(srcdir)/generated/reshape_i4.c \
341 $(srcdir)/generated/reshape_i8.c \
342 $(srcdir)/generated/reshape_i16.c \
343 $(srcdir)/generated/reshape_r4.c \
344 $(srcdir)/generated/reshape_r8.c \
345 $(srcdir)/generated/reshape_r10.c \
346 $(srcdir)/generated/reshape_r16.c \
347 $(srcdir)/generated/reshape_c4.c \
348 $(srcdir)/generated/reshape_c8.c \
349 $(srcdir)/generated/reshape_c10.c \
350 $(srcdir)/generated/reshape_c16.c
351
352 i_eoshift1_c= \
353 $(srcdir)/generated/eoshift1_4.c \
354 $(srcdir)/generated/eoshift1_8.c \
355 $(srcdir)/generated/eoshift1_16.c
356
357 i_eoshift3_c= \
358 $(srcdir)/generated/eoshift3_4.c \
359 $(srcdir)/generated/eoshift3_8.c \
360 $(srcdir)/generated/eoshift3_16.c
361
362 i_cshift1_c= \
363 $(srcdir)/generated/cshift1_4.c \
364 $(srcdir)/generated/cshift1_8.c \
365 $(srcdir)/generated/cshift1_16.c
366
367 in_pack_c = \
368 $(srcdir)/generated/in_pack_i4.c \
369 $(srcdir)/generated/in_pack_i8.c \
370 $(srcdir)/generated/in_pack_i16.c \
371 $(srcdir)/generated/in_pack_c4.c \
372 $(srcdir)/generated/in_pack_c8.c \
373 $(srcdir)/generated/in_pack_c10.c \
374 $(srcdir)/generated/in_pack_c16.c
375
376 in_unpack_c = \
377 $(srcdir)/generated/in_unpack_i4.c \
378 $(srcdir)/generated/in_unpack_i8.c \
379 $(srcdir)/generated/in_unpack_i16.c \
380 $(srcdir)/generated/in_unpack_c4.c \
381 $(srcdir)/generated/in_unpack_c8.c \
382 $(srcdir)/generated/in_unpack_c10.c \
383 $(srcdir)/generated/in_unpack_c16.c
384
385 i_exponent_c = \
386 $(srcdir)/generated/exponent_r4.c \
387 $(srcdir)/generated/exponent_r8.c \
388 $(srcdir)/generated/exponent_r10.c \
389 $(srcdir)/generated/exponent_r16.c
390
391 i_spacing_c = \
392 $(srcdir)/generated/spacing_r4.c \
393 $(srcdir)/generated/spacing_r8.c \
394 $(srcdir)/generated/spacing_r10.c \
395 $(srcdir)/generated/spacing_r16.c
396
397 i_rrspacing_c = \
398 $(srcdir)/generated/rrspacing_r4.c \
399 $(srcdir)/generated/rrspacing_r8.c \
400 $(srcdir)/generated/rrspacing_r10.c \
401 $(srcdir)/generated/rrspacing_r16.c
402
403 i_fraction_c = \
404 $(srcdir)/generated/fraction_r4.c \
405 $(srcdir)/generated/fraction_r8.c \
406 $(srcdir)/generated/fraction_r10.c \
407 $(srcdir)/generated/fraction_r16.c
408
409 i_nearest_c = \
410 $(srcdir)/generated/nearest_r4.c \
411 $(srcdir)/generated/nearest_r8.c \
412 $(srcdir)/generated/nearest_r10.c \
413 $(srcdir)/generated/nearest_r16.c
414
415 i_set_exponent_c = \
416 $(srcdir)/generated/set_exponent_r4.c \
417 $(srcdir)/generated/set_exponent_r8.c \
418 $(srcdir)/generated/set_exponent_r10.c \
419 $(srcdir)/generated/set_exponent_r16.c
420
421 i_pow_c = \
422 $(srcdir)/generated/pow_i4_i4.c \
423 $(srcdir)/generated/pow_i8_i4.c \
424 $(srcdir)/generated/pow_i16_i4.c \
425 $(srcdir)/generated/pow_r4_i4.c \
426 $(srcdir)/generated/pow_r8_i4.c \
427 $(srcdir)/generated/pow_r10_i4.c \
428 $(srcdir)/generated/pow_r16_i4.c \
429 $(srcdir)/generated/pow_c4_i4.c \
430 $(srcdir)/generated/pow_c8_i4.c \
431 $(srcdir)/generated/pow_c10_i4.c \
432 $(srcdir)/generated/pow_c16_i4.c \
433 $(srcdir)/generated/pow_i4_i8.c \
434 $(srcdir)/generated/pow_i8_i8.c \
435 $(srcdir)/generated/pow_i16_i8.c \
436 $(srcdir)/generated/pow_r4_i8.c \
437 $(srcdir)/generated/pow_r8_i8.c \
438 $(srcdir)/generated/pow_r10_i8.c \
439 $(srcdir)/generated/pow_r16_i8.c \
440 $(srcdir)/generated/pow_c4_i8.c \
441 $(srcdir)/generated/pow_c8_i8.c \
442 $(srcdir)/generated/pow_c10_i8.c \
443 $(srcdir)/generated/pow_c16_i8.c \
444 $(srcdir)/generated/pow_i4_i16.c \
445 $(srcdir)/generated/pow_i8_i16.c \
446 $(srcdir)/generated/pow_i16_i16.c \
447 $(srcdir)/generated/pow_r4_i16.c \
448 $(srcdir)/generated/pow_r8_i16.c \
449 $(srcdir)/generated/pow_r10_i16.c \
450 $(srcdir)/generated/pow_r16_i16.c \
451 $(srcdir)/generated/pow_c4_i16.c \
452 $(srcdir)/generated/pow_c8_i16.c \
453 $(srcdir)/generated/pow_c10_i16.c \
454 $(srcdir)/generated/pow_c16_i16.c
455
456 m4_files= m4/iparm.m4 m4/ifunction.m4 m4/iforeach.m4 m4/all.m4 \
457     m4/any.m4 m4/count.m4 m4/maxloc0.m4 m4/maxloc1.m4 m4/maxval.m4 \
458     m4/minloc0.m4 m4/minloc1.m4 m4/minval.m4 m4/product.m4 m4/sum.m4 \
459     m4/matmul.m4 m4/matmull.m4 \
460     m4/ctrig.m4 m4/cexp.m4 m4/chyp.m4 m4/mtype.m4 \
461     m4/specific.m4 m4/specific2.m4 m4/head.m4 m4/shape.m4 m4/reshape.m4 \
462     m4/transpose.m4 m4/eoshift1.m4 m4/eoshift3.m4 m4/exponent.m4 \
463     m4/fraction.m4 m4/nearest.m4 m4/set_exponent.m4 m4/pow.m4 \
464     m4/misc_specifics.m4 m4/rrspacing.m4 m4/spacing.m4
465
466 gfor_built_src= $(i_all_c) $(i_any_c) $(i_count_c) $(i_maxloc0_c) \
467     $(i_maxloc1_c) $(i_maxval_c) $(i_minloc0_c) $(i_minloc1_c) $(i_minval_c) \
468     $(i_product_c) $(i_sum_c) \
469     $(i_matmul_c) $(i_matmull_c) $(i_transpose_c) $(i_shape_c) $(i_eoshift1_c) \
470     $(i_eoshift3_c) $(i_cshift1_c) $(i_reshape_c) $(in_pack_c) $(in_unpack_c) \
471     $(i_exponent_c) $(i_fraction_c) $(i_nearest_c) $(i_set_exponent_c) \
472     $(i_pow_c) $(i_rrspacing_c) $(i_spacing_c) \
473     selected_int_kind.inc selected_real_kind.inc kinds.h \
474     kinds.inc c99_protos.inc fpu-target.h
475
476 # Machine generated specifics
477 gfor_built_specific_src= \
478 $(srcdir)/generated/_abs_c4.F90 \
479 $(srcdir)/generated/_abs_c8.F90 \
480 $(srcdir)/generated/_abs_c10.F90 \
481 $(srcdir)/generated/_abs_c16.F90 \
482 $(srcdir)/generated/_abs_i4.F90 \
483 $(srcdir)/generated/_abs_i8.F90 \
484 $(srcdir)/generated/_abs_i16.F90 \
485 $(srcdir)/generated/_abs_r4.F90 \
486 $(srcdir)/generated/_abs_r8.F90 \
487 $(srcdir)/generated/_abs_r10.F90 \
488 $(srcdir)/generated/_abs_r16.F90 \
489 $(srcdir)/generated/_aimag_c4.F90 \
490 $(srcdir)/generated/_aimag_c8.F90 \
491 $(srcdir)/generated/_aimag_c10.F90 \
492 $(srcdir)/generated/_aimag_c16.F90 \
493 $(srcdir)/generated/_exp_r4.F90 \
494 $(srcdir)/generated/_exp_r8.F90 \
495 $(srcdir)/generated/_exp_r10.F90 \
496 $(srcdir)/generated/_exp_r16.F90 \
497 $(srcdir)/generated/_exp_c4.F90 \
498 $(srcdir)/generated/_exp_c8.F90 \
499 $(srcdir)/generated/_exp_c10.F90 \
500 $(srcdir)/generated/_exp_c16.F90 \
501 $(srcdir)/generated/_log_r4.F90 \
502 $(srcdir)/generated/_log_r8.F90 \
503 $(srcdir)/generated/_log_r10.F90 \
504 $(srcdir)/generated/_log_r16.F90 \
505 $(srcdir)/generated/_log_c4.F90 \
506 $(srcdir)/generated/_log_c8.F90 \
507 $(srcdir)/generated/_log_c10.F90 \
508 $(srcdir)/generated/_log_c16.F90 \
509 $(srcdir)/generated/_log10_r4.F90 \
510 $(srcdir)/generated/_log10_r8.F90 \
511 $(srcdir)/generated/_log10_r10.F90 \
512 $(srcdir)/generated/_log10_r16.F90 \
513 $(srcdir)/generated/_sqrt_r4.F90 \
514 $(srcdir)/generated/_sqrt_r8.F90 \
515 $(srcdir)/generated/_sqrt_r10.F90 \
516 $(srcdir)/generated/_sqrt_r16.F90 \
517 $(srcdir)/generated/_sqrt_c4.F90 \
518 $(srcdir)/generated/_sqrt_c8.F90 \
519 $(srcdir)/generated/_sqrt_c10.F90 \
520 $(srcdir)/generated/_sqrt_c16.F90 \
521 $(srcdir)/generated/_asin_r4.F90 \
522 $(srcdir)/generated/_asin_r8.F90 \
523 $(srcdir)/generated/_asin_r10.F90 \
524 $(srcdir)/generated/_asin_r16.F90 \
525 $(srcdir)/generated/_asinh_r4.F90 \
526 $(srcdir)/generated/_asinh_r8.F90 \
527 $(srcdir)/generated/_asinh_r10.F90 \
528 $(srcdir)/generated/_asinh_r16.F90 \
529 $(srcdir)/generated/_acos_r4.F90 \
530 $(srcdir)/generated/_acos_r8.F90 \
531 $(srcdir)/generated/_acos_r10.F90 \
532 $(srcdir)/generated/_acos_r16.F90 \
533 $(srcdir)/generated/_acosh_r4.F90 \
534 $(srcdir)/generated/_acosh_r8.F90 \
535 $(srcdir)/generated/_acosh_r10.F90 \
536 $(srcdir)/generated/_acosh_r16.F90 \
537 $(srcdir)/generated/_atan_r4.F90 \
538 $(srcdir)/generated/_atan_r8.F90 \
539 $(srcdir)/generated/_atan_r10.F90 \
540 $(srcdir)/generated/_atan_r16.F90 \
541 $(srcdir)/generated/_atanh_r4.F90 \
542 $(srcdir)/generated/_atanh_r8.F90 \
543 $(srcdir)/generated/_atanh_r10.F90 \
544 $(srcdir)/generated/_atanh_r16.F90 \
545 $(srcdir)/generated/_sin_r4.F90 \
546 $(srcdir)/generated/_sin_r8.F90 \
547 $(srcdir)/generated/_sin_r10.F90 \
548 $(srcdir)/generated/_sin_r16.F90 \
549 $(srcdir)/generated/_sin_c4.F90 \
550 $(srcdir)/generated/_sin_c8.F90 \
551 $(srcdir)/generated/_sin_c10.F90 \
552 $(srcdir)/generated/_sin_c16.F90 \
553 $(srcdir)/generated/_cos_r4.F90 \
554 $(srcdir)/generated/_cos_r8.F90 \
555 $(srcdir)/generated/_cos_r10.F90 \
556 $(srcdir)/generated/_cos_r16.F90 \
557 $(srcdir)/generated/_cos_c4.F90 \
558 $(srcdir)/generated/_cos_c8.F90 \
559 $(srcdir)/generated/_cos_c10.F90 \
560 $(srcdir)/generated/_cos_c16.F90 \
561 $(srcdir)/generated/_tan_r4.F90 \
562 $(srcdir)/generated/_tan_r8.F90 \
563 $(srcdir)/generated/_tan_r10.F90 \
564 $(srcdir)/generated/_tan_r16.F90 \
565 $(srcdir)/generated/_sinh_r4.F90 \
566 $(srcdir)/generated/_sinh_r8.F90 \
567 $(srcdir)/generated/_sinh_r10.F90 \
568 $(srcdir)/generated/_sinh_r16.F90 \
569 $(srcdir)/generated/_cosh_r4.F90 \
570 $(srcdir)/generated/_cosh_r8.F90 \
571 $(srcdir)/generated/_cosh_r10.F90 \
572 $(srcdir)/generated/_cosh_r16.F90 \
573 $(srcdir)/generated/_tanh_r4.F90 \
574 $(srcdir)/generated/_tanh_r8.F90 \
575 $(srcdir)/generated/_tanh_r10.F90 \
576 $(srcdir)/generated/_tanh_r16.F90 \
577 $(srcdir)/generated/_conjg_c4.F90 \
578 $(srcdir)/generated/_conjg_c8.F90 \
579 $(srcdir)/generated/_conjg_c10.F90 \
580 $(srcdir)/generated/_conjg_c16.F90 \
581 $(srcdir)/generated/_aint_r4.F90 \
582 $(srcdir)/generated/_aint_r8.F90 \
583 $(srcdir)/generated/_aint_r10.F90 \
584 $(srcdir)/generated/_aint_r16.F90 \
585 $(srcdir)/generated/_anint_r4.F90 \
586 $(srcdir)/generated/_anint_r8.F90 \
587 $(srcdir)/generated/_anint_r10.F90 \
588 $(srcdir)/generated/_anint_r16.F90
589
590 gfor_built_specific2_src= \
591 $(srcdir)/generated/_sign_i4.F90 \
592 $(srcdir)/generated/_sign_i8.F90 \
593 $(srcdir)/generated/_sign_i16.F90 \
594 $(srcdir)/generated/_sign_r4.F90 \
595 $(srcdir)/generated/_sign_r8.F90 \
596 $(srcdir)/generated/_sign_r10.F90 \
597 $(srcdir)/generated/_sign_r16.F90 \
598 $(srcdir)/generated/_dim_i4.F90 \
599 $(srcdir)/generated/_dim_i8.F90 \
600 $(srcdir)/generated/_dim_i16.F90 \
601 $(srcdir)/generated/_dim_r4.F90 \
602 $(srcdir)/generated/_dim_r8.F90 \
603 $(srcdir)/generated/_dim_r10.F90 \
604 $(srcdir)/generated/_dim_r16.F90 \
605 $(srcdir)/generated/_atan2_r4.F90 \
606 $(srcdir)/generated/_atan2_r8.F90 \
607 $(srcdir)/generated/_atan2_r10.F90 \
608 $(srcdir)/generated/_atan2_r16.F90 \
609 $(srcdir)/generated/_mod_i4.F90 \
610 $(srcdir)/generated/_mod_i8.F90 \
611 $(srcdir)/generated/_mod_i16.F90 \
612 $(srcdir)/generated/_mod_r4.F90 \
613 $(srcdir)/generated/_mod_r8.F90 \
614 $(srcdir)/generated/_mod_r10.F90 \
615 $(srcdir)/generated/_mod_r16.F90
616
617 gfor_misc_specifics = $(srcdir)/generated/misc_specifics.F90
618
619 gfor_specific_src= \
620 $(gfor_built_specific_src) \
621 $(gfor_built_specific2_src) \
622 $(gfor_misc_specifics) \
623 intrinsics/dprod_r8.f90 \
624 intrinsics/f2c_specifics.F90
625
626 # No install-html or install-pdf support in automake yet
627 .PHONY: install-html install-pdf
628 install-html:
629 install-pdf:
630
631 # Turn on vectorization and loop unrolling for matmul.
632 $(patsubst %.c,%.lo,$(notdir $(i_matmul_c))): AM_CFLAGS += -ftree-vectorize -funroll-loops
633 # Logical matmul doesn't vectorize.
634 $(patsubst %.c,%.lo,$(notdir $(i_matmull_c))): AM_CFLAGS += -funroll-loops
635
636 # Add the -fallow-leading-underscore option when needed
637 $(patsubst %.F90,%.lo,$(patsubst %.f90,%.lo,$(notdir $(gfor_specific_src)))): AM_FCFLAGS += -fallow-leading-underscore
638 selected_real_kind.lo selected_int_kind.lo: AM_FCFLAGS += -fallow-leading-underscore
639
640 BUILT_SOURCES=$(gfor_built_src) $(gfor_built_specific_src) \
641     $(gfor_built_specific2_src) $(gfor_misc_specifics)
642 libgfortran_la_SOURCES = $(gfor_src) $(gfor_built_src) $(gfor_io_src) \
643     $(gfor_helper_src) $(gfor_io_headers) $(gfor_specific_src)
644
645 I_M4_DEPS=m4/iparm.m4
646 I_M4_DEPS0=$(I_M4_DEPS) m4/iforeach.m4
647 I_M4_DEPS1=$(I_M4_DEPS) m4/ifunction.m4
648
649 kinds.h: $(srcdir)/mk-kinds-h.sh
650         $(SHELL) $(srcdir)/mk-kinds-h.sh '$(FCCOMPILE)' > $@ || rm $@
651
652 kinds.inc: kinds.h
653         grep '^#' < kinds.h > $@
654
655 c99_protos.inc: $(srcdir)/c99_protos.h
656         grep '^#' < $(srcdir)/c99_protos.h > $@
657
658 selected_int_kind.inc: $(srcdir)/mk-sik-inc.sh
659         $(SHELL) $(srcdir)/mk-sik-inc.sh '$(FCCOMPILE)' > $@ || rm $@
660
661 selected_real_kind.inc: $(srcdir)/mk-srk-inc.sh
662         $(SHELL) $(srcdir)/mk-srk-inc.sh '$(FCCOMPILE)' > $@ || rm $@
663
664 fpu-target.h: $(srcdir)/$(FPU_HOST_HEADER)
665         cp $(srcdir)/$(FPU_HOST_HEADER) $@
666
667 ## A 'normal' build shouldn't need to regenerate these
668 ## so we only include them in maintainer mode
669
670 if MAINTAINER_MODE
671 $(i_all_c): m4/all.m4 $(I_M4_DEPS1)
672         $(M4) -Dfile=$@ -I$(srcdir)/m4 all.m4 > $@
673
674 $(i_any_c): m4/any.m4 $(I_M4_DEPS1)
675         $(M4) -Dfile=$@ -I$(srcdir)/m4 any.m4 > $@
676
677 $(i_count_c): m4/count.m4 $(I_M4_DEPS1)
678         $(M4) -Dfile=$@ -I$(srcdir)/m4 count.m4 > $@
679
680 $(i_maxloc0_c): m4/maxloc0.m4 $(I_M4_DEPS0)
681         $(M4) -Dfile=$@ -I$(srcdir)/m4 maxloc0.m4 > $@
682
683 $(i_maxloc1_c): m4/maxloc1.m4 $(I_M4_DEPS1)
684         $(M4) -Dfile=$@ -I$(srcdir)/m4 maxloc1.m4 > $@
685
686 $(i_maxval_c): m4/maxval.m4 $(I_M4_DEPS1)
687         $(M4) -Dfile=$@ -I$(srcdir)/m4 maxval.m4 > $@
688
689 $(i_minloc0_c): m4/minloc0.m4 $(I_M4_DEPS0)
690         $(M4) -Dfile=$@ -I$(srcdir)/m4 minloc0.m4 > $@
691
692 $(i_minloc1_c): m4/minloc1.m4 $(I_M4_DEPS1)
693         $(M4) -Dfile=$@ -I$(srcdir)/m4 minloc1.m4 > $@
694
695 $(i_minval_c): m4/minval.m4 $(I_M4_DEPS1)
696         $(M4) -Dfile=$@ -I$(srcdir)/m4 minval.m4 > $@
697
698 $(i_product_c): m4/product.m4 $(I_M4_DEPS1)
699         $(M4) -Dfile=$@ -I$(srcdir)/m4 product.m4 > $@
700
701 $(i_sum_c): m4/sum.m4 $(I_M4_DEPS1)
702         $(M4) -Dfile=$@ -I$(srcdir)/m4 sum.m4 > $@
703
704 $(i_matmul_c): m4/matmul.m4 $(I_M4_DEPS)
705         $(M4) -Dfile=$@ -I$(srcdir)/m4 matmul.m4 > $@
706
707 $(i_matmull_c): m4/matmull.m4 $(I_M4_DEPS)
708         $(M4) -Dfile=$@ -I$(srcdir)/m4 matmull.m4 > $@
709
710 $(i_transpose_c): m4/transpose.m4 $(I_M4_DEPS)
711         $(M4) -Dfile=$@ -I$(srcdir)/m4 transpose.m4 > $@
712
713 $(i_shape_c): m4/shape.m4 $(I_M4_DEPS)
714         $(M4) -Dfile=$@ -I$(srcdir)/m4 shape.m4 > $@
715
716 $(i_reshape_c): m4/reshape.m4 $(I_M4_DEPS)
717         $(M4) -Dfile=$@ -I$(srcdir)/m4 reshape.m4 > $@
718
719 $(i_eoshift1_c): m4/eoshift1.m4 $(I_M4_DEPS)
720         $(M4) -Dfile=$@ -I$(srcdir)/m4 eoshift1.m4 > $@
721
722 $(i_eoshift3_c): m4/eoshift3.m4 $(I_M4_DEPS)
723         $(M4) -Dfile=$@ -I$(srcdir)/m4 eoshift3.m4 > $@
724
725 $(i_cshift1_c): m4/cshift1.m4 $(I_M4_DEPS)
726         $(M4) -Dfile=$@ -I$(srcdir)/m4 cshift1.m4 > $@
727
728 $(in_pack_c): m4/in_pack.m4 $(I_M4_DEPS)
729         $(M4) -Dfile=$@ -I$(srcdir)/m4 in_pack.m4 > $@
730
731 $(in_unpack_c): m4/in_unpack.m4 $(I_M4_DEPS)
732         $(M4) -Dfile=$@ -I$(srcdir)/m4 in_unpack.m4 > $@
733
734 $(i_exponent_c): m4/exponent.m4 m4/mtype.m4
735         $(M4) -Dfile=$@ -I$(srcdir)/m4 exponent.m4 > $@
736
737 $(i_rrspacing_c): m4/rrspacing.m4 m4/mtype.m4
738         $(M4) -Dfile=$@ -I$(srcdir)/m4 rrspacing.m4 > $@
739
740 $(i_spacing_c): m4/spacing.m4 m4/mtype.m4
741         $(M4) -Dfile=$@ -I$(srcdir)/m4 spacing.m4 > $@
742
743 $(i_fraction_c): m4/fraction.m4 m4/mtype.m4
744         $(M4) -Dfile=$@ -I$(srcdir)/m4 fraction.m4 > $@
745
746 $(i_nearest_c): m4/nearest.m4 m4/mtype.m4
747         $(M4) -Dfile=$@ -I$(srcdir)/m4 nearest.m4 > $@
748
749 $(i_set_exponent_c): m4/set_exponent.m4 m4/mtype.m4
750         $(M4) -Dfile=$@ -I$(srcdir)/m4 set_exponent.m4 > $@
751
752 $(i_pow_c): m4/pow.m4 $(I_M4_DEPS)
753         $(M4) -Dfile=$@ -I$(srcdir)/m4 pow.m4 > $@
754
755 $(gfor_built_specific_src): m4/specific.m4 m4/head.m4
756         $(M4) -Dfile=$@ -I$(srcdir)/m4 specific.m4 > $@
757
758 $(gfor_built_specific2_src): m4/specific2.m4 m4/head.m4
759         $(M4) -Dfile=$@ -I$(srcdir)/m4 specific2.m4 > $@
760
761 $(gfor_misc_specifics): m4/misc_specifics.m4 m4/head.m4
762         $(M4) -Dfile=$@ -I$(srcdir)/m4 misc_specifics.m4 > $@
763 ## end of maintainer mode only rules
764 endif
765
766 EXTRA_DIST = $(m4_files)