Mark ChangeLog
[official-gcc.git] / libgfortran / Makefile.am
blobc3f37a8d05142bca23f860e56ca8c460ab2a88c6
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
15 ## use -iquote
16 AM_CPPFLAGS = -iquote$(srcdir)/io
18 libgfortranincludedir = $(includedir)/gforio
20 gfor_io_src= \
21 io/backspace.c \
22 io/close.c \
23 io/endfile.c \
24 io/format.c \
25 io/inquire.c \
26 io/list_read.c \
27 io/lock.c \
28 io/open.c \
29 io/read.c \
30 io/rewind.c \
31 io/transfer.c \
32 io/unit.c \
33 io/unix.c \
34 io/write.c
36 gfor_io_headers= \
37 io/io.h
39 gfor_helper_src= \
40 intrinsics/associated.c \
41 intrinsics/abort.c \
42 intrinsics/args.c \
43 intrinsics/bessel.c \
44 intrinsics/c99_functions.c \
45 intrinsics/chdir.c \
46 intrinsics/cpu_time.c \
47 intrinsics/cshift0.c \
48 intrinsics/ctime.c \
49 intrinsics/date_and_time.c \
50 intrinsics/env.c \
51 intrinsics/erf.c \
52 intrinsics/eoshift0.c \
53 intrinsics/eoshift2.c \
54 intrinsics/etime.c \
55 intrinsics/exit.c \
56 intrinsics/fget.c \
57 intrinsics/flush.c \
58 intrinsics/fnum.c \
59 intrinsics/ftell.c \
60 intrinsics/gerror.c \
61 intrinsics/getcwd.c \
62 intrinsics/getlog.c \
63 intrinsics/getXid.c \
64 intrinsics/hostnm.c \
65 intrinsics/kill.c \
66 intrinsics/ierrno.c \
67 intrinsics/ishftc.c \
68 intrinsics/link.c \
69 intrinsics/mvbits.c \
70 intrinsics/pack_generic.c \
71 intrinsics/perror.c \
72 intrinsics/size.c \
73 intrinsics/sleep.c \
74 intrinsics/spread_generic.c \
75 intrinsics/string_intrinsics.c \
76 intrinsics/system.c \
77 intrinsics/rand.c \
78 intrinsics/random.c \
79 intrinsics/rename.c \
80 intrinsics/reshape_generic.c \
81 intrinsics/reshape_packed.c \
82 intrinsics/selected_int_kind.f90 \
83 intrinsics/selected_real_kind.f90 \
84 intrinsics/stat.c \
85 intrinsics/symlnk.c \
86 intrinsics/system_clock.c \
87 intrinsics/time.c \
88 intrinsics/transpose_generic.c \
89 intrinsics/tty.c \
90 intrinsics/umask.c \
91 intrinsics/unlink.c \
92 intrinsics/unpack_generic.c \
93 runtime/in_pack_generic.c \
94 runtime/in_unpack_generic.c \
95 runtime/normalize.c
97 gfor_src= \
98 runtime/compile_options.c \
99 runtime/environ.c \
100 runtime/error.c \
101 runtime/main.c \
102 runtime/memory.c \
103 runtime/pause.c \
104 runtime/stop.c \
105 runtime/string.c \
106 runtime/select.c \
107 gfortypes.h \
108 libgfortran.h
110 i_all_c= \
111 generated/all_l4.c \
112 generated/all_l8.c
114 i_any_c= \
115 generated/any_l4.c \
116 generated/any_l8.c
118 i_count_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
124 i_maxloc0_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
134 i_maxloc1_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
144 i_maxval_c= \
145 generated/maxval_i4.c \
146 generated/maxval_i8.c \
147 generated/maxval_r4.c \
148 generated/maxval_r8.c
150 i_minloc0_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
160 i_minloc1_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
170 i_minval_c= \
171 generated/minval_i4.c \
172 generated/minval_i8.c \
173 generated/minval_r4.c \
174 generated/minval_r8.c
176 i_sum_c= \
177 generated/sum_i4.c \
178 generated/sum_i8.c \
179 generated/sum_r4.c \
180 generated/sum_r8.c \
181 generated/sum_c4.c \
182 generated/sum_c8.c
184 i_product_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
192 i_dotprod_c= \
193 generated/dotprod_i4.c \
194 generated/dotprod_i8.c \
195 generated/dotprod_r4.c \
196 generated/dotprod_r8.c
198 i_dotprodl_c= \
199 generated/dotprod_l4.c \
200 generated/dotprod_l8.c
202 i_dotprodc_c= \
203 generated/dotprod_c4.c \
204 generated/dotprod_c8.c
206 i_matmul_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
214 i_matmull_c= \
215 generated/matmul_l4.c \
216 generated/matmul_l8.c
218 i_transpose_c= \
219 generated/transpose_i4.c \
220 generated/transpose_i8.c \
221 generated/transpose_c4.c \
222 generated/transpose_c8.c
224 i_shape_c= \
225 generated/shape_i4.c \
226 generated/shape_i8.c
228 i_reshape_c= \
229 generated/reshape_i4.c \
230 generated/reshape_i8.c \
231 generated/reshape_c4.c \
232 generated/reshape_c8.c
234 i_eoshift1_c= \
235 generated/eoshift1_4.c \
236 generated/eoshift1_8.c
238 i_eoshift3_c= \
239 generated/eoshift3_4.c \
240 generated/eoshift3_8.c
242 i_cshift1_c= \
243 generated/cshift1_4.c \
244 generated/cshift1_8.c
246 in_pack_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
252 in_unpack_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
258 i_exponent_c = \
259 generated/exponent_r4.c \
260 generated/exponent_r8.c
262 i_fraction_c = \
263 generated/fraction_r4.c \
264 generated/fraction_r8.c
266 i_nearest_c = \
267 generated/nearest_r4.c \
268 generated/nearest_r8.c
270 i_set_exponent_c = \
271 generated/set_exponent_r4.c \
272 generated/set_exponent_r8.c
274 i_pow_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) \
303     $(i_pow_c) \
304     selected_int_kind.inc selected_real_kind.inc
306 # We only use these if libm doesn't contain complex math functions.
308 gfor_math_trig_c= \
309 generated/trig_c4.c \
310 generated/trig_c8.c
311 gfor_math_exp_c= \
312 generated/exp_c4.c \
313 generated/exp_c8.c
314 gfor_math_hyp_c= \
315 generated/hyp_c4.c \
316 generated/hyp_c8.c
318 gfor_math_trig_obj= \
319 trig_c4.lo \
320 trig_c8.lo
321 gfor_math_exp_obj= \
322 exp_c4.lo \
323 exp_c8.lo
324 gfor_math_hyp_obj= \
325 hyp_c4.lo \
326 hyp_c8.lo
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
395 #gfor_specific_c= \
396 intrinsics/_aimag.c \
397 intrinsics/_cabs.c \
400 gfor_specific_src= \
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) \
408     $(gfor_math_hyp_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
433 if 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
536 endif
538 EXTRA_DIST = $(m4_files)