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 \
167 ir/irlinkednodemap.c \
168 ir/irlinkednodeset.c \
183 libcore/lc_appendable.c \
184 libcore/lc_config_lexer.c \
185 libcore/lc_config_parser.c \
187 libcore/lc_opts_enum.c \
188 libcore/lc_printf.c \
190 lower/lower_calls.c \
191 lower/lower_copyb.c \
194 lower/lower_intrinsics.c \
195 lower/lower_mode_b.c \
196 lower/lower_switch.c \
199 obstack/obstack_printf.c \
202 opt/code_placement.c \
206 opt/critical_edges.c \
207 opt/data_flow_scalar_replace.c \
220 opt/opt_polymorphy.c \
224 opt/scalar_replace.c \
235 stat/stat_liveness.c \
239 tr/tr_inheritance.c \
242 tr/type_finalization.c \
269 be/bessadestrsimple.h \
279 be/bechordal_draw.h \
291 be/bepressurestat.h \
298 be/bespilloptions.h \
323 common/statistics.h \
327 common/firm_common_t.h \
356 ir/irlinkednodemap.h \
357 ir/irlinkednodeset.h \
359 libcore/lc_common_t.h \
360 libcore/lc_defines.h \
361 libcore/lc_parser_t.h \
362 libcore/do_bisonflex.sh \
363 libcore/lc_config_parser.h \
365 libcore/lc_printf_arg_types.def \
366 libcore/lc_appendable.h \
367 libcore/lc_printf.h \
368 libcore/lc_config.h \
369 libcore/lc_opts_t.h \
370 libcore/lc_opts_enum.h \
373 opt/scalar_replace.h \
375 opt/opt_polymorphy.h \
394 be/scripts/generate_emitter_new.pl \
395 be/scripts/generate_emitter.pl \
396 be/scripts/generate_machine.pl \
397 be/scripts/generate_new_opcodes.pl \
398 be/scripts/generate_regalloc_if.pl
400 EXTRA_DIST += libcore/do_bisonflex.sh \
401 libcore/lc_config_parser.y \
402 libcore/lc_config_lexer.l
407 be/ia32/bearch_ia32.c \
408 be/ia32/ia32_architecture.c \
409 be/ia32/ia32_address_mode.c \
410 be/ia32/ia32_common_transform.c \
411 be/ia32/ia32_emitter.c \
412 be/ia32/ia32_finish.c \
414 be/ia32/ia32_intrinsics.c \
415 be/ia32/ia32_map_regs.c \
416 be/ia32/ia32_new_nodes.c \
417 be/ia32/ia32_optimize.c \
418 be/ia32/ia32_transform.c \
419 be/ia32/ia32_util.c \
422 ia32_built_sources = \
423 be/ia32/gen_ia32_emitter.c \
424 be/ia32/gen_ia32_emitter.h \
425 be/ia32/gen_ia32_machine.c \
426 be/ia32/gen_ia32_machine.h \
427 be/ia32/gen_ia32_regalloc_if.c \
428 be/ia32/gen_ia32_regalloc_if.h \
429 be/ia32/gen_ia32_new_nodes.c.inl \
430 be/ia32/gen_ia32_new_nodes.h
431 MAINTAINERCLEANFILES = $(ia32_built_sources)
432 BUILT_SOURCES = $(ia32_built_sources)
433 libfirm_la_SOURCES += $(ia32_sources) $(ia32_built_sources)
436 be/ia32/ia32_spec.pl \
437 be/ia32/ia32_simd_spec.pl \
438 be/ia32/bearch_ia32_t.h \
439 be/ia32/ia32_architecture.h \
440 be/ia32/ia32_address_mode.h \
441 be/ia32/ia32_common_transform.h \
442 be/ia32/ia32_dbg_stat.h \
443 be/ia32/ia32_emitter.h \
444 be/ia32/ia32_finish.h \
446 be/ia32/ia32_map_regs.h \
447 be/ia32/ia32_new_nodes.h \
448 be/ia32/ia32_nodes_attr.h \
449 be/ia32/ia32_optimize.h \
450 be/ia32/ia32_transform.h \
451 be/ia32/ia32_util.h \
454 $(srcdir)/be/ia32/gen_ia32_new_nodes.c.inl $(srcdir)/be/ia32/gen_ia32_new_nodes.h: \
455 be/ia32/ia32_spec.pl be/scripts/generate_new_opcodes.pl
456 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
458 $(srcdir)/be/ia32/gen_ia32_emitter.c $(srcdir)/be/ia32/gen_ia32_emitter.h: \
459 be/ia32/ia32_spec.pl be/scripts/generate_emitter.pl
460 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
462 $(srcdir)/be/ia32/gen_ia32_machine.c $(srcdir)/be/ia32/gen_ia32_machine.h: \
463 be/ia32/ia32_spec.pl be/scripts/generate_machine.pl
464 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
466 $(srcdir)/be/ia32/gen_ia32_regalloc_if.c $(srcdir)/be/ia32/gen_ia32_regalloc_if.h: \
467 be/ia32/ia32_spec.pl be/scripts/generate_regalloc_if.pl
468 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
473 be/arm/bearch_arm.c \
474 be/arm/arm_emitter.c \
475 be/arm/arm_map_regs.c \
476 be/arm/arm_new_nodes.c \
477 be/arm/arm_optimize.c \
478 be/arm/arm_transform.c
479 arm_built_sources = \
480 be/arm/gen_arm_emitter.c \
481 be/arm/gen_arm_emitter.h \
482 be/arm/gen_arm_machine.c \
483 be/arm/gen_arm_machine.h \
484 be/arm/gen_arm_regalloc_if.c \
485 be/arm/gen_arm_regalloc_if.h \
486 be/arm/gen_arm_new_nodes.c.inl \
487 be/arm/gen_arm_new_nodes.h
488 MAINTAINERCLEANFILES += $(arm_built_sources)
489 BUILT_SOURCES += $(arm_built_sources)
490 libfirm_la_SOURCES += $(arm_sources) $(arm_built_sources)
495 be/arm/arm_emitter.h \
496 be/arm/arm_map_regs.h \
497 be/arm/arm_new_nodes.h \
498 be/arm/arm_nodes_attr.h \
499 be/arm/arm_optimize.h \
500 be/arm/arm_transform.h \
501 be/arm/bearch_arm.h \
502 be/arm/bearch_arm_t.h
504 $(srcdir)/be/arm/gen_arm_new_nodes.c.inl $(srcdir)/be/arm/gen_arm_new_nodes.h: \
505 be/arm/arm_spec.pl be/scripts/generate_new_opcodes.pl
506 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
508 $(srcdir)/be/arm/gen_arm_emitter.c $(srcdir)/be/arm/gen_arm_emitter.h: \
509 be/arm/arm_spec.pl be/scripts/generate_emitter.pl
510 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
512 $(srcdir)/be/arm/gen_arm_machine.c $(srcdir)/be/arm/gen_arm_machine.h: \
513 be/arm/arm_spec.pl be/scripts/generate_machine.pl
514 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
516 $(srcdir)/be/arm/gen_arm_regalloc_if.c $(srcdir)/be/arm/gen_arm_regalloc_if.h: \
517 be/arm/arm_spec.pl be/scripts/generate_machine.pl
518 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
523 be/mips/bearch_mips.c \
524 be/mips/mips_emitter.c \
525 be/mips/mips_map_regs.c \
526 be/mips/mips_new_nodes.c \
527 be/mips/mips_scheduler.c \
528 be/mips/mips_transform.c
529 mips_built_sources = \
530 be/mips/gen_mips_emitter.c \
531 be/mips/gen_mips_emitter.h \
532 be/mips/gen_mips_machine.c \
533 be/mips/gen_mips_machine.h \
534 be/mips/gen_mips_regalloc_if.c \
535 be/mips/gen_mips_regalloc_if.h \
536 be/mips/gen_mips_new_nodes.c.inl \
537 be/mips/gen_mips_new_nodes.h
538 MAINTAINERCLEANFILES += $(mips_built_sources)
539 BUILT_SOURCES += $(mips_built_sources)
540 libfirm_la_SOURCES += $(mips_sources) $(mips_built_sources)
543 be/mips/mips_spec.pl \
544 be/mips/bearch_mips.h \
545 be/mips/bearch_mips_t.h \
546 be/mips/mips_emitter.h \
547 be/mips/mips_map_regs.h \
548 be/mips/mips_new_nodes.h \
549 be/mips/mips_nodes_attr.h \
550 be/mips/mips_scheduler.h \
551 be/mips/mips_transform.h \
554 $(srcdir)/be/mips/gen_mips_new_nodes.c.inl $(srcdir)/be/mips/gen_mips_new_nodes.h: \
555 be/mips/mips_spec.pl be/scripts/generate_new_opcodes.pl
556 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
558 $(srcdir)/be/mips/gen_mips_emitter.c $(srcdir)/be/mips/gen_mips_emitter.h: \
559 be/mips/mips_spec.pl be/scripts/generate_emitter.pl
560 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
562 $(srcdir)/be/mips/gen_mips_machine.c $(srcdir)/be/mips/gen_mips_machine.h: \
563 be/mips/mips_spec.pl be/scripts/generate_machine.pl
564 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
566 $(srcdir)/be/mips/gen_mips_regalloc_if.c $(srcdir)/be/mips/gen_mips_regalloc_if.h: \
567 be/mips/mips_spec.pl be/scripts/generate_machine.pl
568 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
573 be/ppc32/bearch_ppc32.c \
574 be/ppc32/ppc32_emitter.c \
575 be/ppc32/ppc32_map_regs.c \
576 be/ppc32/ppc32_new_nodes.c \
577 be/ppc32/ppc32_transform.c \
578 be/ppc32/ppc32_transform_conv.c
579 ppc32_built_sources = \
580 be/ppc32/gen_ppc32_emitter.c \
581 be/ppc32/gen_ppc32_emitter.h \
582 be/ppc32/gen_ppc32_machine.c \
583 be/ppc32/gen_ppc32_machine.h \
584 be/ppc32/gen_ppc32_regalloc_if.c \
585 be/ppc32/gen_ppc32_regalloc_if.h \
586 be/ppc32/gen_ppc32_new_nodes.c.inl \
587 be/ppc32/gen_ppc32_new_nodes.h
588 MAINTAINERCLEANFILES += $(ppc32_built_sources)
589 BUILT_SOURCES += $(ppc32_built_sources)
590 libfirm_la_SOURCES += $(ppc32_sources) $(ppc32_built_sources)
593 be/ppc32/ppc32_spec.pl \
594 be/ppc32/bearch_ppc32.h \
595 be/ppc32/bearch_ppc32_t.h \
596 be/ppc32/ppc32_emitter.h \
597 be/ppc32/ppc32_map_regs.h \
598 be/ppc32/ppc32_new_nodes.h \
599 be/ppc32/ppc32_nodes_attr.h \
600 be/ppc32/ppc32_transform_conv.h \
601 be/ppc32/ppc32_transform.h
603 $(srcdir)/be/ppc32/gen_ppc32_new_nodes.c.inl $(srcdir)/be/ppc32/gen_ppc32_new_nodes.h: \
604 be/ppc32/ppc32_spec.pl be/scripts/generate_new_opcodes.pl
605 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/ppc32/ppc32_spec.pl $(srcdir)/be/ppc32
607 $(srcdir)/be/ppc32/gen_ppc32_emitter.c $(srcdir)/be/ppc32/gen_ppc32_emitter.h: \
608 be/ppc32/ppc32_spec.pl be/scripts/generate_emitter.pl
609 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/ppc32/ppc32_spec.pl $(srcdir)/be/ppc32
611 $(srcdir)/be/ppc32/gen_ppc32_machine.c $(srcdir)/be/ppc32/gen_ppc32_machine.h: \
612 be/ppc32/ppc32_spec.pl be/scripts/generate_machine.pl
613 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/ppc32/ppc32_spec.pl $(srcdir)/be/ppc32
615 $(srcdir)/be/ppc32/gen_ppc32_regalloc_if.c $(srcdir)/be/ppc32/gen_ppc32_regalloc_if.h: \
616 be/ppc32/ppc32_spec.pl be/scripts/generate_machine.pl
617 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/ppc32/ppc32_spec.pl $(srcdir)/be/ppc32
622 be/TEMPLATE/bearch_TEMPLATE.c \
623 be/TEMPLATE/TEMPLATE_emitter.c \
624 be/TEMPLATE/TEMPLATE_map_regs.c \
625 be/TEMPLATE/TEMPLATE_new_nodes.c \
626 be/TEMPLATE/TEMPLATE_transform.c
627 TEMPLATE_built_sources = \
628 be/TEMPLATE/gen_TEMPLATE_emitter.c \
629 be/TEMPLATE/gen_TEMPLATE_emitter.h \
630 be/TEMPLATE/gen_TEMPLATE_machine.c \
631 be/TEMPLATE/gen_TEMPLATE_machine.h \
632 be/TEMPLATE/gen_TEMPLATE_regalloc_if.c \
633 be/TEMPLATE/gen_TEMPLATE_regalloc_if.h \
634 be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl \
635 be/TEMPLATE/gen_TEMPLATE_new_nodes.h
636 MAINTAINERCLEANFILES += $(TEMPLATE_built_sources)
637 BUILT_SOURCES += $(TEMPLATE_built_sources)
638 libfirm_la_SOURCES += $(TEMPLATE_sources) $(TEMPLATE_built_sources)
641 be/TEMPLATE/TEMPLATE_spec.pl \
642 be/TEMPLATE/bearch_TEMPLATE.h \
643 be/TEMPLATE/bearch_TEMPLATE_t.h \
644 be/TEMPLATE/TEMPLATE_emitter.h \
645 be/TEMPLATE/TEMPLATE_map_regs.h \
646 be/TEMPLATE/TEMPLATE_new_nodes.h \
647 be/TEMPLATE/TEMPLATE_nodes_attr.h \
648 be/TEMPLATE/TEMPLATE_transform.h
650 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.h: \
651 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_new_opcodes.pl
652 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
654 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.h: \
655 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_emitter.pl
656 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
658 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_machine.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_machine.h: \
659 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_machine.pl
660 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
662 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.h: \
663 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_machine.pl
664 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE