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
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 \
112 be/bepressurestat.c \
118 be/beschedregpress.c \
121 be/beschedtrivial.c \
122 be/bespillbelady2.c \
123 be/bespillbelady3.c \
127 be/bespilloptions.c \
141 common/firm_common.c \
144 common/statistics.c \
169 ir/irlinkednodemap.c \
170 ir/irlinkednodeset.c \
185 libcore/lc_appendable.c \
186 libcore/lc_config_lexer.c \
187 libcore/lc_config_parser.c \
189 libcore/lc_opts_enum.c \
190 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 \
198 lower/lower_switch.c \
201 obstack/obstack_printf.c \
204 opt/code_placement.c \
208 opt/critical_edges.c \
222 opt/opt_polymorphy.c \
226 opt/scalar_replace.c \
237 stat/stat_liveness.c \
241 tr/tr_inheritance.c \
244 tr/type_finalization.c \
284 be/bechordal_draw.h \
295 be/bepressurestat.h \
302 be/bespilloptions.h \
323 common/statistics.h \
327 common/firm_common_t.h \
351 ir/irlinkednodemap.h \
357 ir/irlinkednodeset.h \
362 libcore/lc_defines.h \
363 libcore/lc_common_t.h \
364 libcore/lc_parser_t.h \
365 libcore/do_bisonflex.sh \
367 libcore/lc_appendable.h \
368 libcore/lc_config_parser.h \
369 libcore/lc_printf_arg_types.def \
370 libcore/lc_printf.h \
371 libcore/lc_opts_enum.h \
372 libcore/lc_config.h \
373 libcore/lc_opts_t.h \
376 opt/scalar_replace.h \
381 opt/opt_polymorphy.h \
397 ir/gen_irio_export.inl \
398 ir/gen_irio_import.inl \
399 ir/gen_irio_lex.inl \
400 ir/gen_ir_cons.c.inl \
401 ir/gen_irnode.c.inl \
403 be/scripts/generate_emitter_new.pl \
404 be/scripts/generate_emitter.pl \
405 be/scripts/generate_machine.pl \
406 be/scripts/generate_new_opcodes.pl \
407 be/scripts/generate_regalloc_if.pl
409 EXTRA_DIST += libcore/do_bisonflex.sh \
410 libcore/lc_config_parser.y \
411 libcore/lc_config_lexer.l
416 be/ia32/bearch_ia32.c \
417 be/ia32/ia32_architecture.c \
418 be/ia32/ia32_address_mode.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_regalloc_if.c \
437 be/ia32/gen_ia32_regalloc_if.h \
438 be/ia32/gen_ia32_new_nodes.c.inl \
439 be/ia32/gen_ia32_new_nodes.h
440 MAINTAINERCLEANFILES = $(ia32_built_sources)
441 BUILT_SOURCES = $(ia32_built_sources)
442 libfirm_la_SOURCES += $(ia32_sources) $(ia32_built_sources)
445 be/ia32/ia32_spec.pl \
446 be/ia32/ia32_simd_spec.pl \
447 be/ia32/bearch_ia32_t.h \
448 be/ia32/ia32_architecture.h \
449 be/ia32/ia32_address_mode.h \
450 be/ia32/ia32_common_transform.h \
451 be/ia32/ia32_dbg_stat.h \
452 be/ia32/ia32_emitter.h \
453 be/ia32/ia32_finish.h \
455 be/ia32/ia32_map_regs.h \
456 be/ia32/ia32_new_nodes.h \
457 be/ia32/ia32_nodes_attr.h \
458 be/ia32/ia32_optimize.h \
459 be/ia32/ia32_transform.h \
460 be/ia32/ia32_util.h \
463 $(srcdir)/be/ia32/gen_ia32_new_nodes.c.inl $(srcdir)/be/ia32/gen_ia32_new_nodes.h: \
464 be/ia32/ia32_spec.pl be/scripts/generate_new_opcodes.pl
465 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
467 $(srcdir)/be/ia32/gen_ia32_emitter.c $(srcdir)/be/ia32/gen_ia32_emitter.h: \
468 be/ia32/ia32_spec.pl be/scripts/generate_emitter.pl
469 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
471 $(srcdir)/be/ia32/gen_ia32_machine.c $(srcdir)/be/ia32/gen_ia32_machine.h: \
472 be/ia32/ia32_spec.pl be/scripts/generate_machine.pl
473 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
475 $(srcdir)/be/ia32/gen_ia32_regalloc_if.c $(srcdir)/be/ia32/gen_ia32_regalloc_if.h: \
476 be/ia32/ia32_spec.pl be/scripts/generate_regalloc_if.pl
477 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
482 be/arm/bearch_arm.c \
483 be/arm/arm_emitter.c \
484 be/arm/arm_map_regs.c \
485 be/arm/arm_new_nodes.c \
486 be/arm/arm_optimize.c \
487 be/arm/arm_transform.c
488 arm_built_sources = \
489 be/arm/gen_arm_emitter.c \
490 be/arm/gen_arm_emitter.h \
491 be/arm/gen_arm_machine.c \
492 be/arm/gen_arm_machine.h \
493 be/arm/gen_arm_regalloc_if.c \
494 be/arm/gen_arm_regalloc_if.h \
495 be/arm/gen_arm_new_nodes.c.inl \
496 be/arm/gen_arm_new_nodes.h
497 MAINTAINERCLEANFILES += $(arm_built_sources)
498 BUILT_SOURCES += $(arm_built_sources)
499 libfirm_la_SOURCES += $(arm_sources) $(arm_built_sources)
504 be/arm/arm_emitter.h \
505 be/arm/arm_map_regs.h \
506 be/arm/arm_new_nodes.h \
507 be/arm/arm_nodes_attr.h \
508 be/arm/arm_optimize.h \
509 be/arm/arm_transform.h \
510 be/arm/bearch_arm.h \
511 be/arm/bearch_arm_t.h
513 $(srcdir)/be/arm/gen_arm_new_nodes.c.inl $(srcdir)/be/arm/gen_arm_new_nodes.h: \
514 be/arm/arm_spec.pl be/scripts/generate_new_opcodes.pl
515 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
517 $(srcdir)/be/arm/gen_arm_emitter.c $(srcdir)/be/arm/gen_arm_emitter.h: \
518 be/arm/arm_spec.pl be/scripts/generate_emitter.pl
519 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
521 $(srcdir)/be/arm/gen_arm_machine.c $(srcdir)/be/arm/gen_arm_machine.h: \
522 be/arm/arm_spec.pl be/scripts/generate_machine.pl
523 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
525 $(srcdir)/be/arm/gen_arm_regalloc_if.c $(srcdir)/be/arm/gen_arm_regalloc_if.h: \
526 be/arm/arm_spec.pl be/scripts/generate_machine.pl
527 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
532 be/mips/bearch_mips.c \
533 be/mips/mips_emitter.c \
534 be/mips/mips_map_regs.c \
535 be/mips/mips_new_nodes.c \
536 be/mips/mips_scheduler.c \
537 be/mips/mips_transform.c
538 mips_built_sources = \
539 be/mips/gen_mips_emitter.c \
540 be/mips/gen_mips_emitter.h \
541 be/mips/gen_mips_machine.c \
542 be/mips/gen_mips_machine.h \
543 be/mips/gen_mips_regalloc_if.c \
544 be/mips/gen_mips_regalloc_if.h \
545 be/mips/gen_mips_new_nodes.c.inl \
546 be/mips/gen_mips_new_nodes.h
547 MAINTAINERCLEANFILES += $(mips_built_sources)
548 BUILT_SOURCES += $(mips_built_sources)
549 libfirm_la_SOURCES += $(mips_sources) $(mips_built_sources)
552 be/mips/mips_spec.pl \
553 be/mips/bearch_mips.h \
554 be/mips/bearch_mips_t.h \
555 be/mips/mips_emitter.h \
556 be/mips/mips_map_regs.h \
557 be/mips/mips_new_nodes.h \
558 be/mips/mips_nodes_attr.h \
559 be/mips/mips_scheduler.h \
560 be/mips/mips_transform.h \
563 $(srcdir)/be/mips/gen_mips_new_nodes.c.inl $(srcdir)/be/mips/gen_mips_new_nodes.h: \
564 be/mips/mips_spec.pl be/scripts/generate_new_opcodes.pl
565 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
567 $(srcdir)/be/mips/gen_mips_emitter.c $(srcdir)/be/mips/gen_mips_emitter.h: \
568 be/mips/mips_spec.pl be/scripts/generate_emitter.pl
569 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
571 $(srcdir)/be/mips/gen_mips_machine.c $(srcdir)/be/mips/gen_mips_machine.h: \
572 be/mips/mips_spec.pl be/scripts/generate_machine.pl
573 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
575 $(srcdir)/be/mips/gen_mips_regalloc_if.c $(srcdir)/be/mips/gen_mips_regalloc_if.h: \
576 be/mips/mips_spec.pl be/scripts/generate_machine.pl
577 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
582 be/ppc32/bearch_ppc32.c \
583 be/ppc32/ppc32_emitter.c \
584 be/ppc32/ppc32_map_regs.c \
585 be/ppc32/ppc32_new_nodes.c \
586 be/ppc32/ppc32_transform.c \
587 be/ppc32/ppc32_transform_conv.c
588 ppc32_built_sources = \
589 be/ppc32/gen_ppc32_emitter.c \
590 be/ppc32/gen_ppc32_emitter.h \
591 be/ppc32/gen_ppc32_machine.c \
592 be/ppc32/gen_ppc32_machine.h \
593 be/ppc32/gen_ppc32_regalloc_if.c \
594 be/ppc32/gen_ppc32_regalloc_if.h \
595 be/ppc32/gen_ppc32_new_nodes.c.inl \
596 be/ppc32/gen_ppc32_new_nodes.h
597 MAINTAINERCLEANFILES += $(ppc32_built_sources)
598 BUILT_SOURCES += $(ppc32_built_sources)
599 libfirm_la_SOURCES += $(ppc32_sources) $(ppc32_built_sources)
602 be/ppc32/ppc32_spec.pl \
603 be/ppc32/bearch_ppc32.h \
604 be/ppc32/bearch_ppc32_t.h \
605 be/ppc32/ppc32_emitter.h \
606 be/ppc32/ppc32_map_regs.h \
607 be/ppc32/ppc32_new_nodes.h \
608 be/ppc32/ppc32_nodes_attr.h \
609 be/ppc32/ppc32_transform_conv.h \
610 be/ppc32/ppc32_transform.h
612 $(srcdir)/be/ppc32/gen_ppc32_new_nodes.c.inl $(srcdir)/be/ppc32/gen_ppc32_new_nodes.h: \
613 be/ppc32/ppc32_spec.pl be/scripts/generate_new_opcodes.pl
614 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/ppc32/ppc32_spec.pl $(srcdir)/be/ppc32
616 $(srcdir)/be/ppc32/gen_ppc32_emitter.c $(srcdir)/be/ppc32/gen_ppc32_emitter.h: \
617 be/ppc32/ppc32_spec.pl be/scripts/generate_emitter.pl
618 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/ppc32/ppc32_spec.pl $(srcdir)/be/ppc32
620 $(srcdir)/be/ppc32/gen_ppc32_machine.c $(srcdir)/be/ppc32/gen_ppc32_machine.h: \
621 be/ppc32/ppc32_spec.pl be/scripts/generate_machine.pl
622 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/ppc32/ppc32_spec.pl $(srcdir)/be/ppc32
624 $(srcdir)/be/ppc32/gen_ppc32_regalloc_if.c $(srcdir)/be/ppc32/gen_ppc32_regalloc_if.h: \
625 be/ppc32/ppc32_spec.pl be/scripts/generate_machine.pl
626 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/ppc32/ppc32_spec.pl $(srcdir)/be/ppc32
631 be/TEMPLATE/bearch_TEMPLATE.c \
632 be/TEMPLATE/TEMPLATE_emitter.c \
633 be/TEMPLATE/TEMPLATE_map_regs.c \
634 be/TEMPLATE/TEMPLATE_new_nodes.c \
635 be/TEMPLATE/TEMPLATE_transform.c
636 TEMPLATE_built_sources = \
637 be/TEMPLATE/gen_TEMPLATE_emitter.c \
638 be/TEMPLATE/gen_TEMPLATE_emitter.h \
639 be/TEMPLATE/gen_TEMPLATE_machine.c \
640 be/TEMPLATE/gen_TEMPLATE_machine.h \
641 be/TEMPLATE/gen_TEMPLATE_regalloc_if.c \
642 be/TEMPLATE/gen_TEMPLATE_regalloc_if.h \
643 be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl \
644 be/TEMPLATE/gen_TEMPLATE_new_nodes.h
645 MAINTAINERCLEANFILES += $(TEMPLATE_built_sources)
646 BUILT_SOURCES += $(TEMPLATE_built_sources)
647 libfirm_la_SOURCES += $(TEMPLATE_sources) $(TEMPLATE_built_sources)
650 be/TEMPLATE/TEMPLATE_spec.pl \
651 be/TEMPLATE/bearch_TEMPLATE.h \
652 be/TEMPLATE/bearch_TEMPLATE_t.h \
653 be/TEMPLATE/TEMPLATE_emitter.h \
654 be/TEMPLATE/TEMPLATE_map_regs.h \
655 be/TEMPLATE/TEMPLATE_new_nodes.h \
656 be/TEMPLATE/TEMPLATE_nodes_attr.h \
657 be/TEMPLATE/TEMPLATE_transform.h
659 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.h: \
660 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_new_opcodes.pl
661 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
663 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.h: \
664 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_emitter.pl
665 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
667 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_machine.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_machine.h: \
668 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_machine.pl
669 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
671 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.h: \
672 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_machine.pl
673 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE