1 ## Process this file with automake to produce Makefile.in
4 ACLOCAL_AMFLAGS = -I ../config
6 toolexeclib_LTLIBRARIES = libgfortran.la libgfortranbegin.la
8 libgfortran_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` -lm $(extra_ldflags_libgfortran)
10 ## This should really go in the compiler lib dir, not the system lib dir.
11 libgfortranbegin_la_SOURCES = fmain.c
12 libgfortranbegin_la_LDFLAGS = -static
14 ## io.h conflicts with some a system header on some platforms, so
16 AM_CPPFLAGS = -iquote$(srcdir)/io
18 libgfortranincludedir = $(includedir)/gforio
40 intrinsics/associated.c \
44 intrinsics/c99_functions.c \
46 intrinsics/cpu_time.c \
47 intrinsics/cshift0.c \
49 intrinsics/date_and_time.c \
52 intrinsics/eoshift0.c \
53 intrinsics/eoshift2.c \
70 intrinsics/pack_generic.c \
74 intrinsics/spread_generic.c \
75 intrinsics/string_intrinsics.c \
80 intrinsics/reshape_generic.c \
81 intrinsics/reshape_packed.c \
82 intrinsics/selected_int_kind.f90 \
83 intrinsics/selected_real_kind.f90 \
86 intrinsics/system_clock.c \
88 intrinsics/transpose_generic.c \
92 intrinsics/unpack_generic.c \
93 runtime/in_pack_generic.c \
94 runtime/in_unpack_generic.c \
98 runtime/compile_options.c \
119 generated/count_4_l4.c \
120 generated/count_8_l4.c \
121 generated/count_4_l8.c \
122 generated/count_8_l8.c
125 generated/maxloc0_4_i4.c \
126 generated/maxloc0_8_i4.c \
127 generated/maxloc0_4_i8.c \
128 generated/maxloc0_8_i8.c \
129 generated/maxloc0_4_r4.c \
130 generated/maxloc0_8_r4.c \
131 generated/maxloc0_4_r8.c \
132 generated/maxloc0_8_r8.c
135 generated/maxloc1_4_i4.c \
136 generated/maxloc1_8_i4.c \
137 generated/maxloc1_4_i8.c \
138 generated/maxloc1_8_i8.c \
139 generated/maxloc1_4_r4.c \
140 generated/maxloc1_8_r4.c \
141 generated/maxloc1_4_r8.c \
142 generated/maxloc1_8_r8.c
145 generated/maxval_i4.c \
146 generated/maxval_i8.c \
147 generated/maxval_r4.c \
148 generated/maxval_r8.c
151 generated/minloc0_4_i4.c \
152 generated/minloc0_8_i4.c \
153 generated/minloc0_4_i8.c \
154 generated/minloc0_8_i8.c \
155 generated/minloc0_4_r4.c \
156 generated/minloc0_8_r4.c \
157 generated/minloc0_4_r8.c \
158 generated/minloc0_8_r8.c
161 generated/minloc1_4_i4.c \
162 generated/minloc1_8_i4.c \
163 generated/minloc1_4_i8.c \
164 generated/minloc1_8_i8.c \
165 generated/minloc1_4_r4.c \
166 generated/minloc1_8_r4.c \
167 generated/minloc1_4_r8.c \
168 generated/minloc1_8_r8.c
171 generated/minval_i4.c \
172 generated/minval_i8.c \
173 generated/minval_r4.c \
174 generated/minval_r8.c
185 generated/product_i4.c \
186 generated/product_i8.c \
187 generated/product_r4.c \
188 generated/product_r8.c \
189 generated/product_c4.c \
190 generated/product_c8.c
193 generated/dotprod_i4.c \
194 generated/dotprod_i8.c \
195 generated/dotprod_r4.c \
196 generated/dotprod_r8.c
199 generated/dotprod_l4.c \
200 generated/dotprod_l8.c
203 generated/dotprod_c4.c \
204 generated/dotprod_c8.c
207 generated/matmul_i4.c \
208 generated/matmul_i8.c \
209 generated/matmul_r4.c \
210 generated/matmul_r8.c \
211 generated/matmul_c4.c \
212 generated/matmul_c8.c
215 generated/matmul_l4.c \
216 generated/matmul_l8.c
219 generated/transpose_i4.c \
220 generated/transpose_i8.c \
221 generated/transpose_c4.c \
222 generated/transpose_c8.c
225 generated/shape_i4.c \
229 generated/reshape_i4.c \
230 generated/reshape_i8.c \
231 generated/reshape_c4.c \
232 generated/reshape_c8.c
235 generated/eoshift1_4.c \
236 generated/eoshift1_8.c
239 generated/eoshift3_4.c \
240 generated/eoshift3_8.c
243 generated/cshift1_4.c \
244 generated/cshift1_8.c
247 generated/in_pack_i4.c \
248 generated/in_pack_i8.c \
249 generated/in_pack_c4.c \
250 generated/in_pack_c8.c
253 generated/in_unpack_i4.c \
254 generated/in_unpack_i8.c \
255 generated/in_unpack_c4.c \
256 generated/in_unpack_c8.c
259 generated/exponent_r4.c \
260 generated/exponent_r8.c
263 generated/fraction_r4.c \
264 generated/fraction_r8.c
267 generated/nearest_r4.c \
268 generated/nearest_r8.c
271 generated/set_exponent_r4.c \
272 generated/set_exponent_r8.c
275 generated/pow_i4_i4.c \
276 generated/pow_i8_i4.c \
277 generated/pow_r4_i4.c \
278 generated/pow_r8_i4.c \
279 generated/pow_c4_i4.c \
280 generated/pow_c8_i4.c \
281 generated/pow_i4_i8.c \
282 generated/pow_i8_i8.c \
283 generated/pow_r4_i8.c \
284 generated/pow_r8_i8.c \
285 generated/pow_c4_i8.c \
286 generated/pow_c8_i8.c
288 m4_files= m4/iparm.m4 m4/ifunction.m4 m4/iforeach.m4 m4/all.m4 \
289 m4/any.m4 m4/count.m4 m4/maxloc0.m4 m4/maxloc1.m4 m4/maxval.m4 \
290 m4/minloc0.m4 m4/minloc1.m4 m4/minval.m4 m4/product.m4 m4/sum.m4 \
291 m4/dotprod.m4 m4/dotprodl.m4 m4/dotprodc.m4 m4/matmul.m4 m4/matmull.m4 \
292 m4/ctrig.m4 m4/cexp.m4 m4/chyp.m4 m4/mtype.m4 \
293 m4/specific.m4 m4/specific2.m4 m4/head.m4 m4/shape.m4 m4/reshape.m4 \
294 m4/transpose.m4 m4/eoshift1.m4 m4/eoshift3.m4 m4/exponent.m4 \
295 m4/fraction.m4 m4/nearest.m4 m4/set_exponent.m4 m4/pow.m4
297 gfor_built_src= $(i_all_c) $(i_any_c) $(i_count_c) $(i_maxloc0_c) \
298 $(i_maxloc1_c) $(i_maxval_c) $(i_minloc0_c) $(i_minloc1_c) $(i_minval_c) \
299 $(i_product_c) $(i_sum_c) $(i_dotprod_c) $(i_dotprodl_c) $(i_dotprodc_c) \
300 $(i_matmul_c) $(i_matmull_c) $(i_transpose_c) $(i_shape_c) $(i_eoshift1_c) \
301 $(i_eoshift3_c) $(i_cshift1_c) $(i_reshape_c) $(in_pack_c) $(in_unpack_c) \
302 $(i_exponent_c) $(i_fraction_c) $(i_nearest_c) $(i_set_exponent_c) \
304 selected_int_kind.inc selected_real_kind.inc
306 # We only use these if libm doesn't contain complex math functions.
309 generated/trig_c4.c \
318 gfor_math_trig_obj= \
328 # Machine generated specifics
329 gfor_built_specific_src= \
330 generated/_abs_c4.f90 \
331 generated/_abs_c8.f90 \
332 generated/_abs_i4.f90 \
333 generated/_abs_i8.f90 \
334 generated/_abs_r4.f90 \
335 generated/_abs_r8.f90 \
336 generated/_exp_r4.f90 \
337 generated/_exp_r8.f90 \
338 generated/_exp_c4.f90 \
339 generated/_exp_c8.f90 \
340 generated/_log_r4.f90 \
341 generated/_log_r8.f90 \
342 generated/_log_c4.f90 \
343 generated/_log_c8.f90 \
344 generated/_log10_r4.f90 \
345 generated/_log10_r8.f90 \
346 generated/_sqrt_r4.f90 \
347 generated/_sqrt_r8.f90 \
348 generated/_sqrt_c4.f90 \
349 generated/_sqrt_c8.f90 \
350 generated/_asin_r4.f90 \
351 generated/_asin_r8.f90 \
352 generated/_acos_r4.f90 \
353 generated/_acos_r8.f90 \
354 generated/_atan_r4.f90 \
355 generated/_atan_r8.f90 \
356 generated/_sin_r4.f90 \
357 generated/_sin_r8.f90 \
358 generated/_sin_c4.f90 \
359 generated/_sin_c8.f90 \
360 generated/_cos_r4.f90 \
361 generated/_cos_r8.f90 \
362 generated/_cos_c4.f90 \
363 generated/_cos_c8.f90 \
364 generated/_tan_r4.f90 \
365 generated/_tan_r8.f90 \
366 generated/_sinh_r4.f90 \
367 generated/_sinh_r8.f90 \
368 generated/_cosh_r4.f90 \
369 generated/_cosh_r8.f90 \
370 generated/_tanh_r4.f90 \
371 generated/_tanh_r8.f90 \
372 generated/_conjg_c4.f90 \
373 generated/_conjg_c8.f90 \
374 generated/_aint_r4.f90 \
375 generated/_aint_r8.f90 \
376 generated/_anint_r4.f90 \
377 generated/_anint_r8.f90
379 gfor_built_specific2_src= \
380 generated/_sign_i4.f90 \
381 generated/_sign_i8.f90 \
382 generated/_sign_r4.f90 \
383 generated/_sign_r8.f90 \
384 generated/_dim_i4.f90 \
385 generated/_dim_i8.f90 \
386 generated/_dim_r4.f90 \
387 generated/_dim_r8.f90 \
388 generated/_atan2_r4.f90 \
389 generated/_atan2_r8.f90 \
390 generated/_mod_i4.f90 \
391 generated/_mod_i8.f90 \
392 generated/_mod_r4.f90 \
393 generated/_mod_r8.f90
394 #specific intrinsics requiring manal code
396 intrinsics/_aimag.c \
401 $(gfor_built_specific_src) \
402 $(gfor_built_specific2_src) \
403 intrinsics/dprod_r8.f90 \
404 intrinsics/f2c_specifics.F90
406 gfor_cmath_src= $(gfor_math_trig_c) $(gfor_math_exp_c) $(gfor_math_hyp_c)
407 gfor_cmath_obj= $(gfor_math_trig_obj) $(gfor_math_exp_obj) \
410 BUILT_SOURCES=$(gfor_built_src) $(gfor_cmath_src) $(gfor_built_specific_src) \
411 $(gfor_built_specific2_src)
412 libgfortran_la_SOURCES = $(gfor_src) $(gfor_built_src) $(gfor_io_src) \
413 $(gfor_helper_src) $(gfor_io_headers) $(gfor_specific_src)
415 EXTRA_libgfortran_la_SOURCES = $(gfor_cmath_src)
417 libgfortran_la_LIBADD = @MATH_OBJ@
418 libgfortran_la_DEPENDENCIES = @MATH_OBJ@
420 I_M4_DEPS=m4/iparm.m4
421 I_M4_DEPS0=$(I_M4_DEPS) m4/iforeach.m4
422 I_M4_DEPS1=$(I_M4_DEPS) m4/ifunction.m4
424 selected_int_kind.inc: $(srcdir)/mk-sik-inc.sh
425 $(SHELL) $(srcdir)/mk-sik-inc.sh '$(FCCOMPILE)' > $@
427 selected_real_kind.inc: $(srcdir)/mk-srk-inc.sh
428 $(SHELL) $(srcdir)/mk-srk-inc.sh '$(FCCOMPILE)' > $@
430 ## A 'normal' build shouldn't need to regenerate these
431 ## so we only include them in maintainer mode
434 $(i_all_c): m4/all.m4 $(I_M4_DEPS1)
435 m4 -Dfile=$@ -I$(srcdir)/m4 all.m4 > $(srcdir)/$@
437 $(i_any_c): m4/any.m4 $(I_M4_DEPS1)
438 m4 -Dfile=$@ -I$(srcdir)/m4 any.m4> $(srcdir)/$@
440 $(i_count_c): m4/count.m4 $(I_M4_DEPS1)
441 m4 -Dfile=$@ -I$(srcdir)/m4 count.m4> $(srcdir)/$@
443 $(i_maxloc0_c): m4/maxloc0.m4 $(I_M4_DEPS0)
444 m4 -Dfile=$@ -I$(srcdir)/m4 maxloc0.m4 > $(srcdir)/$@
446 $(i_maxloc1_c): m4/maxloc1.m4 $(I_M4_DEPS1)
447 m4 -Dfile=$@ -I$(srcdir)/m4 maxloc1.m4 > $(srcdir)/$@
449 $(i_maxval_c): m4/maxval.m4 $(I_M4_DEPS1)
450 m4 -Dfile=$@ -I$(srcdir)/m4 maxval.m4 > $(srcdir)/$@
452 $(i_minloc0_c): m4/minloc0.m4 $(I_M4_DEPS0)
453 m4 -Dfile=$@ -I$(srcdir)/m4 minloc0.m4 > $(srcdir)/$@
455 $(i_minloc1_c): m4/minloc1.m4 $(I_M4_DEPS1)
456 m4 -Dfile=$@ -I$(srcdir)/m4 minloc1.m4 > $(srcdir)/$@
458 $(i_minval_c): m4/minval.m4 $(I_M4_DEPS1)
459 m4 -Dfile=$@ -I$(srcdir)/m4 minval.m4 > $(srcdir)/$@
461 $(i_product_c): m4/product.m4 $(I_M4_DEPS1)
462 m4 -Dfile=$@ -I$(srcdir)/m4 product.m4 > $(srcdir)/$@
464 $(i_sum_c): m4/sum.m4 $(I_M4_DEPS1)
465 m4 -Dfile=$@ -I$(srcdir)/m4 sum.m4 > $(srcdir)/$@
467 $(i_dotprod_c): m4/dotprod.m4 $(I_M4_DEPS)
468 m4 -Dfile=$@ -I$(srcdir)/m4 dotprod.m4 > $(srcdir)/$@
470 $(i_dotprodl_c): m4/dotprodl.m4 $(I_M4_DEPS)
471 m4 -Dfile=$@ -I$(srcdir)/m4 dotprodl.m4 > $(srcdir)/$@
473 $(i_dotprodc_c): m4/dotprodc.m4 $(I_M4_DEPS)
474 m4 -Dfile=$@ -I$(srcdir)/m4 dotprodc.m4 > $(srcdir)/$@
476 $(i_matmul_c): m4/matmul.m4 $(I_M4_DEPS)
477 m4 -Dfile=$@ -I$(srcdir)/m4 matmul.m4 > $(srcdir)/$@
479 $(i_matmull_c): m4/matmull.m4 $(I_M4_DEPS)
480 m4 -Dfile=$@ -I$(srcdir)/m4 matmull.m4 > $(srcdir)/$@
482 $(i_transpose_c): m4/transpose.m4 $(I_M4_DEPS)
483 m4 -Dfile=$@ -I$(srcdir)/m4 transpose.m4 > $(srcdir)/$@
485 $(i_shape_c): m4/shape.m4 $(I_M4_DEPS)
486 m4 -Dfile=$@ -I$(srcdir)/m4 shape.m4 > $(srcdir)/$@
488 $(i_reshape_c): m4/reshape.m4 $(I_M4_DEPS)
489 m4 -Dfile=$@ -I$(srcdir)/m4 reshape.m4 > $(srcdir)/$@
491 $(i_eoshift1_c): m4/eoshift1.m4 $(I_M4_DEPS)
492 m4 -Dfile=$@ -I$(srcdir)/m4 eoshift1.m4 > $(srcdir)/$@
494 $(i_eoshift3_c): m4/eoshift3.m4 $(I_M4_DEPS)
495 m4 -Dfile=$@ -I$(srcdir)/m4 eoshift3.m4 > $(srcdir)/$@
497 $(i_cshift1_c): m4/cshift1.m4 $(I_M4_DEPS)
498 m4 -Dfile=$@ -I$(srcdir)/m4 cshift1.m4 > $(srcdir)/$@
500 $(in_pack_c): m4/in_pack.m4 $(I_M4_DEPS)
501 m4 -Dfile=$@ -I$(srcdir)/m4 in_pack.m4 > $(srcdir)/$@
503 $(in_unpack_c): m4/in_unpack.m4 $(I_M4_DEPS)
504 m4 -Dfile=$@ -I$(srcdir)/m4 in_unpack.m4 > $(srcdir)/$@
506 $(i_exponent_c): m4/exponent.m4 m4/mtype.m4
507 m4 -Dfile=$@ -I$(srcdir)/m4 exponent.m4 > $(srcdir)/$@
509 $(i_fraction_c): m4/fraction.m4 m4/mtype.m4
510 m4 -Dfile=$@ -I$(srcdir)/m4 fraction.m4 > $(srcdir)/$@
512 $(i_nearest_c): m4/nearest.m4 m4/mtype.m4
513 m4 -Dfile=$@ -I$(srcdir)/m4 nearest.m4 > $(srcdir)/$@
515 $(i_set_exponent_c): m4/set_exponent.m4 m4/mtype.m4
516 m4 -Dfile=$@ -I$(srcdir)/m4 set_exponent.m4 > $(srcdir)/$@
518 $(i_pow_c): m4/pow.m4 $(I_M4_DEPS)
519 m4 -Dfile=$@ -I$(srcdir)/m4 pow.m4 > $(srcdir)/$@
521 $(gfor_math_trig_c): m4/ctrig.m4 m4/mtype.m4
522 m4 -Dfile=$@ -I$(srcdir)/m4 ctrig.m4 > $(srcdir)/$@
524 $(gfor_math_exp_c): m4/cexp.m4 m4/mtype.m4
525 m4 -Dfile=$@ -I$(srcdir)/m4 cexp.m4 > $(srcdir)/$@
527 $(gfor_math_hyp_c): m4/chyp.m4 m4/mtype.m4
528 m4 -Dfile=$@ -I$(srcdir)/m4 chyp.m4 > $(srcdir)/$@
530 $(gfor_built_specific_src): m4/specific.m4 m4/head.m4
531 m4 -Dfile=$@ -I$(srcdir)/m4 specific.m4 > $(srcdir)/$@
533 $(gfor_built_specific2_src): m4/specific2.m4 m4/head.m4
534 m4 -Dfile=$@ -I$(srcdir)/m4 specific2.m4 > $(srcdir)/$@
535 ## end of maintainer mode only rules
538 EXTRA_DIST = $(m4_files)