1 lib_LTLIBRARIES = libfirm.la
3 INCLUDES = $(LIBCORE_CFLAGS) \
4 -I$(top_srcdir)/include/libfirm \
5 -I$(top_srcdir)/include/libfirm/adt \
9 -I$(top_srcdir)/ir/adt \
10 -I$(top_srcdir)/ir/ana \
11 -I$(top_srcdir)/ir/arch \
12 -I$(top_srcdir)/ir/be \
13 -I$(top_srcdir)/ir/common \
14 -I$(top_srcdir)/ir/debug \
15 -I$(top_srcdir)/ir/ident \
16 -I$(top_srcdir)/ir/ir \
17 -I$(top_srcdir)/ir/libcore \
18 -I$(top_srcdir)/ir/lower \
19 -I$(top_srcdir)/ir/net \
20 -I$(top_srcdir)/ir/opt \
21 -I$(top_srcdir)/ir/stat \
22 -I$(top_srcdir)/ir/tr \
25 libfirm_la_SOURCES = \
44 ana/analyze_irg_args.c \
50 ana/execution_frequency.c \
51 ana/field_temperature.c \
53 ana/interval_analysis.c \
110 be/bepressurestat.c \
116 be/beschedregpress.c \
119 be/beschedtrivial.c \
120 be/bespillbelady2.c \
121 be/bespillbelady3.c \
125 be/bespilloptions.c \
129 be/bessadestrsimple.c \
140 common/firm_common.c \
143 common/statistics.c \
168 ir/irlinkednodemap.c \
169 ir/irlinkednodeset.c \
184 libcore/lc_appendable.c \
185 libcore/lc_config_lexer.c \
186 libcore/lc_config_parser.c \
188 libcore/lc_opts_enum.c \
189 libcore/lc_printf.c \
191 lower/lower_calls.c \
192 lower/lower_copyb.c \
195 lower/lower_intrinsics.c \
196 lower/lower_mode_b.c \
197 lower/lower_switch.c \
200 obstack/obstack_printf.c \
203 opt/code_placement.c \
207 opt/critical_edges.c \
208 opt/data_flow_scalar_replace.c \
221 opt/opt_polymorphy.c \
225 opt/scalar_replace.c \
236 stat/stat_liveness.c \
240 tr/tr_inheritance.c \
243 tr/type_finalization.c \
270 be/bessadestrsimple.h \
280 be/bechordal_draw.h \
292 be/bepressurestat.h \
299 be/bespilloptions.h \
324 common/statistics.h \
328 common/firm_common_t.h \
357 ir/irlinkednodemap.h \
358 ir/irlinkednodeset.h \
360 libcore/lc_common_t.h \
361 libcore/lc_defines.h \
362 libcore/lc_parser_t.h \
363 libcore/do_bisonflex.sh \
364 libcore/lc_config_parser.h \
366 libcore/lc_printf_arg_types.def \
367 libcore/lc_appendable.h \
368 libcore/lc_printf.h \
369 libcore/lc_config.h \
370 libcore/lc_opts_t.h \
371 libcore/lc_opts_enum.h \
374 opt/scalar_replace.h \
376 opt/opt_polymorphy.h \
395 be/scripts/generate_emitter_new.pl \
396 be/scripts/generate_emitter.pl \
397 be/scripts/generate_machine.pl \
398 be/scripts/generate_new_opcodes.pl \
399 be/scripts/generate_regalloc_if.pl
401 EXTRA_DIST += libcore/do_bisonflex.sh \
402 libcore/lc_config_parser.y \
403 libcore/lc_config_lexer.l
408 be/ia32/bearch_ia32.c \
409 be/ia32/ia32_architecture.c \
410 be/ia32/ia32_address_mode.c \
411 be/ia32/ia32_common_transform.c \
412 be/ia32/ia32_emitter.c \
413 be/ia32/ia32_finish.c \
415 be/ia32/ia32_intrinsics.c \
416 be/ia32/ia32_map_regs.c \
417 be/ia32/ia32_new_nodes.c \
418 be/ia32/ia32_optimize.c \
419 be/ia32/ia32_transform.c \
420 be/ia32/ia32_util.c \
423 ia32_built_sources = \
424 be/ia32/gen_ia32_emitter.c \
425 be/ia32/gen_ia32_emitter.h \
426 be/ia32/gen_ia32_machine.c \
427 be/ia32/gen_ia32_machine.h \
428 be/ia32/gen_ia32_regalloc_if.c \
429 be/ia32/gen_ia32_regalloc_if.h \
430 be/ia32/gen_ia32_new_nodes.c.inl \
431 be/ia32/gen_ia32_new_nodes.h
432 MAINTAINERCLEANFILES = $(ia32_built_sources)
433 BUILT_SOURCES = $(ia32_built_sources)
434 libfirm_la_SOURCES += $(ia32_sources) $(ia32_built_sources)
437 be/ia32/ia32_spec.pl \
438 be/ia32/ia32_simd_spec.pl \
439 be/ia32/bearch_ia32_t.h \
440 be/ia32/ia32_architecture.h \
441 be/ia32/ia32_address_mode.h \
442 be/ia32/ia32_common_transform.h \
443 be/ia32/ia32_dbg_stat.h \
444 be/ia32/ia32_emitter.h \
445 be/ia32/ia32_finish.h \
447 be/ia32/ia32_map_regs.h \
448 be/ia32/ia32_new_nodes.h \
449 be/ia32/ia32_nodes_attr.h \
450 be/ia32/ia32_optimize.h \
451 be/ia32/ia32_transform.h \
452 be/ia32/ia32_util.h \
455 $(srcdir)/be/ia32/gen_ia32_new_nodes.c.inl $(srcdir)/be/ia32/gen_ia32_new_nodes.h: \
456 be/ia32/ia32_spec.pl be/scripts/generate_new_opcodes.pl
457 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
459 $(srcdir)/be/ia32/gen_ia32_emitter.c $(srcdir)/be/ia32/gen_ia32_emitter.h: \
460 be/ia32/ia32_spec.pl be/scripts/generate_emitter.pl
461 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
463 $(srcdir)/be/ia32/gen_ia32_machine.c $(srcdir)/be/ia32/gen_ia32_machine.h: \
464 be/ia32/ia32_spec.pl be/scripts/generate_machine.pl
465 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
467 $(srcdir)/be/ia32/gen_ia32_regalloc_if.c $(srcdir)/be/ia32/gen_ia32_regalloc_if.h: \
468 be/ia32/ia32_spec.pl be/scripts/generate_regalloc_if.pl
469 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
474 be/arm/bearch_arm.c \
475 be/arm/arm_emitter.c \
476 be/arm/arm_map_regs.c \
477 be/arm/arm_new_nodes.c \
478 be/arm/arm_optimize.c \
479 be/arm/arm_transform.c
480 arm_built_sources = \
481 be/arm/gen_arm_emitter.c \
482 be/arm/gen_arm_emitter.h \
483 be/arm/gen_arm_machine.c \
484 be/arm/gen_arm_machine.h \
485 be/arm/gen_arm_regalloc_if.c \
486 be/arm/gen_arm_regalloc_if.h \
487 be/arm/gen_arm_new_nodes.c.inl \
488 be/arm/gen_arm_new_nodes.h
489 MAINTAINERCLEANFILES += $(arm_built_sources)
490 BUILT_SOURCES += $(arm_built_sources)
491 libfirm_la_SOURCES += $(arm_sources) $(arm_built_sources)
496 be/arm/arm_emitter.h \
497 be/arm/arm_map_regs.h \
498 be/arm/arm_new_nodes.h \
499 be/arm/arm_nodes_attr.h \
500 be/arm/arm_optimize.h \
501 be/arm/arm_transform.h \
502 be/arm/bearch_arm.h \
503 be/arm/bearch_arm_t.h
505 $(srcdir)/be/arm/gen_arm_new_nodes.c.inl $(srcdir)/be/arm/gen_arm_new_nodes.h: \
506 be/arm/arm_spec.pl be/scripts/generate_new_opcodes.pl
507 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
509 $(srcdir)/be/arm/gen_arm_emitter.c $(srcdir)/be/arm/gen_arm_emitter.h: \
510 be/arm/arm_spec.pl be/scripts/generate_emitter.pl
511 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
513 $(srcdir)/be/arm/gen_arm_machine.c $(srcdir)/be/arm/gen_arm_machine.h: \
514 be/arm/arm_spec.pl be/scripts/generate_machine.pl
515 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
517 $(srcdir)/be/arm/gen_arm_regalloc_if.c $(srcdir)/be/arm/gen_arm_regalloc_if.h: \
518 be/arm/arm_spec.pl be/scripts/generate_machine.pl
519 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
524 be/mips/bearch_mips.c \
525 be/mips/mips_emitter.c \
526 be/mips/mips_map_regs.c \
527 be/mips/mips_new_nodes.c \
528 be/mips/mips_scheduler.c \
529 be/mips/mips_transform.c
530 mips_built_sources = \
531 be/mips/gen_mips_emitter.c \
532 be/mips/gen_mips_emitter.h \
533 be/mips/gen_mips_machine.c \
534 be/mips/gen_mips_machine.h \
535 be/mips/gen_mips_regalloc_if.c \
536 be/mips/gen_mips_regalloc_if.h \
537 be/mips/gen_mips_new_nodes.c.inl \
538 be/mips/gen_mips_new_nodes.h
539 MAINTAINERCLEANFILES += $(mips_built_sources)
540 BUILT_SOURCES += $(mips_built_sources)
541 libfirm_la_SOURCES += $(mips_sources) $(mips_built_sources)
544 be/mips/mips_spec.pl \
545 be/mips/bearch_mips.h \
546 be/mips/bearch_mips_t.h \
547 be/mips/mips_emitter.h \
548 be/mips/mips_map_regs.h \
549 be/mips/mips_new_nodes.h \
550 be/mips/mips_nodes_attr.h \
551 be/mips/mips_scheduler.h \
552 be/mips/mips_transform.h \
555 $(srcdir)/be/mips/gen_mips_new_nodes.c.inl $(srcdir)/be/mips/gen_mips_new_nodes.h: \
556 be/mips/mips_spec.pl be/scripts/generate_new_opcodes.pl
557 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
559 $(srcdir)/be/mips/gen_mips_emitter.c $(srcdir)/be/mips/gen_mips_emitter.h: \
560 be/mips/mips_spec.pl be/scripts/generate_emitter.pl
561 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
563 $(srcdir)/be/mips/gen_mips_machine.c $(srcdir)/be/mips/gen_mips_machine.h: \
564 be/mips/mips_spec.pl be/scripts/generate_machine.pl
565 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
567 $(srcdir)/be/mips/gen_mips_regalloc_if.c $(srcdir)/be/mips/gen_mips_regalloc_if.h: \
568 be/mips/mips_spec.pl be/scripts/generate_machine.pl
569 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
574 be/ppc32/bearch_ppc32.c \
575 be/ppc32/ppc32_emitter.c \
576 be/ppc32/ppc32_map_regs.c \
577 be/ppc32/ppc32_new_nodes.c \
578 be/ppc32/ppc32_transform.c \
579 be/ppc32/ppc32_transform_conv.c
580 ppc32_built_sources = \
581 be/ppc32/gen_ppc32_emitter.c \
582 be/ppc32/gen_ppc32_emitter.h \
583 be/ppc32/gen_ppc32_machine.c \
584 be/ppc32/gen_ppc32_machine.h \
585 be/ppc32/gen_ppc32_regalloc_if.c \
586 be/ppc32/gen_ppc32_regalloc_if.h \
587 be/ppc32/gen_ppc32_new_nodes.c.inl \
588 be/ppc32/gen_ppc32_new_nodes.h
589 MAINTAINERCLEANFILES += $(ppc32_built_sources)
590 BUILT_SOURCES += $(ppc32_built_sources)
591 libfirm_la_SOURCES += $(ppc32_sources) $(ppc32_built_sources)
594 be/ppc32/ppc32_spec.pl \
595 be/ppc32/bearch_ppc32.h \
596 be/ppc32/bearch_ppc32_t.h \
597 be/ppc32/ppc32_emitter.h \
598 be/ppc32/ppc32_map_regs.h \
599 be/ppc32/ppc32_new_nodes.h \
600 be/ppc32/ppc32_nodes_attr.h \
601 be/ppc32/ppc32_transform_conv.h \
602 be/ppc32/ppc32_transform.h
604 $(srcdir)/be/ppc32/gen_ppc32_new_nodes.c.inl $(srcdir)/be/ppc32/gen_ppc32_new_nodes.h: \
605 be/ppc32/ppc32_spec.pl be/scripts/generate_new_opcodes.pl
606 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/ppc32/ppc32_spec.pl $(srcdir)/be/ppc32
608 $(srcdir)/be/ppc32/gen_ppc32_emitter.c $(srcdir)/be/ppc32/gen_ppc32_emitter.h: \
609 be/ppc32/ppc32_spec.pl be/scripts/generate_emitter.pl
610 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/ppc32/ppc32_spec.pl $(srcdir)/be/ppc32
612 $(srcdir)/be/ppc32/gen_ppc32_machine.c $(srcdir)/be/ppc32/gen_ppc32_machine.h: \
613 be/ppc32/ppc32_spec.pl be/scripts/generate_machine.pl
614 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/ppc32/ppc32_spec.pl $(srcdir)/be/ppc32
616 $(srcdir)/be/ppc32/gen_ppc32_regalloc_if.c $(srcdir)/be/ppc32/gen_ppc32_regalloc_if.h: \
617 be/ppc32/ppc32_spec.pl be/scripts/generate_machine.pl
618 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/ppc32/ppc32_spec.pl $(srcdir)/be/ppc32
623 be/TEMPLATE/bearch_TEMPLATE.c \
624 be/TEMPLATE/TEMPLATE_emitter.c \
625 be/TEMPLATE/TEMPLATE_map_regs.c \
626 be/TEMPLATE/TEMPLATE_new_nodes.c \
627 be/TEMPLATE/TEMPLATE_transform.c
628 TEMPLATE_built_sources = \
629 be/TEMPLATE/gen_TEMPLATE_emitter.c \
630 be/TEMPLATE/gen_TEMPLATE_emitter.h \
631 be/TEMPLATE/gen_TEMPLATE_machine.c \
632 be/TEMPLATE/gen_TEMPLATE_machine.h \
633 be/TEMPLATE/gen_TEMPLATE_regalloc_if.c \
634 be/TEMPLATE/gen_TEMPLATE_regalloc_if.h \
635 be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl \
636 be/TEMPLATE/gen_TEMPLATE_new_nodes.h
637 MAINTAINERCLEANFILES += $(TEMPLATE_built_sources)
638 BUILT_SOURCES += $(TEMPLATE_built_sources)
639 libfirm_la_SOURCES += $(TEMPLATE_sources) $(TEMPLATE_built_sources)
642 be/TEMPLATE/TEMPLATE_spec.pl \
643 be/TEMPLATE/bearch_TEMPLATE.h \
644 be/TEMPLATE/bearch_TEMPLATE_t.h \
645 be/TEMPLATE/TEMPLATE_emitter.h \
646 be/TEMPLATE/TEMPLATE_map_regs.h \
647 be/TEMPLATE/TEMPLATE_new_nodes.h \
648 be/TEMPLATE/TEMPLATE_nodes_attr.h \
649 be/TEMPLATE/TEMPLATE_transform.h
651 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.h: \
652 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_new_opcodes.pl
653 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
655 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.h: \
656 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_emitter.pl
657 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
659 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_machine.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_machine.h: \
660 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_machine.pl
661 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
663 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.h: \
664 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_machine.pl
665 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE