* gcc.dg/funcdef-storage-1.c: Add dg-options to suppress
[official-gcc.git] / libgfortran / Makefile.am
blob91d70b8129ce0a71c9717bb91b96633b25d43aa4
1 ## Process this file with automake to produce Makefile.in
3 ## We like to use C99 routines when available.  This makes sure that
4 ## __STDC_VERSION__ is set such that libc includes make them available.
5 AM_CFLAGS = -std=gnu99
7 toolexeclib_LTLIBRARIES = libgfortran.la libgfortranbegin.la
9 libgfortran_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` -lm
11 ## This should really go in the compiler lib dir, not the system lib dir.
12 libgfortranbegin_la_SOURCES = fmain.c
13 libgfortranbegin_la_LDFLAGS = -static
15 AM_CPPFLAGS = -I$(srcdir)/io
17 libgfortranincludedir = $(includedir)/gforio
19 gfor_io_src= \
20 io/backspace.c \
21 io/close.c \
22 io/endfile.c \
23 io/format.c \
24 io/inquire.c \
25 io/list_read.c \
26 io/lock.c \
27 io/open.c \
28 io/read.c \
29 io/rewind.c \
30 io/transfer.c \
31 io/unit.c \
32 io/unix.c \
33 io/write.c
35 gfor_io_headers= \
36 io/io.h
38 gfor_helper_src= \
39 intrinsics/associated.c \
40 intrinsics/abort.c \
41 intrinsics/args.c \
42 intrinsics/bessel.c \
43 intrinsics/c99_functions.c \
44 intrinsics/cpu_time.c \
45 intrinsics/cshift0.c \
46 intrinsics/date_and_time.c \
47 intrinsics/env.c \
48 intrinsics/erf.c \
49 intrinsics/eoshift0.c \
50 intrinsics/eoshift2.c \
51 intrinsics/etime.c \
52 intrinsics/getXid.c \
53 intrinsics/ishftc.c \
54 intrinsics/pack_generic.c \
55 intrinsics/size.c \
56 intrinsics/spread_generic.c \
57 intrinsics/string_intrinsics.c \
58 intrinsics/rand.c \
59 intrinsics/random.c \
60 intrinsics/reshape_generic.c \
61 intrinsics/reshape_packed.c \
62 intrinsics/selected_int_kind.f90 \
63 intrinsics/selected_real_kind.f90 \
64 intrinsics/system_clock.c \
65 intrinsics/transpose_generic.c \
66 intrinsics/unpack_generic.c \
67 runtime/in_pack_generic.c \
68 runtime/in_unpack_generic.c \
69 runtime/normalize.c
71 gfor_src= \
72 runtime/environ.c \
73 runtime/error.c \
74 runtime/main.c \
75 runtime/memory.c \
76 runtime/pause.c \
77 runtime/stop.c \
78 runtime/string.c \
79 runtime/select.c \
80 gfortypes.h \
81 libgfortran.h
83 i_all_c= \
84 generated/all_l4.c \
85 generated/all_l8.c
87 i_any_c= \
88 generated/any_l4.c \
89 generated/any_l8.c
91 i_count_c= \
92 generated/count_4_l4.c \
93 generated/count_8_l4.c \
94 generated/count_4_l8.c \
95 generated/count_8_l8.c
97 i_maxloc0_c= \
98 generated/maxloc0_4_i4.c \
99 generated/maxloc0_8_i4.c \
100 generated/maxloc0_4_i8.c \
101 generated/maxloc0_8_i8.c \
102 generated/maxloc0_4_r4.c \
103 generated/maxloc0_8_r4.c \
104 generated/maxloc0_4_r8.c \
105 generated/maxloc0_8_r8.c
107 i_maxloc1_c= \
108 generated/maxloc1_4_i4.c \
109 generated/maxloc1_8_i4.c \
110 generated/maxloc1_4_i8.c \
111 generated/maxloc1_8_i8.c \
112 generated/maxloc1_4_r4.c \
113 generated/maxloc1_8_r4.c \
114 generated/maxloc1_4_r8.c \
115 generated/maxloc1_8_r8.c
117 i_maxval_c= \
118 generated/maxval_i4.c \
119 generated/maxval_i8.c \
120 generated/maxval_r4.c \
121 generated/maxval_r8.c
123 i_minloc0_c= \
124 generated/minloc0_4_i4.c \
125 generated/minloc0_8_i4.c \
126 generated/minloc0_4_i8.c \
127 generated/minloc0_8_i8.c \
128 generated/minloc0_4_r4.c \
129 generated/minloc0_8_r4.c \
130 generated/minloc0_4_r8.c \
131 generated/minloc0_8_r8.c
133 i_minloc1_c= \
134 generated/minloc1_4_i4.c \
135 generated/minloc1_8_i4.c \
136 generated/minloc1_4_i8.c \
137 generated/minloc1_8_i8.c \
138 generated/minloc1_4_r4.c \
139 generated/minloc1_8_r4.c \
140 generated/minloc1_4_r8.c \
141 generated/minloc1_8_r8.c
143 i_minval_c= \
144 generated/minval_i4.c \
145 generated/minval_i8.c \
146 generated/minval_r4.c \
147 generated/minval_r8.c
149 i_sum_c= \
150 generated/sum_i4.c \
151 generated/sum_i8.c \
152 generated/sum_r4.c \
153 generated/sum_r8.c \
154 generated/sum_c4.c \
155 generated/sum_c8.c
157 i_product_c= \
158 generated/product_i4.c \
159 generated/product_i8.c \
160 generated/product_r4.c \
161 generated/product_r8.c \
162 generated/product_c4.c \
163 generated/product_c8.c
165 i_dotprod_c= \
166 generated/dotprod_i4.c \
167 generated/dotprod_i8.c \
168 generated/dotprod_r4.c \
169 generated/dotprod_r8.c 
171 i_dotprodl_c= \
172 generated/dotprod_l4.c \
173 generated/dotprod_l8.c
175 i_dotprodc_c= \
176 generated/dotprod_c4.c \
177 generated/dotprod_c8.c
179 i_matmul_c= \
180 generated/matmul_i4.c \
181 generated/matmul_i8.c \
182 generated/matmul_r4.c \
183 generated/matmul_r8.c \
184 generated/matmul_c4.c \
185 generated/matmul_c8.c
187 i_matmull_c= \
188 generated/matmul_l4.c \
189 generated/matmul_l8.c
191 i_transpose_c= \
192 generated/transpose_i4.c \
193 generated/transpose_i8.c
195 i_shape_c= \
196 generated/shape_i4.c \
197 generated/shape_i8.c
199 i_reshape_c= \
200 generated/reshape_i4.c \
201 generated/reshape_i8.c
203 i_eoshift1_c= \
204 generated/eoshift1_4.c \
205 generated/eoshift1_8.c
207 i_eoshift3_c= \
208 generated/eoshift3_4.c \
209 generated/eoshift3_8.c
211 i_cshift1_c= \
212 generated/cshift1_4.c \
213 generated/cshift1_8.c
215 in_pack_c = \
216 generated/in_pack_i4.c \
217 generated/in_pack_i8.c
219 in_unpack_c = \
220 generated/in_unpack_i4.c \
221 generated/in_unpack_i8.c
223 i_exponent_c = \
224 generated/exponent_r4.c \
225 generated/exponent_r8.c
227 i_fraction_c = \
228 generated/fraction_r4.c \
229 generated/fraction_r8.c
231 i_nearest_c = \
232 generated/nearest_r4.c \
233 generated/nearest_r8.c
235 i_set_exponent_c = \
236 generated/set_exponent_r4.c \
237 generated/set_exponent_r8.c
239 i_pow_c = \
240 generated/pow_i4_i4.c \
241 generated/pow_i8_i4.c \
242 generated/pow_r4_i4.c \
243 generated/pow_r8_i4.c \
244 generated/pow_c4_i4.c \
245 generated/pow_c8_i4.c \
246 generated/pow_i4_i8.c \
247 generated/pow_i8_i8.c \
248 generated/pow_r4_i8.c \
249 generated/pow_r8_i8.c \
250 generated/pow_c4_i8.c \
251 generated/pow_c8_i8.c
253 m4_files= m4/iparm.m4 m4/ifunction.m4 m4/iforeach.m4 m4/all.m4 \
254     m4/any.m4 m4/count.m4 m4/maxloc0.m4 m4/maxloc1.m4 m4/maxval.m4 \
255     m4/minloc0.m4 m4/minloc1.m4 m4/minval.m4 m4/product.m4 m4/sum.m4 \
256     m4/dotprod.m4 m4/dotprodl.m4 m4/dotprodc.m4 m4/matmul.m4 m4/matmull.m4 \
257     m4/ctrig.m4 m4/cexp.m4 m4/chyp.m4 m4/mtype.m4 \
258     m4/specific.m4 m4/specific2.m4 m4/head.m4 m4/shape.m4 m4/reshape.m4 \
259     m4/transpose.m4 m4/eoshift1.m4 m4/eoshift3.m4 m4/exponent.m4 \
260     m4/fraction.m4 m4/nearest.m4 m4/set_exponent.m4 m4/pow.m4
262 gfor_built_src= $(i_all_c) $(i_any_c) $(i_count_c) $(i_maxloc0_c) \
263     $(i_maxloc1_c) $(i_maxval_c) $(i_minloc0_c) $(i_minloc1_c) $(i_minval_c) \
264     $(i_product_c) $(i_sum_c) $(i_dotprod_c) $(i_dotprodl_c) $(i_dotprodc_c) \
265     $(i_matmul_c) $(i_matmull_c) $(i_transpose_c) $(i_shape_c) $(i_eoshift1_c) \
266     $(i_eoshift3_c) $(i_cshift1_c) $(i_reshape_c) $(in_pack_c) $(in_unpack_c) \
267     $(i_exponent_c) $(i_fraction_c) $(i_nearest_c) $(i_set_exponent_c) \
268     $(i_pow_c) \
269     selected_int_kind.inc selected_real_kind.inc
271 # We only use these if libm doesn't contain complex math functions.
273 gfor_math_trig_c= \
274 generated/trig_c4.c \
275 generated/trig_c8.c
276 gfor_math_exp_c= \
277 generated/exp_c4.c \
278 generated/exp_c8.c
279 gfor_math_hyp_c= \
280 generated/hyp_c4.c \
281 generated/hyp_c8.c
283 gfor_math_trig_obj= \
284 trig_c4.lo \
285 trig_c8.lo
286 gfor_math_exp_obj= \
287 exp_c4.lo \
288 exp_c8.lo
289 gfor_math_hyp_obj= \
290 hyp_c4.lo \
291 hyp_c8.lo
293 # Machine generated specifics
294 gfor_built_specific_src= \
295 generated/_abs_c4.f90 \
296 generated/_abs_c8.f90 \
297 generated/_abs_i4.f90 \
298 generated/_abs_i8.f90 \
299 generated/_abs_r4.f90 \
300 generated/_abs_r8.f90 \
301 generated/_exp_r4.f90 \
302 generated/_exp_r8.f90 \
303 generated/_exp_c4.f90 \
304 generated/_exp_c8.f90 \
305 generated/_log_r4.f90 \
306 generated/_log_r8.f90 \
307 generated/_log_c4.f90 \
308 generated/_log_c8.f90 \
309 generated/_log10_r4.f90 \
310 generated/_log10_r8.f90 \
311 generated/_sqrt_r4.f90 \
312 generated/_sqrt_r8.f90 \
313 generated/_sqrt_c4.f90 \
314 generated/_sqrt_c8.f90 \
315 generated/_asin_r4.f90 \
316 generated/_asin_r8.f90 \
317 generated/_acos_r4.f90 \
318 generated/_acos_r8.f90 \
319 generated/_atan_r4.f90 \
320 generated/_atan_r8.f90 \
321 generated/_sin_r4.f90 \
322 generated/_sin_r8.f90 \
323 generated/_sin_c4.f90 \
324 generated/_sin_c8.f90 \
325 generated/_cos_r4.f90 \
326 generated/_cos_r8.f90 \
327 generated/_cos_c4.f90 \
328 generated/_cos_c8.f90 \
329 generated/_tan_r4.f90 \
330 generated/_tan_r8.f90 \
331 generated/_sinh_r4.f90 \
332 generated/_sinh_r8.f90 \
333 generated/_cosh_r4.f90 \
334 generated/_cosh_r8.f90 \
335 generated/_tanh_r4.f90 \
336 generated/_tanh_r8.f90 \
337 generated/_conjg_c4.f90 \
338 generated/_conjg_c8.f90 \
339 generated/_aint_r4.f90 \
340 generated/_aint_r8.f90 \
341 generated/_anint_r4.f90 \
342 generated/_anint_r8.f90
344 gfor_built_specific2_src= \
345 generated/_sign_i4.f90 \
346 generated/_sign_i8.f90 \
347 generated/_sign_r4.f90 \
348 generated/_sign_r8.f90 \
349 generated/_dim_i4.f90 \
350 generated/_dim_i8.f90 \
351 generated/_dim_r4.f90 \
352 generated/_dim_r8.f90 \
353 generated/_atan2_r4.f90 \
354 generated/_atan2_r8.f90 \
355 generated/_mod_i4.f90 \
356 generated/_mod_i8.f90 \
357 generated/_mod_r4.f90 \
358 generated/_mod_r8.f90
359 #specific intrinsics requiring manal code
360 #gfor_specific_c= \
361 intrinsics/_aimag.c \
362 intrinsics/_cabs.c \
365 gfor_specific_src= \
366 $(gfor_built_specific_src) \
367 $(gfor_built_specific2_src) \
368 intrinsics/dprod_r8.f90
370 gfor_cmath_src= $(gfor_math_trig_c) $(gfor_math_exp_c) $(gfor_math_hyp_c)
371 gfor_cmath_obj= $(gfor_math_trig_obj) $(gfor_math_exp_obj) \
372     $(gfor_math_hyp_obj)
374 BUILT_SOURCES=$(gfor_built_src) $(gfor_cmath_src) $(gfor_built_specific_src) \
375     $(gfor_built_specific2_src)
376 libgfortran_la_SOURCES = $(gfor_src) $(gfor_built_src) $(gfor_io_src) \
377     $(gfor_helper_src) $(gfor_io_headers) $(gfor_specific_src)
379 EXTRA_libgfortran_la_SOURCES = $(gfor_cmath_src)
381 libgfortran_la_LIBADD = @MATH_OBJ@
382 libgfortran_la_DEPENDENCIES = @MATH_OBJ@
384 I_M4_DEPS=m4/iparm.m4
385 I_M4_DEPS0=$(I_M4_DEPS) m4/iforeach.m4
386 I_M4_DEPS1=$(I_M4_DEPS) m4/ifunction.m4
388 selected_int_kind.inc: $(srcdir)/mk-sik-inc.sh
389         $(SHELL) $(srcdir)/mk-sik-inc.sh '$(F77COMPILE)' > $@
391 selected_real_kind.inc: $(srcdir)/mk-srk-inc.sh
392         $(SHELL) $(srcdir)/mk-srk-inc.sh '$(F77COMPILE)' > $@
394 ## A 'normal' build shouldn't need to regenerate these
395 ## so we only include them in maintainer mode
397 if MAINTAINER_MODE
398 $(i_all_c): m4/all.m4 $(I_M4_DEPS1)
399         m4 -Dfile=$@ -I$(srcdir)/m4 all.m4 > $@
401 $(i_any_c): m4/any.m4 $(I_M4_DEPS1)
402         m4 -Dfile=$@ -I$(srcdir)/m4 any.m4> $@
404 $(i_count_c): m4/count.m4 $(I_M4_DEPS1)
405         m4 -Dfile=$@ -I$(srcdir)/m4 count.m4> $@
407 $(i_maxloc0_c): m4/maxloc0.m4 $(I_M4_DEPS0)
408         m4 -Dfile=$@ -I$(srcdir)/m4 maxloc0.m4 > $@
410 $(i_maxloc1_c): m4/maxloc1.m4 $(I_M4_DEPS1)
411         m4 -Dfile=$@ -I$(srcdir)/m4 maxloc1.m4 > $@
413 $(i_maxval_c): m4/maxval.m4 $(I_M4_DEPS1)
414         m4 -Dfile=$@ -I$(srcdir)/m4 maxval.m4 > $@
416 $(i_minloc0_c): m4/minloc0.m4 $(I_M4_DEPS0)
417         m4 -Dfile=$@ -I$(srcdir)/m4 minloc0.m4 > $@
419 $(i_minloc1_c): m4/minloc1.m4 $(I_M4_DEPS1)
420         m4 -Dfile=$@ -I$(srcdir)/m4 minloc1.m4 > $@
422 $(i_minval_c): m4/minval.m4 $(I_M4_DEPS1)
423         m4 -Dfile=$@ -I$(srcdir)/m4 minval.m4 > $@
425 $(i_product_c): m4/product.m4 $(I_M4_DEPS1)
426         m4 -Dfile=$@ -I$(srcdir)/m4 product.m4 > $@
428 $(i_sum_c): m4/sum.m4 $(I_M4_DEPS1)
429         m4 -Dfile=$@ -I$(srcdir)/m4 sum.m4 > $@
431 $(i_dotprod_c): m4/dotprod.m4 $(I_M4_DEPS)
432         m4 -Dfile=$@ -I$(srcdir)/m4 dotprod.m4 > $@
434 $(i_dotprodl_c): m4/dotprodl.m4 $(I_M4_DEPS)
435         m4 -Dfile=$@ -I$(srcdir)/m4 dotprodl.m4 > $@
437 $(i_dotprodc_c): m4/dotprodc.m4 $(I_M4_DEPS)
438         m4 -Dfile=$@ -I$(srcdir)/m4 dotprodc.m4 > $@
440 $(i_matmul_c): m4/matmul.m4 $(I_M4_DEPS)
441         m4 -Dfile=$@ -I$(srcdir)/m4 matmul.m4 > $@
443 $(i_matmull_c): m4/matmull.m4 $(I_M4_DEPS)
444         m4 -Dfile=$@ -I$(srcdir)/m4 matmull.m4 > $@
446 $(i_transpose_c): m4/transpose.m4 $(I_M4_DEPS)
447         m4 -Dfile=$@ -I$(srcdir)/m4 transpose.m4 > $@
449 $(i_shape_c): m4/shape.m4 $(I_M4_DEPS)
450         m4 -Dfile=$@ -I$(srcdir)/m4 shape.m4 > $@
452 $(i_reshape_c): m4/reshape.m4 $(I_M4_DEPS)
453         m4 -Dfile=$@ -I$(srcdir)/m4 reshape.m4 > $@
455 $(i_eoshift1_c): m4/eoshift1.m4 $(I_M4_DEPS)
456         m4 -Dfile=$@ -I$(srcdir)/m4 eoshift1.m4 > $@
458 $(i_eoshift3_c): m4/eoshift3.m4 $(I_M4_DEPS)
459         m4 -Dfile=$@ -I$(srcdir)/m4 eoshift3.m4 > $@
461 $(i_cshift1_c): m4/cshift1.m4 $(I_M4_DEPS)
462         m4 -Dfile=$@ -I$(srcdir)/m4 cshift1.m4 > $@
464 $(in_pack_c): m4/in_pack.m4 $(I_M4_DEPS)
465         m4 -Dfile=$@ -I$(srcdir)/m4 in_pack.m4 > $@
467 $(in_unpack_c): m4/in_unpack.m4 $(I_M4_DEPS)
468         m4 -Dfile=$@ -I$(srcdir)/m4 in_unpack.m4 > $@
470 $(i_exponent_c): m4/exponent.m4 m4/mtype.m4
471         m4 -Dfile=$@ -I$(srcdir)/m4 exponent.m4 > $@
473 $(i_fraction_c): m4/fraction.m4 m4/mtype.m4
474         m4 -Dfile=$@ -I$(srcdir)/m4 fraction.m4 > $@
476 $(i_nearest_c): m4/nearest.m4 m4/mtype.m4
477         m4 -Dfile=$@ -I$(srcdir)/m4 nearest.m4 > $@
479 $(i_set_exponent_c): m4/set_exponent.m4 m4/mtype.m4
480         m4 -Dfile=$@ -I$(srcdir)/m4 set_exponent.m4 > $@
482 $(i_pow_c): m4/pow.m4 $(I_M4_DEPS)
483         m4 -Dfile=$@ -I$(srcdir)/m4 pow.m4 > $@
485 $(gfor_math_trig_c): m4/ctrig.m4 m4/mtype.m4
486         m4 -Dfile=$@ -I$(srcdir)/m4 ctrig.m4 > $@
488 $(gfor_math_exp_c): m4/cexp.m4 m4/mtype.m4
489         m4 -Dfile=$@ -I$(srcdir)/m4 cexp.m4 > $@
491 $(gfor_math_hyp_c): m4/chyp.m4 m4/mtype.m4
492         m4 -Dfile=$@ -I$(srcdir)/m4 chyp.m4 > $@
494 $(gfor_built_specific_src): m4/specific.m4 m4/head.m4
495         m4 -Dfile=$@ -I$(srcdir)/m4 specific.m4 > $@
497 $(gfor_built_specific2_src): m4/specific2.m4 m4/head.m4
498         m4 -Dfile=$@ -I$(srcdir)/m4 specific2.m4 > $@
499 ## end of maintainer mode only rules
500 endif
502 EXTRA_DIST = $(m4_files)