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_LDFLAGS = -no-undefined -release $(LT_RELEASE) -version-info $(LT_VERSION)
26 libfirm_la_SOURCES = \
45 ana/analyze_irg_args.c \
51 ana/execution_frequency.c \
52 ana/field_temperature.c \
54 ana/interval_analysis.c \
76 be/bechordal_common.c \
91 be/beemitter_binary.c \
113 be/bepbqpcoloring.c \
116 be/bepressurestat.c \
122 be/beschedregpress.c \
125 be/beschedtrivial.c \
126 be/bespillbelady2.c \
127 be/bespillbelady3.c \
145 common/firm_common.c \
169 ir/irlinkednodemap.c \
170 ir/irlinkednodeset.c \
186 libcore/lc_appendable.c \
187 libcore/lc_config_lexer.c \
188 libcore/lc_config_parser.c \
190 libcore/lc_opts_enum.c \
191 libcore/lc_printf.c \
192 lower/lower_calls.c \
193 lower/lower_copyb.c \
196 lower/lower_intrinsics.c \
197 lower/lower_mode_b.c \
199 lower/lower_switch.c \
201 obstack/obstack_printf.c \
204 opt/code_placement.c \
207 opt/critical_edges.c \
208 opt/dead_code_elimination.c \
212 opt/garbage_collect.c \
216 opt/jumpthreading.c \
225 opt/opt_polymorphy.c \
226 opt/parallelize_mem.c \
230 opt/scalar_replace.c \
241 stat/stat_liveness.c \
246 tr/tr_inheritance.c \
249 tr/type_finalization.c \
271 be/bechordal_common.h \
291 be/bechordal_draw.h \
302 be/bepressurestat.h \
308 be/beemitter_binary.h \
321 be/bepbqpcoloring.h \
358 ir/irlinkednodemap.h \
361 ir/irlinkednodeset.h \
363 libcore/lc_common_t.h \
364 libcore/lc_defines.h \
365 libcore/lc_parser_t.h \
366 libcore/do_bisonflex.sh \
367 libcore/lc_config_parser.h \
369 libcore/lc_printf_arg_types.def \
370 libcore/lc_appendable.h \
371 libcore/lc_printf.h \
372 libcore/lc_config.h \
373 libcore/lc_opts_t.h \
374 libcore/lc_opts_enum.h \
375 opt/scalar_replace.h \
379 opt/opt_polymorphy.h \
390 tr/compound_path_t.h \
397 ir/gen_ir_cons.c.inl \
398 ir/gen_irnode.c.inl \
399 ir/gen_irio_export.inl \
400 ir/gen_irio_import.inl \
401 ir/gen_irio_lex.inl \
402 be/scripts/generate_emitter_new.pl \
403 be/scripts/generate_emitter.pl \
404 be/scripts/generate_machine.pl \
405 be/scripts/generate_new_opcodes.pl \
406 be/scripts/generate_regalloc_if.pl
409 libcore/do_bisonflex.sh \
410 libcore/lc_config_lexer.l \
411 libcore/lc_config_parser.y
416 be/ia32/bearch_ia32.c \
417 be/ia32/ia32_address_mode.c \
418 be/ia32/ia32_architecture.c \
419 be/ia32/ia32_common_transform.c \
420 be/ia32/ia32_emitter.c \
421 be/ia32/ia32_finish.c \
423 be/ia32/ia32_intrinsics.c \
424 be/ia32/ia32_map_regs.c \
425 be/ia32/ia32_new_nodes.c \
426 be/ia32/ia32_optimize.c \
427 be/ia32/ia32_transform.c \
428 be/ia32/ia32_util.c \
431 ia32_built_sources = \
432 be/ia32/gen_ia32_emitter.c \
433 be/ia32/gen_ia32_emitter.h \
434 be/ia32/gen_ia32_machine.c \
435 be/ia32/gen_ia32_machine.h \
436 be/ia32/gen_ia32_new_nodes.c.inl \
437 be/ia32/gen_ia32_new_nodes.h \
438 be/ia32/gen_ia32_regalloc_if.c \
439 be/ia32/gen_ia32_regalloc_if.h
440 MAINTAINERCLEANFILES = $(ia32_built_sources)
441 BUILT_SOURCES = $(ia32_built_sources)
442 libfirm_la_SOURCES += $(ia32_sources) $(ia32_built_sources)
445 be/ia32/bearch_ia32_t.h \
446 be/ia32/ia32_address_mode.h \
447 be/ia32/ia32_architecture.h \
448 be/ia32/ia32_common_transform.h \
449 be/ia32/ia32_dbg_stat.h \
450 be/ia32/ia32_emitter.h \
451 be/ia32/ia32_finish.h \
453 be/ia32/ia32_map_regs.h \
454 be/ia32/ia32_new_nodes.h \
455 be/ia32/ia32_nodes_attr.h \
456 be/ia32/ia32_optimize.h \
457 be/ia32/ia32_spec.pl \
458 be/ia32/ia32_transform.h \
459 be/ia32/ia32_util.h \
462 $(srcdir)/be/ia32/gen_ia32_new_nodes.c.inl $(srcdir)/be/ia32/gen_ia32_new_nodes.h: \
463 be/ia32/ia32_spec.pl be/scripts/generate_new_opcodes.pl
464 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
466 $(srcdir)/be/ia32/gen_ia32_emitter.c $(srcdir)/be/ia32/gen_ia32_emitter.h: \
467 be/ia32/ia32_spec.pl be/scripts/generate_emitter.pl
468 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
470 $(srcdir)/be/ia32/gen_ia32_machine.c $(srcdir)/be/ia32/gen_ia32_machine.h: \
471 be/ia32/ia32_spec.pl be/scripts/generate_machine.pl
472 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
474 $(srcdir)/be/ia32/gen_ia32_regalloc_if.c $(srcdir)/be/ia32/gen_ia32_regalloc_if.h: \
475 be/ia32/ia32_spec.pl be/scripts/generate_regalloc_if.pl
476 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
481 be/arm/arm_emitter.c \
482 be/arm/arm_map_regs.c \
483 be/arm/arm_new_nodes.c \
484 be/arm/arm_optimize.c \
485 be/arm/arm_transform.c \
487 arm_built_sources = \
488 be/arm/gen_arm_emitter.c \
489 be/arm/gen_arm_emitter.h \
490 be/arm/gen_arm_machine.c \
491 be/arm/gen_arm_machine.h \
492 be/arm/gen_arm_new_nodes.c.inl \
493 be/arm/gen_arm_new_nodes.h \
494 be/arm/gen_arm_regalloc_if.c \
495 be/arm/gen_arm_regalloc_if.h
496 MAINTAINERCLEANFILES += $(arm_built_sources)
497 BUILT_SOURCES += $(arm_built_sources)
498 libfirm_la_SOURCES += $(arm_sources) $(arm_built_sources)
502 be/arm/arm_emitter.h \
503 be/arm/arm_map_regs.h \
504 be/arm/arm_new_nodes.h \
505 be/arm/arm_nodes_attr.h \
506 be/arm/arm_optimize.h \
508 be/arm/arm_transform.h \
509 be/arm/bearch_arm.h \
510 be/arm/bearch_arm_t.h
512 $(srcdir)/be/arm/gen_arm_new_nodes.c.inl $(srcdir)/be/arm/gen_arm_new_nodes.h: \
513 be/arm/arm_spec.pl be/scripts/generate_new_opcodes.pl
514 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
516 $(srcdir)/be/arm/gen_arm_emitter.c $(srcdir)/be/arm/gen_arm_emitter.h: \
517 be/arm/arm_spec.pl be/scripts/generate_emitter.pl
518 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
520 $(srcdir)/be/arm/gen_arm_machine.c $(srcdir)/be/arm/gen_arm_machine.h: \
521 be/arm/arm_spec.pl be/scripts/generate_machine.pl
522 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
524 $(srcdir)/be/arm/gen_arm_regalloc_if.c $(srcdir)/be/arm/gen_arm_regalloc_if.h: \
525 be/arm/arm_spec.pl be/scripts/generate_machine.pl
526 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
531 be/mips/bearch_mips.c \
532 be/mips/mips_emitter.c \
533 be/mips/mips_map_regs.c \
534 be/mips/mips_new_nodes.c \
535 be/mips/mips_scheduler.c \
536 be/mips/mips_transform.c
537 mips_built_sources = \
538 be/mips/gen_mips_emitter.c \
539 be/mips/gen_mips_emitter.h \
540 be/mips/gen_mips_machine.c \
541 be/mips/gen_mips_machine.h \
542 be/mips/gen_mips_new_nodes.c.inl \
543 be/mips/gen_mips_new_nodes.h \
544 be/mips/gen_mips_regalloc_if.c \
545 be/mips/gen_mips_regalloc_if.h
546 MAINTAINERCLEANFILES += $(mips_built_sources)
547 BUILT_SOURCES += $(mips_built_sources)
548 libfirm_la_SOURCES += $(mips_sources) $(mips_built_sources)
551 be/mips/bearch_mips.h \
552 be/mips/bearch_mips_t.h \
553 be/mips/mips_emitter.h \
554 be/mips/mips_map_regs.h \
555 be/mips/mips_new_nodes.h \
556 be/mips/mips_nodes_attr.h \
557 be/mips/mips_scheduler.h \
558 be/mips/mips_spec.pl \
559 be/mips/mips_transform.h \
562 $(srcdir)/be/mips/gen_mips_new_nodes.c.inl $(srcdir)/be/mips/gen_mips_new_nodes.h: \
563 be/mips/mips_spec.pl be/scripts/generate_new_opcodes.pl
564 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
566 $(srcdir)/be/mips/gen_mips_emitter.c $(srcdir)/be/mips/gen_mips_emitter.h: \
567 be/mips/mips_spec.pl be/scripts/generate_emitter.pl
568 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
570 $(srcdir)/be/mips/gen_mips_machine.c $(srcdir)/be/mips/gen_mips_machine.h: \
571 be/mips/mips_spec.pl be/scripts/generate_machine.pl
572 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
574 $(srcdir)/be/mips/gen_mips_regalloc_if.c $(srcdir)/be/mips/gen_mips_regalloc_if.h: \
575 be/mips/mips_spec.pl be/scripts/generate_machine.pl
576 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
581 be/sparc/sparc_emitter.c \
582 be/sparc/sparc_map_regs.c \
583 be/sparc/sparc_new_nodes.c \
584 be/sparc/sparc_transform.c \
585 be/sparc/bearch_sparc.c
586 sparc_built_sources = \
587 be/sparc/gen_sparc_emitter.c \
588 be/sparc/gen_sparc_emitter.h \
589 be/sparc/gen_sparc_machine.c \
590 be/sparc/gen_sparc_machine.h \
591 be/sparc/gen_sparc_new_nodes.c.inl \
592 be/sparc/gen_sparc_new_nodes.h \
593 be/sparc/gen_sparc_regalloc_if.c \
594 be/sparc/gen_sparc_regalloc_if.h
595 MAINTAINERCLEANFILES += $(sparc_built_sources)
596 BUILT_SOURCES += $(sparc_built_sources)
597 libfirm_la_SOURCES += $(sparc_sources) $(sparc_built_sources)
600 be/sparc/sparc_emitter.h \
601 be/sparc/sparc_map_regs.h \
602 be/sparc/sparc_new_nodes.h \
603 be/sparc/sparc_nodes_attr.h \
604 be/sparc/sparc_spec.pl \
605 be/sparc/sparc_transform.h \
606 be/sparc/bearch_sparc.h \
607 be/sparc/bearch_sparc_t.h
609 $(srcdir)/be/sparc/gen_sparc_new_nodes.c.inl $(srcdir)/be/sparc/gen_sparc_new_nodes.h: \
610 be/sparc/sparc_spec.pl be/scripts/generate_new_opcodes.pl
611 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
613 $(srcdir)/be/sparc/gen_sparc_emitter.c $(srcdir)/be/sparc/gen_sparc_emitter.h: \
614 be/sparc/sparc_spec.pl be/scripts/generate_emitter.pl
615 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
617 $(srcdir)/be/sparc/gen_sparc_machine.c $(srcdir)/be/sparc/gen_sparc_machine.h: \
618 be/sparc/sparc_spec.pl be/scripts/generate_machine.pl
619 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
621 $(srcdir)/be/sparc/gen_sparc_regalloc_if.c $(srcdir)/be/sparc/gen_sparc_regalloc_if.h: \
622 be/sparc/sparc_spec.pl be/scripts/generate_machine.pl
623 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
628 be/amd64/amd64_emitter.c \
629 be/amd64/amd64_new_nodes.c \
630 be/amd64/amd64_transform.c \
631 be/amd64/bearch_amd64.c
632 amd64_built_sources = \
633 be/amd64/gen_amd64_emitter.c \
634 be/amd64/gen_amd64_emitter.h \
635 be/amd64/gen_amd64_machine.c \
636 be/amd64/gen_amd64_machine.h \
637 be/amd64/gen_amd64_new_nodes.c.inl \
638 be/amd64/gen_amd64_new_nodes.h \
639 be/amd64/gen_amd64_regalloc_if.c \
640 be/amd64/gen_amd64_regalloc_if.h
641 MAINTAINERCLEANFILES += $(amd64_built_sources)
642 BUILT_SOURCES += $(amd64_built_sources)
643 libfirm_la_SOURCES += $(amd64_sources) $(amd64_built_sources)
646 be/amd64/amd64_emitter.h \
647 be/amd64/amd64_new_nodes.h \
648 be/amd64/amd64_nodes_attr.h \
649 be/amd64/amd64_spec.pl \
650 be/amd64/amd64_transform.h \
651 be/amd64/bearch_amd64_t.h
653 $(srcdir)/be/amd64/gen_amd64_new_nodes.c.inl $(srcdir)/be/amd64/gen_amd64_new_nodes.h: \
654 be/amd64/amd64_spec.pl be/scripts/generate_new_opcodes.pl
655 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
657 $(srcdir)/be/amd64/gen_amd64_emitter.c $(srcdir)/be/amd64/gen_amd64_emitter.h: \
658 be/amd64/amd64_spec.pl be/scripts/generate_emitter.pl
659 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
661 $(srcdir)/be/amd64/gen_amd64_machine.c $(srcdir)/be/amd64/gen_amd64_machine.h: \
662 be/amd64/amd64_spec.pl be/scripts/generate_machine.pl
663 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
665 $(srcdir)/be/amd64/gen_amd64_regalloc_if.c $(srcdir)/be/amd64/gen_amd64_regalloc_if.h: \
666 be/amd64/amd64_spec.pl be/scripts/generate_machine.pl
667 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
673 be/TEMPLATE/TEMPLATE_emitter.c \
674 be/TEMPLATE/TEMPLATE_new_nodes.c \
675 be/TEMPLATE/TEMPLATE_transform.c \
676 be/TEMPLATE/bearch_TEMPLATE.c
677 TEMPLATE_built_sources = \
678 be/TEMPLATE/gen_TEMPLATE_emitter.c \
679 be/TEMPLATE/gen_TEMPLATE_emitter.h \
680 be/TEMPLATE/gen_TEMPLATE_machine.c \
681 be/TEMPLATE/gen_TEMPLATE_machine.h \
682 be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl \
683 be/TEMPLATE/gen_TEMPLATE_new_nodes.h \
684 be/TEMPLATE/gen_TEMPLATE_regalloc_if.c \
685 be/TEMPLATE/gen_TEMPLATE_regalloc_if.h
686 MAINTAINERCLEANFILES += $(TEMPLATE_built_sources)
687 BUILT_SOURCES += $(TEMPLATE_built_sources)
688 libfirm_la_SOURCES += $(TEMPLATE_sources) $(TEMPLATE_built_sources)
691 be/TEMPLATE/TEMPLATE_emitter.h \
692 be/TEMPLATE/TEMPLATE_new_nodes.h \
693 be/TEMPLATE/TEMPLATE_nodes_attr.h \
694 be/TEMPLATE/TEMPLATE_spec.pl \
695 be/TEMPLATE/TEMPLATE_transform.h \
696 be/TEMPLATE/bearch_TEMPLATE_t.h
698 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.h: \
699 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_new_opcodes.pl
700 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
702 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.h: \
703 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_emitter.pl
704 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
706 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_machine.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_machine.h: \
707 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_machine.pl
708 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
710 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.h: \
711 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_machine.pl
712 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE