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 \
111 be/bepressurestat.c \
117 be/beschedregpress.c \
120 be/beschedtrivial.c \
121 be/bespillbelady2.c \
122 be/bespillbelady3.c \
126 be/bespilloptions.c \
130 be/bessadestrsimple.c \
141 common/firm_common.c \
144 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
405 be/ia32/bearch_ia32.c \
406 be/ia32/ia32_architecture.c \
407 be/ia32/ia32_address_mode.c \
408 be/ia32/ia32_common_transform.c \
409 be/ia32/ia32_emitter.c \
410 be/ia32/ia32_finish.c \
412 be/ia32/ia32_intrinsics.c \
413 be/ia32/ia32_map_regs.c \
414 be/ia32/ia32_new_nodes.c \
415 be/ia32/ia32_optimize.c \
416 be/ia32/ia32_transform.c \
417 be/ia32/ia32_util.c \
420 ia32_built_sources = \
421 be/ia32/gen_ia32_emitter.c \
422 be/ia32/gen_ia32_emitter.h \
423 be/ia32/gen_ia32_machine.c \
424 be/ia32/gen_ia32_machine.h \
425 be/ia32/gen_ia32_regalloc_if.c \
426 be/ia32/gen_ia32_regalloc_if.h \
427 be/ia32/gen_ia32_new_nodes.c.inl \
428 be/ia32/gen_ia32_new_nodes.h
429 MAINTAINERCLEANFILES = $(ia32_built_sources)
430 BUILT_SOURCES = $(ia32_built_sources)
431 libfirm_la_SOURCES += $(ia32_sources) $(ia32_built_sources)
434 be/ia32/ia32_spec.pl \
435 be/ia32/ia32_simd_spec.pl \
436 be/ia32/bearch_ia32_t.h \
437 be/ia32/ia32_architecture.h \
438 be/ia32/ia32_address_mode.h \
439 be/ia32/ia32_common_transform.h \
440 be/ia32/ia32_dbg_stat.h \
441 be/ia32/ia32_emitter.h \
442 be/ia32/ia32_finish.h \
444 be/ia32/ia32_map_regs.h \
445 be/ia32/ia32_new_nodes.h \
446 be/ia32/ia32_nodes_attr.h \
447 be/ia32/ia32_optimize.h \
448 be/ia32/ia32_transform.h \
449 be/ia32/ia32_util.h \
452 $(srcdir)/be/ia32/gen_ia32_new_nodes.c.inl $(srcdir)/be/ia32/gen_ia32_new_nodes.h: \
453 be/ia32/ia32_spec.pl be/scripts/generate_new_opcodes.pl
454 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
456 $(srcdir)/be/ia32/gen_ia32_emitter.c $(srcdir)/be/ia32/gen_ia32_emitter.h: \
457 be/ia32/ia32_spec.pl be/scripts/generate_emitter.pl
458 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
460 $(srcdir)/be/ia32/gen_ia32_machine.c $(srcdir)/be/ia32/gen_ia32_machine.h: \
461 be/ia32/ia32_spec.pl be/scripts/generate_machine.pl
462 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
464 $(srcdir)/be/ia32/gen_ia32_regalloc_if.c $(srcdir)/be/ia32/gen_ia32_regalloc_if.h: \
465 be/ia32/ia32_spec.pl be/scripts/generate_regalloc_if.pl
466 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
471 be/arm/bearch_arm.c \
472 be/arm/arm_emitter.c \
473 be/arm/arm_map_regs.c \
474 be/arm/arm_new_nodes.c \
475 be/arm/arm_optimize.c \
476 be/arm/arm_transform.c
477 arm_built_sources = \
478 be/arm/gen_arm_emitter.c \
479 be/arm/gen_arm_emitter.h \
480 be/arm/gen_arm_machine.c \
481 be/arm/gen_arm_machine.h \
482 be/arm/gen_arm_regalloc_if.c \
483 be/arm/gen_arm_regalloc_if.h \
484 be/arm/gen_arm_new_nodes.c.inl \
485 be/arm/gen_arm_new_nodes.h
486 MAINTAINERCLEANFILES += $(arm_built_sources)
487 BUILT_SOURCES += $(arm_built_sources)
488 libfirm_la_SOURCES += $(arm_sources) $(arm_built_sources)
493 be/arm/arm_emitter.h \
494 be/arm/arm_map_regs.h \
495 be/arm/arm_new_nodes.h \
496 be/arm/arm_nodes_attr.h \
497 be/arm/arm_optimize.h \
498 be/arm/arm_transform.h \
499 be/arm/bearch_arm.h \
500 be/arm/bearch_arm_t.h
502 $(srcdir)/be/arm/gen_arm_new_nodes.c.inl $(srcdir)/be/arm/gen_arm_new_nodes.h: \
503 be/arm/arm_spec.pl be/scripts/generate_new_opcodes.pl
504 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
506 $(srcdir)/be/arm/gen_arm_emitter.c $(srcdir)/be/arm/gen_arm_emitter.h: \
507 be/arm/arm_spec.pl be/scripts/generate_emitter.pl
508 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
510 $(srcdir)/be/arm/gen_arm_machine.c $(srcdir)/be/arm/gen_arm_machine.h: \
511 be/arm/arm_spec.pl be/scripts/generate_machine.pl
512 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
514 $(srcdir)/be/arm/gen_arm_regalloc_if.c $(srcdir)/be/arm/gen_arm_regalloc_if.h: \
515 be/arm/arm_spec.pl be/scripts/generate_machine.pl
516 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
521 be/mips/bearch_mips.c \
522 be/mips/mips_emitter.c \
523 be/mips/mips_map_regs.c \
524 be/mips/mips_new_nodes.c \
525 be/mips/mips_scheduler.c \
526 be/mips/mips_transform.c
527 mips_built_sources = \
528 be/mips/gen_mips_emitter.c \
529 be/mips/gen_mips_emitter.h \
530 be/mips/gen_mips_machine.c \
531 be/mips/gen_mips_machine.h \
532 be/mips/gen_mips_regalloc_if.c \
533 be/mips/gen_mips_regalloc_if.h \
534 be/mips/gen_mips_new_nodes.c.inl \
535 be/mips/gen_mips_new_nodes.h
536 MAINTAINERCLEANFILES += $(mips_built_sources)
537 BUILT_SOURCES += $(mips_built_sources)
538 libfirm_la_SOURCES += $(mips_sources) $(mips_built_sources)
541 be/mips/mips_spec.pl \
542 be/mips/bearch_mips.h \
543 be/mips/bearch_mips_t.h \
544 be/mips/mips_emitter.h \
545 be/mips/mips_map_regs.h \
546 be/mips/mips_new_nodes.h \
547 be/mips/mips_nodes_attr.h \
548 be/mips/mips_scheduler.h \
549 be/mips/mips_transform.h \
552 $(srcdir)/be/mips/gen_mips_new_nodes.c.inl $(srcdir)/be/mips/gen_mips_new_nodes.h: \
553 be/mips/mips_spec.pl be/scripts/generate_new_opcodes.pl
554 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
556 $(srcdir)/be/mips/gen_mips_emitter.c $(srcdir)/be/mips/gen_mips_emitter.h: \
557 be/mips/mips_spec.pl be/scripts/generate_emitter.pl
558 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
560 $(srcdir)/be/mips/gen_mips_machine.c $(srcdir)/be/mips/gen_mips_machine.h: \
561 be/mips/mips_spec.pl be/scripts/generate_machine.pl
562 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
564 $(srcdir)/be/mips/gen_mips_regalloc_if.c $(srcdir)/be/mips/gen_mips_regalloc_if.h: \
565 be/mips/mips_spec.pl be/scripts/generate_machine.pl
566 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
571 be/ppc32/bearch_ppc32.c \
572 be/ppc32/ppc32_emitter.c \
573 be/ppc32/ppc32_map_regs.c \
574 be/ppc32/ppc32_new_nodes.c \
575 be/ppc32/ppc32_transform.c \
576 be/ppc32/ppc32_transform_conv.c
577 ppc32_built_sources = \
578 be/ppc32/gen_ppc32_emitter.c \
579 be/ppc32/gen_ppc32_emitter.h \
580 be/ppc32/gen_ppc32_machine.c \
581 be/ppc32/gen_ppc32_machine.h \
582 be/ppc32/gen_ppc32_regalloc_if.c \
583 be/ppc32/gen_ppc32_regalloc_if.h \
584 be/ppc32/gen_ppc32_new_nodes.c.inl \
585 be/ppc32/gen_ppc32_new_nodes.h
586 MAINTAINERCLEANFILES += $(ppc32_built_sources)
587 BUILT_SOURCES += $(ppc32_built_sources)
588 libfirm_la_SOURCES += $(ppc32_sources) $(ppc32_built_sources)
591 be/ppc32/ppc32_spec.pl \
592 be/ppc32/bearch_ppc32.h \
593 be/ppc32/bearch_ppc32_t.h \
594 be/ppc32/ppc32_emitter.h \
595 be/ppc32/ppc32_map_regs.h \
596 be/ppc32/ppc32_new_nodes.h \
597 be/ppc32/ppc32_nodes_attr.h \
598 be/ppc32/ppc32_transform_conv.h \
599 be/ppc32/ppc32_transform.h
601 $(srcdir)/be/ppc32/gen_ppc32_new_nodes.c.inl $(srcdir)/be/ppc32/gen_ppc32_new_nodes.h: \
602 be/ppc32/ppc32_spec.pl be/scripts/generate_new_opcodes.pl
603 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/ppc32/ppc32_spec.pl $(srcdir)/be/ppc32
605 $(srcdir)/be/ppc32/gen_ppc32_emitter.c $(srcdir)/be/ppc32/gen_ppc32_emitter.h: \
606 be/ppc32/ppc32_spec.pl be/scripts/generate_emitter.pl
607 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/ppc32/ppc32_spec.pl $(srcdir)/be/ppc32
609 $(srcdir)/be/ppc32/gen_ppc32_machine.c $(srcdir)/be/ppc32/gen_ppc32_machine.h: \
610 be/ppc32/ppc32_spec.pl be/scripts/generate_machine.pl
611 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/ppc32/ppc32_spec.pl $(srcdir)/be/ppc32
613 $(srcdir)/be/ppc32/gen_ppc32_regalloc_if.c $(srcdir)/be/ppc32/gen_ppc32_regalloc_if.h: \
614 be/ppc32/ppc32_spec.pl be/scripts/generate_machine.pl
615 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/ppc32/ppc32_spec.pl $(srcdir)/be/ppc32
620 be/TEMPLATE/bearch_TEMPLATE.c \
621 be/TEMPLATE/TEMPLATE_emitter.c \
622 be/TEMPLATE/TEMPLATE_map_regs.c \
623 be/TEMPLATE/TEMPLATE_new_nodes.c \
624 be/TEMPLATE/TEMPLATE_transform.c
625 TEMPLATE_built_sources = \
626 be/TEMPLATE/gen_TEMPLATE_emitter.c \
627 be/TEMPLATE/gen_TEMPLATE_emitter.h \
628 be/TEMPLATE/gen_TEMPLATE_machine.c \
629 be/TEMPLATE/gen_TEMPLATE_machine.h \
630 be/TEMPLATE/gen_TEMPLATE_regalloc_if.c \
631 be/TEMPLATE/gen_TEMPLATE_regalloc_if.h \
632 be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl \
633 be/TEMPLATE/gen_TEMPLATE_new_nodes.h
634 MAINTAINERCLEANFILES += $(TEMPLATE_built_sources)
635 BUILT_SOURCES += $(TEMPLATE_built_sources)
636 libfirm_la_SOURCES += $(TEMPLATE_sources) $(TEMPLATE_built_sources)
639 be/TEMPLATE/TEMPLATE_spec.pl \
640 be/TEMPLATE/bearch_TEMPLATE.h \
641 be/TEMPLATE/bearch_TEMPLATE_t.h \
642 be/TEMPLATE/TEMPLATE_emitter.h \
643 be/TEMPLATE/TEMPLATE_map_regs.h \
644 be/TEMPLATE/TEMPLATE_new_nodes.h \
645 be/TEMPLATE/TEMPLATE_nodes_attr.h \
646 be/TEMPLATE/TEMPLATE_transform.h
648 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.h: \
649 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_new_opcodes.pl
650 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
652 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.h: \
653 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_emitter.pl
654 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
656 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_machine.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_machine.h: \
657 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_machine.pl
658 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
660 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.h: \
661 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_machine.pl
662 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE