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