1 ## Process this file with automake to produce Makefile.in
4 ACLOCAL_AMFLAGS = -I ../config
6 ## May be used by toolexeclibdir.
7 gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
9 toolexeclib_LTLIBRARIES = libgfortran.la libgfortranbegin.la
11 libgfortran_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` -lm $(extra_ldflags_libgfortran)
13 ## This should really go in the compiler lib dir, not the system lib dir.
14 libgfortranbegin_la_SOURCES = fmain.c
15 libgfortranbegin_la_LDFLAGS = -static
17 ## io.h conflicts with some a system header on some platforms, so
19 AM_CPPFLAGS = -iquote$(srcdir)/io
21 libgfortranincludedir = $(includedir)/gforio
43 intrinsics/associated.c \
47 intrinsics/c99_functions.c \
49 intrinsics/cpu_time.c \
50 intrinsics/cshift0.c \
51 intrinsics/date_and_time.c \
54 intrinsics/eoshift0.c \
55 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 \
91 intrinsics/unpack_generic.c \
92 runtime/in_pack_generic.c \
93 runtime/in_unpack_generic.c \
117 generated/count_4_l4.c \
118 generated/count_8_l4.c \
119 generated/count_4_l8.c \
120 generated/count_8_l8.c
123 generated/maxloc0_4_i4.c \
124 generated/maxloc0_8_i4.c \
125 generated/maxloc0_4_i8.c \
126 generated/maxloc0_8_i8.c \
127 generated/maxloc0_4_r4.c \
128 generated/maxloc0_8_r4.c \
129 generated/maxloc0_4_r8.c \
130 generated/maxloc0_8_r8.c
133 generated/maxloc1_4_i4.c \
134 generated/maxloc1_8_i4.c \
135 generated/maxloc1_4_i8.c \
136 generated/maxloc1_8_i8.c \
137 generated/maxloc1_4_r4.c \
138 generated/maxloc1_8_r4.c \
139 generated/maxloc1_4_r8.c \
140 generated/maxloc1_8_r8.c
143 generated/maxval_i4.c \
144 generated/maxval_i8.c \
145 generated/maxval_r4.c \
146 generated/maxval_r8.c
149 generated/minloc0_4_i4.c \
150 generated/minloc0_8_i4.c \
151 generated/minloc0_4_i8.c \
152 generated/minloc0_8_i8.c \
153 generated/minloc0_4_r4.c \
154 generated/minloc0_8_r4.c \
155 generated/minloc0_4_r8.c \
156 generated/minloc0_8_r8.c
159 generated/minloc1_4_i4.c \
160 generated/minloc1_8_i4.c \
161 generated/minloc1_4_i8.c \
162 generated/minloc1_8_i8.c \
163 generated/minloc1_4_r4.c \
164 generated/minloc1_8_r4.c \
165 generated/minloc1_4_r8.c \
166 generated/minloc1_8_r8.c
169 generated/minval_i4.c \
170 generated/minval_i8.c \
171 generated/minval_r4.c \
172 generated/minval_r8.c
183 generated/product_i4.c \
184 generated/product_i8.c \
185 generated/product_r4.c \
186 generated/product_r8.c \
187 generated/product_c4.c \
188 generated/product_c8.c
191 generated/dotprod_i4.c \
192 generated/dotprod_i8.c \
193 generated/dotprod_r4.c \
194 generated/dotprod_r8.c
197 generated/dotprod_l4.c \
198 generated/dotprod_l8.c
201 generated/dotprod_c4.c \
202 generated/dotprod_c8.c
205 generated/matmul_i4.c \
206 generated/matmul_i8.c \
207 generated/matmul_r4.c \
208 generated/matmul_r8.c \
209 generated/matmul_c4.c \
210 generated/matmul_c8.c
213 generated/matmul_l4.c \
214 generated/matmul_l8.c
217 generated/transpose_i4.c \
218 generated/transpose_i8.c \
219 generated/transpose_c4.c \
220 generated/transpose_c8.c
223 generated/shape_i4.c \
227 generated/reshape_i4.c \
228 generated/reshape_i8.c \
229 generated/reshape_c4.c \
230 generated/reshape_c8.c
233 generated/eoshift1_4.c \
234 generated/eoshift1_8.c
237 generated/eoshift3_4.c \
238 generated/eoshift3_8.c
241 generated/cshift1_4.c \
242 generated/cshift1_8.c
245 generated/in_pack_i4.c \
246 generated/in_pack_i8.c \
247 generated/in_pack_c4.c \
248 generated/in_pack_c8.c
251 generated/in_unpack_i4.c \
252 generated/in_unpack_i8.c \
253 generated/in_unpack_c4.c \
254 generated/in_unpack_c8.c
257 generated/exponent_r4.c \
258 generated/exponent_r8.c
261 generated/fraction_r4.c \
262 generated/fraction_r8.c
265 generated/nearest_r4.c \
266 generated/nearest_r8.c
269 generated/set_exponent_r4.c \
270 generated/set_exponent_r8.c
273 generated/pow_i4_i4.c \
274 generated/pow_i8_i4.c \
275 generated/pow_r4_i4.c \
276 generated/pow_r8_i4.c \
277 generated/pow_c4_i4.c \
278 generated/pow_c8_i4.c \
279 generated/pow_i4_i8.c \
280 generated/pow_i8_i8.c \
281 generated/pow_r4_i8.c \
282 generated/pow_r8_i8.c \
283 generated/pow_c4_i8.c \
284 generated/pow_c8_i8.c
286 m4_files= m4/iparm.m4 m4/ifunction.m4 m4/iforeach.m4 m4/all.m4 \
287 m4/any.m4 m4/count.m4 m4/maxloc0.m4 m4/maxloc1.m4 m4/maxval.m4 \
288 m4/minloc0.m4 m4/minloc1.m4 m4/minval.m4 m4/product.m4 m4/sum.m4 \
289 m4/dotprod.m4 m4/dotprodl.m4 m4/dotprodc.m4 m4/matmul.m4 m4/matmull.m4 \
290 m4/ctrig.m4 m4/cexp.m4 m4/chyp.m4 m4/mtype.m4 \
291 m4/specific.m4 m4/specific2.m4 m4/head.m4 m4/shape.m4 m4/reshape.m4 \
292 m4/transpose.m4 m4/eoshift1.m4 m4/eoshift3.m4 m4/exponent.m4 \
293 m4/fraction.m4 m4/nearest.m4 m4/set_exponent.m4 m4/pow.m4
295 gfor_built_src= $(i_all_c) $(i_any_c) $(i_count_c) $(i_maxloc0_c) \
296 $(i_maxloc1_c) $(i_maxval_c) $(i_minloc0_c) $(i_minloc1_c) $(i_minval_c) \
297 $(i_product_c) $(i_sum_c) $(i_dotprod_c) $(i_dotprodl_c) $(i_dotprodc_c) \
298 $(i_matmul_c) $(i_matmull_c) $(i_transpose_c) $(i_shape_c) $(i_eoshift1_c) \
299 $(i_eoshift3_c) $(i_cshift1_c) $(i_reshape_c) $(in_pack_c) $(in_unpack_c) \
300 $(i_exponent_c) $(i_fraction_c) $(i_nearest_c) $(i_set_exponent_c) \
302 selected_int_kind.inc selected_real_kind.inc
304 # We only use these if libm doesn't contain complex math functions.
307 generated/trig_c4.c \
316 gfor_math_trig_obj= \
326 # Machine generated specifics
327 gfor_built_specific_src= \
328 generated/_abs_c4.f90 \
329 generated/_abs_c8.f90 \
330 generated/_abs_i4.f90 \
331 generated/_abs_i8.f90 \
332 generated/_abs_r4.f90 \
333 generated/_abs_r8.f90 \
334 generated/_exp_r4.f90 \
335 generated/_exp_r8.f90 \
336 generated/_exp_c4.f90 \
337 generated/_exp_c8.f90 \
338 generated/_log_r4.f90 \
339 generated/_log_r8.f90 \
340 generated/_log_c4.f90 \
341 generated/_log_c8.f90 \
342 generated/_log10_r4.f90 \
343 generated/_log10_r8.f90 \
344 generated/_sqrt_r4.f90 \
345 generated/_sqrt_r8.f90 \
346 generated/_sqrt_c4.f90 \
347 generated/_sqrt_c8.f90 \
348 generated/_asin_r4.f90 \
349 generated/_asin_r8.f90 \
350 generated/_acos_r4.f90 \
351 generated/_acos_r8.f90 \
352 generated/_atan_r4.f90 \
353 generated/_atan_r8.f90 \
354 generated/_sin_r4.f90 \
355 generated/_sin_r8.f90 \
356 generated/_sin_c4.f90 \
357 generated/_sin_c8.f90 \
358 generated/_cos_r4.f90 \
359 generated/_cos_r8.f90 \
360 generated/_cos_c4.f90 \
361 generated/_cos_c8.f90 \
362 generated/_tan_r4.f90 \
363 generated/_tan_r8.f90 \
364 generated/_sinh_r4.f90 \
365 generated/_sinh_r8.f90 \
366 generated/_cosh_r4.f90 \
367 generated/_cosh_r8.f90 \
368 generated/_tanh_r4.f90 \
369 generated/_tanh_r8.f90 \
370 generated/_conjg_c4.f90 \
371 generated/_conjg_c8.f90 \
372 generated/_aint_r4.f90 \
373 generated/_aint_r8.f90 \
374 generated/_anint_r4.f90 \
375 generated/_anint_r8.f90
377 gfor_built_specific2_src= \
378 generated/_sign_i4.f90 \
379 generated/_sign_i8.f90 \
380 generated/_sign_r4.f90 \
381 generated/_sign_r8.f90 \
382 generated/_dim_i4.f90 \
383 generated/_dim_i8.f90 \
384 generated/_dim_r4.f90 \
385 generated/_dim_r8.f90 \
386 generated/_atan2_r4.f90 \
387 generated/_atan2_r8.f90 \
388 generated/_mod_i4.f90 \
389 generated/_mod_i8.f90 \
390 generated/_mod_r4.f90 \
391 generated/_mod_r8.f90
392 #specific intrinsics requiring manal code
394 intrinsics/_aimag.c \
399 $(gfor_built_specific_src) \
400 $(gfor_built_specific2_src) \
401 intrinsics/dprod_r8.f90 \
402 intrinsics/f2c_specifics.F90
404 gfor_cmath_src= $(gfor_math_trig_c) $(gfor_math_exp_c) $(gfor_math_hyp_c)
405 gfor_cmath_obj= $(gfor_math_trig_obj) $(gfor_math_exp_obj) \
408 BUILT_SOURCES=$(gfor_built_src) $(gfor_cmath_src) $(gfor_built_specific_src) \
409 $(gfor_built_specific2_src)
410 libgfortran_la_SOURCES = $(gfor_src) $(gfor_built_src) $(gfor_io_src) \
411 $(gfor_helper_src) $(gfor_io_headers) $(gfor_specific_src)
413 EXTRA_libgfortran_la_SOURCES = $(gfor_cmath_src)
415 libgfortran_la_LIBADD = @MATH_OBJ@
416 libgfortran_la_DEPENDENCIES = @MATH_OBJ@
418 I_M4_DEPS=m4/iparm.m4
419 I_M4_DEPS0=$(I_M4_DEPS) m4/iforeach.m4
420 I_M4_DEPS1=$(I_M4_DEPS) m4/ifunction.m4
422 selected_int_kind.inc: $(srcdir)/mk-sik-inc.sh
423 $(SHELL) $(srcdir)/mk-sik-inc.sh '$(FCCOMPILE)' > $@
425 selected_real_kind.inc: $(srcdir)/mk-srk-inc.sh
426 $(SHELL) $(srcdir)/mk-srk-inc.sh '$(FCCOMPILE)' > $@
428 ## A 'normal' build shouldn't need to regenerate these
429 ## so we only include them in maintainer mode
432 $(i_all_c): m4/all.m4 $(I_M4_DEPS1)
433 m4 -Dfile=$@ -I$(srcdir)/m4 all.m4 > $(srcdir)/$@
435 $(i_any_c): m4/any.m4 $(I_M4_DEPS1)
436 m4 -Dfile=$@ -I$(srcdir)/m4 any.m4> $(srcdir)/$@
438 $(i_count_c): m4/count.m4 $(I_M4_DEPS1)
439 m4 -Dfile=$@ -I$(srcdir)/m4 count.m4> $(srcdir)/$@
441 $(i_maxloc0_c): m4/maxloc0.m4 $(I_M4_DEPS0)
442 m4 -Dfile=$@ -I$(srcdir)/m4 maxloc0.m4 > $(srcdir)/$@
444 $(i_maxloc1_c): m4/maxloc1.m4 $(I_M4_DEPS1)
445 m4 -Dfile=$@ -I$(srcdir)/m4 maxloc1.m4 > $(srcdir)/$@
447 $(i_maxval_c): m4/maxval.m4 $(I_M4_DEPS1)
448 m4 -Dfile=$@ -I$(srcdir)/m4 maxval.m4 > $(srcdir)/$@
450 $(i_minloc0_c): m4/minloc0.m4 $(I_M4_DEPS0)
451 m4 -Dfile=$@ -I$(srcdir)/m4 minloc0.m4 > $(srcdir)/$@
453 $(i_minloc1_c): m4/minloc1.m4 $(I_M4_DEPS1)
454 m4 -Dfile=$@ -I$(srcdir)/m4 minloc1.m4 > $(srcdir)/$@
456 $(i_minval_c): m4/minval.m4 $(I_M4_DEPS1)
457 m4 -Dfile=$@ -I$(srcdir)/m4 minval.m4 > $(srcdir)/$@
459 $(i_product_c): m4/product.m4 $(I_M4_DEPS1)
460 m4 -Dfile=$@ -I$(srcdir)/m4 product.m4 > $(srcdir)/$@
462 $(i_sum_c): m4/sum.m4 $(I_M4_DEPS1)
463 m4 -Dfile=$@ -I$(srcdir)/m4 sum.m4 > $(srcdir)/$@
465 $(i_dotprod_c): m4/dotprod.m4 $(I_M4_DEPS)
466 m4 -Dfile=$@ -I$(srcdir)/m4 dotprod.m4 > $(srcdir)/$@
468 $(i_dotprodl_c): m4/dotprodl.m4 $(I_M4_DEPS)
469 m4 -Dfile=$@ -I$(srcdir)/m4 dotprodl.m4 > $(srcdir)/$@
471 $(i_dotprodc_c): m4/dotprodc.m4 $(I_M4_DEPS)
472 m4 -Dfile=$@ -I$(srcdir)/m4 dotprodc.m4 > $(srcdir)/$@
474 $(i_matmul_c): m4/matmul.m4 $(I_M4_DEPS)
475 m4 -Dfile=$@ -I$(srcdir)/m4 matmul.m4 > $(srcdir)/$@
477 $(i_matmull_c): m4/matmull.m4 $(I_M4_DEPS)
478 m4 -Dfile=$@ -I$(srcdir)/m4 matmull.m4 > $(srcdir)/$@
480 $(i_transpose_c): m4/transpose.m4 $(I_M4_DEPS)
481 m4 -Dfile=$@ -I$(srcdir)/m4 transpose.m4 > $(srcdir)/$@
483 $(i_shape_c): m4/shape.m4 $(I_M4_DEPS)
484 m4 -Dfile=$@ -I$(srcdir)/m4 shape.m4 > $(srcdir)/$@
486 $(i_reshape_c): m4/reshape.m4 $(I_M4_DEPS)
487 m4 -Dfile=$@ -I$(srcdir)/m4 reshape.m4 > $(srcdir)/$@
489 $(i_eoshift1_c): m4/eoshift1.m4 $(I_M4_DEPS)
490 m4 -Dfile=$@ -I$(srcdir)/m4 eoshift1.m4 > $(srcdir)/$@
492 $(i_eoshift3_c): m4/eoshift3.m4 $(I_M4_DEPS)
493 m4 -Dfile=$@ -I$(srcdir)/m4 eoshift3.m4 > $(srcdir)/$@
495 $(i_cshift1_c): m4/cshift1.m4 $(I_M4_DEPS)
496 m4 -Dfile=$@ -I$(srcdir)/m4 cshift1.m4 > $(srcdir)/$@
498 $(in_pack_c): m4/in_pack.m4 $(I_M4_DEPS)
499 m4 -Dfile=$@ -I$(srcdir)/m4 in_pack.m4 > $(srcdir)/$@
501 $(in_unpack_c): m4/in_unpack.m4 $(I_M4_DEPS)
502 m4 -Dfile=$@ -I$(srcdir)/m4 in_unpack.m4 > $(srcdir)/$@
504 $(i_exponent_c): m4/exponent.m4 m4/mtype.m4
505 m4 -Dfile=$@ -I$(srcdir)/m4 exponent.m4 > $(srcdir)/$@
507 $(i_fraction_c): m4/fraction.m4 m4/mtype.m4
508 m4 -Dfile=$@ -I$(srcdir)/m4 fraction.m4 > $(srcdir)/$@
510 $(i_nearest_c): m4/nearest.m4 m4/mtype.m4
511 m4 -Dfile=$@ -I$(srcdir)/m4 nearest.m4 > $(srcdir)/$@
513 $(i_set_exponent_c): m4/set_exponent.m4 m4/mtype.m4
514 m4 -Dfile=$@ -I$(srcdir)/m4 set_exponent.m4 > $(srcdir)/$@
516 $(i_pow_c): m4/pow.m4 $(I_M4_DEPS)
517 m4 -Dfile=$@ -I$(srcdir)/m4 pow.m4 > $(srcdir)/$@
519 $(gfor_math_trig_c): m4/ctrig.m4 m4/mtype.m4
520 m4 -Dfile=$@ -I$(srcdir)/m4 ctrig.m4 > $(srcdir)/$@
522 $(gfor_math_exp_c): m4/cexp.m4 m4/mtype.m4
523 m4 -Dfile=$@ -I$(srcdir)/m4 cexp.m4 > $(srcdir)/$@
525 $(gfor_math_hyp_c): m4/chyp.m4 m4/mtype.m4
526 m4 -Dfile=$@ -I$(srcdir)/m4 chyp.m4 > $(srcdir)/$@
528 $(gfor_built_specific_src): m4/specific.m4 m4/head.m4
529 m4 -Dfile=$@ -I$(srcdir)/m4 specific.m4 > $(srcdir)/$@
531 $(gfor_built_specific2_src): m4/specific2.m4 m4/head.m4
532 m4 -Dfile=$@ -I$(srcdir)/m4 specific2.m4 > $(srcdir)/$@
533 ## end of maintainer mode only rules
536 EXTRA_DIST = $(m4_files)