OSDN Git Service

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