OSDN Git Service

2006-05-24 Carlos O'Donell <carlos@codesourcery.com>
[pf3gnuchains/gcc-fork.git] / libgfortran / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3
4 ACLOCAL_AMFLAGS = -I ../config
5
6 ## May be used by toolexeclibdir.
7 gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
8
9 toolexeclib_LTLIBRARIES = libgfortran.la libgfortranbegin.la
10
11 libgfortran_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` -lm $(extra_ldflags_libgfortran)
12
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
16
17 ## io.h conflicts with some a system header on some platforms, so
18 ## use -iquote
19 AM_CPPFLAGS = -iquote$(srcdir)/io -I$(srcdir)/$(MULTISRCTOP)../gcc \
20               -I$(srcdir)/$(MULTISRCTOP)../gcc/config \
21               -I$(MULTIBUILDTOP)../../$(host_subdir)/gcc -D_GNU_SOURCE
22
23 gfor_io_src= \
24 io/close.c \
25 io/file_pos.c \
26 io/format.c \
27 io/inquire.c \
28 io/list_read.c \
29 io/lock.c \
30 io/open.c \
31 io/read.c \
32 io/size_from_kind.c \
33 io/transfer.c \
34 io/unit.c \
35 io/unix.c \
36 io/write.c
37
38 gfor_io_headers= \
39 io/io.h
40
41 gfor_helper_src= \
42 intrinsics/associated.c \
43 intrinsics/abort.c \
44 intrinsics/args.c \
45 intrinsics/bessel.c \
46 intrinsics/c99_functions.c \
47 intrinsics/chdir.c \
48 intrinsics/cpu_time.c \
49 intrinsics/cshift0.c \
50 intrinsics/ctime.c \
51 intrinsics/date_and_time.c \
52 intrinsics/env.c \
53 intrinsics/erf.c \
54 intrinsics/eoshift0.c \
55 intrinsics/eoshift2.c \
56 intrinsics/etime.c \
57 intrinsics/exit.c \
58 intrinsics/fget.c \
59 intrinsics/flush.c \
60 intrinsics/fnum.c \
61 intrinsics/ftell.c \
62 intrinsics/gerror.c \
63 intrinsics/getcwd.c \
64 intrinsics/getlog.c \
65 intrinsics/getXid.c \
66 intrinsics/hyper.c \
67 intrinsics/hostnm.c \
68 intrinsics/kill.c \
69 intrinsics/ierrno.c \
70 intrinsics/ishftc.c \
71 intrinsics/link.c \
72 intrinsics/malloc.c \
73 intrinsics/mvbits.c \
74 intrinsics/pack_generic.c \
75 intrinsics/perror.c \
76 intrinsics/signal.c \
77 intrinsics/size.c \
78 intrinsics/sleep.c \
79 intrinsics/spread_generic.c \
80 intrinsics/string_intrinsics.c \
81 intrinsics/system.c \
82 intrinsics/rand.c \
83 intrinsics/random.c \
84 intrinsics/rename.c \
85 intrinsics/reshape_generic.c \
86 intrinsics/reshape_packed.c \
87 intrinsics/selected_int_kind.f90 \
88 intrinsics/selected_real_kind.f90 \
89 intrinsics/stat.c \
90 intrinsics/symlnk.c \
91 intrinsics/system_clock.c \
92 intrinsics/time.c \
93 intrinsics/transpose_generic.c \
94 intrinsics/tty.c \
95 intrinsics/umask.c \
96 intrinsics/unlink.c \
97 intrinsics/unpack_generic.c \
98 runtime/in_pack_generic.c \
99 runtime/in_unpack_generic.c \
100 runtime/normalize.c
101
102 gfor_src= \
103 runtime/compile_options.c \
104 runtime/environ.c \
105 runtime/error.c \
106 runtime/fpu.c \
107 runtime/main.c \
108 runtime/memory.c \
109 runtime/pause.c \
110 runtime/stop.c \
111 runtime/string.c \
112 runtime/select.c \
113 gfortypes.h \
114 libgfortran.h
115
116 i_all_c= \
117 generated/all_l4.c \
118 generated/all_l8.c \
119 generated/all_l16.c
120
121 i_any_c= \
122 generated/any_l4.c \
123 generated/any_l8.c \
124 generated/any_l16.c
125
126 i_count_c= \
127 generated/count_4_l4.c \
128 generated/count_8_l4.c \
129 generated/count_16_l4.c \
130 generated/count_4_l8.c \
131 generated/count_8_l8.c \
132 generated/count_16_l8.c \
133 generated/count_4_l16.c \
134 generated/count_8_l16.c \
135 generated/count_16_l16.c
136
137 i_maxloc0_c= \
138 generated/maxloc0_4_i4.c \
139 generated/maxloc0_8_i4.c \
140 generated/maxloc0_16_i4.c \
141 generated/maxloc0_4_i8.c \
142 generated/maxloc0_8_i8.c \
143 generated/maxloc0_16_i8.c \
144 generated/maxloc0_4_i16.c \
145 generated/maxloc0_8_i16.c \
146 generated/maxloc0_16_i16.c \
147 generated/maxloc0_4_r4.c \
148 generated/maxloc0_8_r4.c \
149 generated/maxloc0_16_r4.c \
150 generated/maxloc0_4_r8.c \
151 generated/maxloc0_8_r8.c \
152 generated/maxloc0_16_r8.c \
153 generated/maxloc0_4_r10.c \
154 generated/maxloc0_8_r10.c \
155 generated/maxloc0_16_r10.c \
156 generated/maxloc0_4_r16.c \
157 generated/maxloc0_8_r16.c \
158 generated/maxloc0_16_r16.c
159
160 i_maxloc1_c= \
161 generated/maxloc1_4_i4.c \
162 generated/maxloc1_8_i4.c \
163 generated/maxloc1_16_i4.c \
164 generated/maxloc1_4_i8.c \
165 generated/maxloc1_8_i8.c \
166 generated/maxloc1_16_i8.c \
167 generated/maxloc1_4_i16.c \
168 generated/maxloc1_8_i16.c \
169 generated/maxloc1_16_i16.c \
170 generated/maxloc1_4_r4.c \
171 generated/maxloc1_8_r4.c \
172 generated/maxloc1_16_r4.c \
173 generated/maxloc1_4_r8.c \
174 generated/maxloc1_8_r8.c \
175 generated/maxloc1_16_r8.c \
176 generated/maxloc1_4_r10.c \
177 generated/maxloc1_8_r10.c \
178 generated/maxloc1_16_r10.c \
179 generated/maxloc1_4_r16.c \
180 generated/maxloc1_8_r16.c \
181 generated/maxloc1_16_r16.c
182
183 i_maxval_c= \
184 generated/maxval_i4.c \
185 generated/maxval_i8.c \
186 generated/maxval_i16.c \
187 generated/maxval_r4.c \
188 generated/maxval_r8.c \
189 generated/maxval_r10.c \
190 generated/maxval_r16.c
191
192 i_minloc0_c= \
193 generated/minloc0_4_i4.c \
194 generated/minloc0_8_i4.c \
195 generated/minloc0_16_i4.c \
196 generated/minloc0_4_i8.c \
197 generated/minloc0_8_i8.c \
198 generated/minloc0_16_i8.c \
199 generated/minloc0_4_i16.c \
200 generated/minloc0_8_i16.c \
201 generated/minloc0_16_i16.c \
202 generated/minloc0_4_r4.c \
203 generated/minloc0_8_r4.c \
204 generated/minloc0_16_r4.c \
205 generated/minloc0_4_r8.c \
206 generated/minloc0_8_r8.c \
207 generated/minloc0_16_r8.c \
208 generated/minloc0_4_r10.c \
209 generated/minloc0_8_r10.c \
210 generated/minloc0_16_r10.c \
211 generated/minloc0_4_r16.c \
212 generated/minloc0_8_r16.c \
213 generated/minloc0_16_r16.c
214
215 i_minloc1_c= \
216 generated/minloc1_4_i4.c \
217 generated/minloc1_8_i4.c \
218 generated/minloc1_16_i4.c \
219 generated/minloc1_4_i8.c \
220 generated/minloc1_8_i8.c \
221 generated/minloc1_16_i8.c \
222 generated/minloc1_4_i16.c \
223 generated/minloc1_8_i16.c \
224 generated/minloc1_16_i16.c \
225 generated/minloc1_4_r4.c \
226 generated/minloc1_8_r4.c \
227 generated/minloc1_16_r4.c \
228 generated/minloc1_4_r8.c \
229 generated/minloc1_8_r8.c \
230 generated/minloc1_16_r8.c \
231 generated/minloc1_4_r10.c \
232 generated/minloc1_8_r10.c \
233 generated/minloc1_16_r10.c \
234 generated/minloc1_4_r16.c \
235 generated/minloc1_8_r16.c \
236 generated/minloc1_16_r16.c
237
238 i_minval_c= \
239 generated/minval_i4.c \
240 generated/minval_i8.c \
241 generated/minval_i16.c \
242 generated/minval_r4.c \
243 generated/minval_r8.c \
244 generated/minval_r10.c \
245 generated/minval_r16.c
246
247 i_sum_c= \
248 generated/sum_i4.c \
249 generated/sum_i8.c \
250 generated/sum_i16.c \
251 generated/sum_r4.c \
252 generated/sum_r8.c \
253 generated/sum_r10.c \
254 generated/sum_r16.c \
255 generated/sum_c4.c \
256 generated/sum_c8.c \
257 generated/sum_c10.c \
258 generated/sum_c16.c
259
260 i_product_c= \
261 generated/product_i4.c \
262 generated/product_i8.c \
263 generated/product_i16.c \
264 generated/product_r4.c \
265 generated/product_r8.c \
266 generated/product_r10.c \
267 generated/product_r16.c \
268 generated/product_c4.c \
269 generated/product_c8.c \
270 generated/product_c10.c \
271 generated/product_c16.c
272
273 i_dotprod_c= \
274 generated/dotprod_i4.c \
275 generated/dotprod_i8.c \
276 generated/dotprod_i16.c \
277 generated/dotprod_r4.c \
278 generated/dotprod_r8.c \
279 generated/dotprod_r10.c \
280 generated/dotprod_r16.c
281
282 i_dotprodl_c= \
283 generated/dotprod_l4.c \
284 generated/dotprod_l8.c \
285 generated/dotprod_l16.c
286
287 i_dotprodc_c= \
288 generated/dotprod_c4.c \
289 generated/dotprod_c8.c \
290 generated/dotprod_c10.c \
291 generated/dotprod_c16.c
292
293 i_matmul_c= \
294 generated/matmul_i4.c \
295 generated/matmul_i8.c \
296 generated/matmul_i16.c \
297 generated/matmul_r4.c \
298 generated/matmul_r8.c \
299 generated/matmul_r10.c \
300 generated/matmul_r16.c \
301 generated/matmul_c4.c \
302 generated/matmul_c8.c \
303 generated/matmul_c10.c \
304 generated/matmul_c16.c
305
306 i_matmull_c= \
307 generated/matmul_l4.c \
308 generated/matmul_l8.c \
309 generated/matmul_l16.c
310
311 i_transpose_c= \
312 generated/transpose_i4.c \
313 generated/transpose_i8.c \
314 generated/transpose_i16.c \
315 generated/transpose_r10.c \
316 generated/transpose_r16.c \
317 generated/transpose_c4.c \
318 generated/transpose_c8.c \
319 generated/transpose_c10.c \
320 generated/transpose_c16.c
321
322 i_shape_c= \
323 generated/shape_i4.c \
324 generated/shape_i8.c \
325 generated/shape_i16.c
326
327 i_reshape_c= \
328 generated/reshape_i4.c \
329 generated/reshape_i8.c \
330 generated/reshape_i16.c \
331 generated/reshape_r10.c \
332 generated/reshape_r16.c \
333 generated/reshape_c4.c \
334 generated/reshape_c8.c \
335 generated/reshape_c10.c \
336 generated/reshape_c16.c
337
338 i_eoshift1_c= \
339 generated/eoshift1_4.c \
340 generated/eoshift1_8.c \
341 generated/eoshift1_16.c
342
343 i_eoshift3_c= \
344 generated/eoshift3_4.c \
345 generated/eoshift3_8.c \
346 generated/eoshift3_16.c
347
348 i_cshift1_c= \
349 generated/cshift1_4.c \
350 generated/cshift1_8.c \
351 generated/cshift1_16.c
352
353 in_pack_c = \
354 generated/in_pack_i4.c \
355 generated/in_pack_i8.c \
356 generated/in_pack_i16.c \
357 generated/in_pack_c4.c \
358 generated/in_pack_c8.c \
359 generated/in_pack_c10.c \
360 generated/in_pack_c16.c
361
362 in_unpack_c = \
363 generated/in_unpack_i4.c \
364 generated/in_unpack_i8.c \
365 generated/in_unpack_i16.c \
366 generated/in_unpack_c4.c \
367 generated/in_unpack_c8.c \
368 generated/in_unpack_c10.c \
369 generated/in_unpack_c16.c
370
371 i_exponent_c = \
372 generated/exponent_r4.c \
373 generated/exponent_r8.c \
374 generated/exponent_r10.c \
375 generated/exponent_r16.c
376
377 i_fraction_c = \
378 generated/fraction_r4.c \
379 generated/fraction_r8.c \
380 generated/fraction_r10.c \
381 generated/fraction_r16.c
382
383 i_nearest_c = \
384 generated/nearest_r4.c \
385 generated/nearest_r8.c \
386 generated/nearest_r10.c \
387 generated/nearest_r16.c
388
389 i_set_exponent_c = \
390 generated/set_exponent_r4.c \
391 generated/set_exponent_r8.c \
392 generated/set_exponent_r10.c \
393 generated/set_exponent_r16.c
394
395 i_pow_c = \
396 generated/pow_i4_i4.c \
397 generated/pow_i8_i4.c \
398 generated/pow_i16_i4.c \
399 generated/pow_r4_i4.c \
400 generated/pow_r8_i4.c \
401 generated/pow_r10_i4.c \
402 generated/pow_r16_i4.c \
403 generated/pow_c4_i4.c \
404 generated/pow_c8_i4.c \
405 generated/pow_c10_i4.c \
406 generated/pow_c16_i4.c \
407 generated/pow_i4_i8.c \
408 generated/pow_i8_i8.c \
409 generated/pow_i16_i8.c \
410 generated/pow_r4_i8.c \
411 generated/pow_r8_i8.c \
412 generated/pow_r10_i8.c \
413 generated/pow_r16_i8.c \
414 generated/pow_c4_i8.c \
415 generated/pow_c8_i8.c \
416 generated/pow_c10_i8.c \
417 generated/pow_c16_i8.c \
418 generated/pow_i4_i16.c \
419 generated/pow_i8_i16.c \
420 generated/pow_i16_i16.c \
421 generated/pow_r4_i16.c \
422 generated/pow_r8_i16.c \
423 generated/pow_r10_i16.c \
424 generated/pow_r16_i16.c \
425 generated/pow_c4_i16.c \
426 generated/pow_c8_i16.c \
427 generated/pow_c10_i16.c \
428 generated/pow_c16_i16.c
429
430 m4_files= m4/iparm.m4 m4/ifunction.m4 m4/iforeach.m4 m4/all.m4 \
431     m4/any.m4 m4/count.m4 m4/maxloc0.m4 m4/maxloc1.m4 m4/maxval.m4 \
432     m4/minloc0.m4 m4/minloc1.m4 m4/minval.m4 m4/product.m4 m4/sum.m4 \
433     m4/dotprod.m4 m4/dotprodl.m4 m4/dotprodc.m4 m4/matmul.m4 m4/matmull.m4 \
434     m4/ctrig.m4 m4/cexp.m4 m4/chyp.m4 m4/mtype.m4 \
435     m4/specific.m4 m4/specific2.m4 m4/head.m4 m4/shape.m4 m4/reshape.m4 \
436     m4/transpose.m4 m4/eoshift1.m4 m4/eoshift3.m4 m4/exponent.m4 \
437     m4/fraction.m4 m4/nearest.m4 m4/set_exponent.m4 m4/pow.m4
438
439 gfor_built_src= $(i_all_c) $(i_any_c) $(i_count_c) $(i_maxloc0_c) \
440     $(i_maxloc1_c) $(i_maxval_c) $(i_minloc0_c) $(i_minloc1_c) $(i_minval_c) \
441     $(i_product_c) $(i_sum_c) $(i_dotprod_c) $(i_dotprodl_c) $(i_dotprodc_c) \
442     $(i_matmul_c) $(i_matmull_c) $(i_transpose_c) $(i_shape_c) $(i_eoshift1_c) \
443     $(i_eoshift3_c) $(i_cshift1_c) $(i_reshape_c) $(in_pack_c) $(in_unpack_c) \
444     $(i_exponent_c) $(i_fraction_c) $(i_nearest_c) $(i_set_exponent_c) \
445     $(i_pow_c) \
446     selected_int_kind.inc selected_real_kind.inc kinds.h \
447     kinds.inc c99_protos.inc fpu-target.h
448
449 # Machine generated specifics
450 gfor_built_specific_src= \
451 generated/_abs_c4.F90 \
452 generated/_abs_c8.F90 \
453 generated/_abs_c10.F90 \
454 generated/_abs_c16.F90 \
455 generated/_abs_i4.F90 \
456 generated/_abs_i8.F90 \
457 generated/_abs_i16.F90 \
458 generated/_abs_r4.F90 \
459 generated/_abs_r8.F90 \
460 generated/_abs_r10.F90 \
461 generated/_abs_r16.F90 \
462 generated/_exp_r4.F90 \
463 generated/_exp_r8.F90 \
464 generated/_exp_r10.F90 \
465 generated/_exp_r16.F90 \
466 generated/_exp_c4.F90 \
467 generated/_exp_c8.F90 \
468 generated/_exp_c10.F90 \
469 generated/_exp_c16.F90 \
470 generated/_log_r4.F90 \
471 generated/_log_r8.F90 \
472 generated/_log_r10.F90 \
473 generated/_log_r16.F90 \
474 generated/_log_c4.F90 \
475 generated/_log_c8.F90 \
476 generated/_log_c10.F90 \
477 generated/_log_c16.F90 \
478 generated/_log10_r4.F90 \
479 generated/_log10_r8.F90 \
480 generated/_log10_r10.F90 \
481 generated/_log10_r16.F90 \
482 generated/_sqrt_r4.F90 \
483 generated/_sqrt_r8.F90 \
484 generated/_sqrt_r10.F90 \
485 generated/_sqrt_r16.F90 \
486 generated/_sqrt_c4.F90 \
487 generated/_sqrt_c8.F90 \
488 generated/_sqrt_c10.F90 \
489 generated/_sqrt_c16.F90 \
490 generated/_asin_r4.F90 \
491 generated/_asin_r8.F90 \
492 generated/_asin_r10.F90 \
493 generated/_asin_r16.F90 \
494 generated/_acos_r4.F90 \
495 generated/_acos_r8.F90 \
496 generated/_acos_r10.F90 \
497 generated/_acos_r16.F90 \
498 generated/_atan_r4.F90 \
499 generated/_atan_r8.F90 \
500 generated/_atan_r10.F90 \
501 generated/_atan_r16.F90 \
502 generated/_sin_r4.F90 \
503 generated/_sin_r8.F90 \
504 generated/_sin_r10.F90 \
505 generated/_sin_r16.F90 \
506 generated/_sin_c4.F90 \
507 generated/_sin_c8.F90 \
508 generated/_sin_c10.F90 \
509 generated/_sin_c16.F90 \
510 generated/_cos_r4.F90 \
511 generated/_cos_r8.F90 \
512 generated/_cos_r10.F90 \
513 generated/_cos_r16.F90 \
514 generated/_cos_c4.F90 \
515 generated/_cos_c8.F90 \
516 generated/_cos_c10.F90 \
517 generated/_cos_c16.F90 \
518 generated/_tan_r4.F90 \
519 generated/_tan_r8.F90 \
520 generated/_tan_r10.F90 \
521 generated/_tan_r16.F90 \
522 generated/_sinh_r4.F90 \
523 generated/_sinh_r8.F90 \
524 generated/_sinh_r10.F90 \
525 generated/_sinh_r16.F90 \
526 generated/_cosh_r4.F90 \
527 generated/_cosh_r8.F90 \
528 generated/_cosh_r10.F90 \
529 generated/_cosh_r16.F90 \
530 generated/_tanh_r4.F90 \
531 generated/_tanh_r8.F90 \
532 generated/_tanh_r10.F90 \
533 generated/_tanh_r16.F90 \
534 generated/_conjg_c4.F90 \
535 generated/_conjg_c8.F90 \
536 generated/_conjg_c10.F90 \
537 generated/_conjg_c16.F90 \
538 generated/_aint_r4.F90 \
539 generated/_aint_r8.F90 \
540 generated/_aint_r10.F90 \
541 generated/_aint_r16.F90 \
542 generated/_anint_r4.F90 \
543 generated/_anint_r8.F90 \
544 generated/_anint_r10.F90 \
545 generated/_anint_r16.F90
546
547 gfor_built_specific2_src= \
548 generated/_sign_i4.F90 \
549 generated/_sign_i8.F90 \
550 generated/_sign_i16.F90 \
551 generated/_sign_r4.F90 \
552 generated/_sign_r8.F90 \
553 generated/_sign_r10.F90 \
554 generated/_sign_r16.F90 \
555 generated/_dim_i4.F90 \
556 generated/_dim_i8.F90 \
557 generated/_dim_i16.F90 \
558 generated/_dim_r4.F90 \
559 generated/_dim_r8.F90 \
560 generated/_dim_r10.F90 \
561 generated/_dim_r16.F90 \
562 generated/_atan2_r4.F90 \
563 generated/_atan2_r8.F90 \
564 generated/_atan2_r10.F90 \
565 generated/_atan2_r16.F90 \
566 generated/_mod_i4.F90 \
567 generated/_mod_i8.F90 \
568 generated/_mod_i16.F90 \
569 generated/_mod_r4.F90 \
570 generated/_mod_r8.F90
571 # There are commented out due to a bug in the way the front-end
572 # handles MOD
573 #generated/_mod_r10.F90
574 #generated/_mod_r16.F90
575
576 gfor_specific_src= \
577 $(gfor_built_specific_src) \
578 $(gfor_built_specific2_src) \
579 intrinsics/dprod_r8.f90 \
580 intrinsics/f2c_specifics.F90
581
582 # No install-html support yet.
583 .PHONY: install-html
584 install-html:
585
586 # Turn on vectorization and loop unrolling for matmul.
587 $(patsubst %.c,%.lo,$(notdir $(i_matmul_c))): AM_CFLAGS += -ftree-vectorize -funroll-loops
588 # Logical matmul doesn't vectorize.
589 $(patsubst %.c,%.lo,$(notdir $(i_matmull_c))): AM_CFLAGS += -funroll-loops
590
591 BUILT_SOURCES=$(gfor_built_src) $(gfor_built_specific_src) \
592     $(gfor_built_specific2_src)
593 libgfortran_la_SOURCES = $(gfor_src) $(gfor_built_src) $(gfor_io_src) \
594     $(gfor_helper_src) $(gfor_io_headers) $(gfor_specific_src)
595
596 I_M4_DEPS=m4/iparm.m4
597 I_M4_DEPS0=$(I_M4_DEPS) m4/iforeach.m4
598 I_M4_DEPS1=$(I_M4_DEPS) m4/ifunction.m4
599
600 kinds.h: $(srcdir)/mk-kinds-h.sh
601         $(SHELL) $(srcdir)/mk-kinds-h.sh '$(FCCOMPILE)' > $@ || rm $@
602
603 kinds.inc: kinds.h
604         grep '^#' < kinds.h > $@
605
606 c99_protos.inc: $(srcdir)/c99_protos.h
607         grep '^#' < $(srcdir)/c99_protos.h > $@
608
609 selected_int_kind.inc: $(srcdir)/mk-sik-inc.sh
610         $(SHELL) $(srcdir)/mk-sik-inc.sh '$(FCCOMPILE)' > $@ || rm $@
611
612 selected_real_kind.inc: $(srcdir)/mk-srk-inc.sh
613         $(SHELL) $(srcdir)/mk-srk-inc.sh '$(FCCOMPILE)' > $@ || rm $@
614
615 fpu-target.h: $(srcdir)/$(FPU_HOST_HEADER)
616         cp $(srcdir)/$(FPU_HOST_HEADER) $@
617
618 ## A 'normal' build shouldn't need to regenerate these
619 ## so we only include them in maintainer mode
620
621 if MAINTAINER_MODE
622 $(i_all_c): m4/all.m4 $(I_M4_DEPS1)
623         m4 -Dfile=$@ -I$(srcdir)/m4 all.m4 > $(srcdir)/$@
624
625 $(i_any_c): m4/any.m4 $(I_M4_DEPS1)
626         m4 -Dfile=$@ -I$(srcdir)/m4 any.m4> $(srcdir)/$@
627
628 $(i_count_c): m4/count.m4 $(I_M4_DEPS1)
629         m4 -Dfile=$@ -I$(srcdir)/m4 count.m4> $(srcdir)/$@
630
631 $(i_maxloc0_c): m4/maxloc0.m4 $(I_M4_DEPS0)
632         m4 -Dfile=$@ -I$(srcdir)/m4 maxloc0.m4 > $(srcdir)/$@
633
634 $(i_maxloc1_c): m4/maxloc1.m4 $(I_M4_DEPS1)
635         m4 -Dfile=$@ -I$(srcdir)/m4 maxloc1.m4 > $(srcdir)/$@
636
637 $(i_maxval_c): m4/maxval.m4 $(I_M4_DEPS1)
638         m4 -Dfile=$@ -I$(srcdir)/m4 maxval.m4 > $(srcdir)/$@
639
640 $(i_minloc0_c): m4/minloc0.m4 $(I_M4_DEPS0)
641         m4 -Dfile=$@ -I$(srcdir)/m4 minloc0.m4 > $(srcdir)/$@
642
643 $(i_minloc1_c): m4/minloc1.m4 $(I_M4_DEPS1)
644         m4 -Dfile=$@ -I$(srcdir)/m4 minloc1.m4 > $(srcdir)/$@
645
646 $(i_minval_c): m4/minval.m4 $(I_M4_DEPS1)
647         m4 -Dfile=$@ -I$(srcdir)/m4 minval.m4 > $(srcdir)/$@
648
649 $(i_product_c): m4/product.m4 $(I_M4_DEPS1)
650         m4 -Dfile=$@ -I$(srcdir)/m4 product.m4 > $(srcdir)/$@
651
652 $(i_sum_c): m4/sum.m4 $(I_M4_DEPS1)
653         m4 -Dfile=$@ -I$(srcdir)/m4 sum.m4 > $(srcdir)/$@
654
655 $(i_dotprod_c): m4/dotprod.m4 $(I_M4_DEPS)
656         m4 -Dfile=$@ -I$(srcdir)/m4 dotprod.m4 > $(srcdir)/$@
657
658 $(i_dotprodl_c): m4/dotprodl.m4 $(I_M4_DEPS)
659         m4 -Dfile=$@ -I$(srcdir)/m4 dotprodl.m4 > $(srcdir)/$@
660
661 $(i_dotprodc_c): m4/dotprodc.m4 $(I_M4_DEPS)
662         m4 -Dfile=$@ -I$(srcdir)/m4 dotprodc.m4 > $(srcdir)/$@
663
664 $(i_matmul_c): m4/matmul.m4 $(I_M4_DEPS)
665         m4 -Dfile=$@ -I$(srcdir)/m4 matmul.m4 > $(srcdir)/$@
666
667 $(i_matmull_c): m4/matmull.m4 $(I_M4_DEPS)
668         m4 -Dfile=$@ -I$(srcdir)/m4 matmull.m4 > $(srcdir)/$@
669
670 $(i_transpose_c): m4/transpose.m4 $(I_M4_DEPS)
671         m4 -Dfile=$@ -I$(srcdir)/m4 transpose.m4 > $(srcdir)/$@
672
673 $(i_shape_c): m4/shape.m4 $(I_M4_DEPS)
674         m4 -Dfile=$@ -I$(srcdir)/m4 shape.m4 > $(srcdir)/$@
675
676 $(i_reshape_c): m4/reshape.m4 $(I_M4_DEPS)
677         m4 -Dfile=$@ -I$(srcdir)/m4 reshape.m4 > $(srcdir)/$@
678
679 $(i_eoshift1_c): m4/eoshift1.m4 $(I_M4_DEPS)
680         m4 -Dfile=$@ -I$(srcdir)/m4 eoshift1.m4 > $(srcdir)/$@
681
682 $(i_eoshift3_c): m4/eoshift3.m4 $(I_M4_DEPS)
683         m4 -Dfile=$@ -I$(srcdir)/m4 eoshift3.m4 > $(srcdir)/$@
684
685 $(i_cshift1_c): m4/cshift1.m4 $(I_M4_DEPS)
686         m4 -Dfile=$@ -I$(srcdir)/m4 cshift1.m4 > $(srcdir)/$@
687
688 $(in_pack_c): m4/in_pack.m4 $(I_M4_DEPS)
689         m4 -Dfile=$@ -I$(srcdir)/m4 in_pack.m4 > $(srcdir)/$@
690
691 $(in_unpack_c): m4/in_unpack.m4 $(I_M4_DEPS)
692         m4 -Dfile=$@ -I$(srcdir)/m4 in_unpack.m4 > $(srcdir)/$@
693
694 $(i_exponent_c): m4/exponent.m4 m4/mtype.m4
695         m4 -Dfile=$@ -I$(srcdir)/m4 exponent.m4 > $(srcdir)/$@
696
697 $(i_fraction_c): m4/fraction.m4 m4/mtype.m4
698         m4 -Dfile=$@ -I$(srcdir)/m4 fraction.m4 > $(srcdir)/$@
699
700 $(i_nearest_c): m4/nearest.m4 m4/mtype.m4
701         m4 -Dfile=$@ -I$(srcdir)/m4 nearest.m4 > $(srcdir)/$@
702
703 $(i_set_exponent_c): m4/set_exponent.m4 m4/mtype.m4
704         m4 -Dfile=$@ -I$(srcdir)/m4 set_exponent.m4 > $(srcdir)/$@
705
706 $(i_pow_c): m4/pow.m4 $(I_M4_DEPS)
707         m4 -Dfile=$@ -I$(srcdir)/m4 pow.m4 > $(srcdir)/$@
708
709 $(gfor_built_specific_src): m4/specific.m4 m4/head.m4
710         m4 -Dfile=$@ -I$(srcdir)/m4 specific.m4 > $(srcdir)/$@
711
712 $(gfor_built_specific2_src): m4/specific2.m4 m4/head.m4
713         m4 -Dfile=$@ -I$(srcdir)/m4 specific2.m4 > $(srcdir)/$@
714 ## end of maintainer mode only rules
715 endif
716
717 EXTRA_DIST = $(m4_files)