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
404 be/ia32/bearch_ia32.c \
405 be/ia32/ia32_architecture.c \
406 be/ia32/ia32_address_mode.c \
407 be/ia32/ia32_common_transform.c \
408 be/ia32/ia32_emitter.c \
409 be/ia32/ia32_finish.c \
411 be/ia32/ia32_intrinsics.c \
412 be/ia32/ia32_map_regs.c \
413 be/ia32/ia32_new_nodes.c \
414 be/ia32/ia32_optimize.c \
415 be/ia32/ia32_transform.c \
416 be/ia32/ia32_util.c \
419 ia32_built_sources = \
420 be/ia32/gen_ia32_emitter.c \
421 be/ia32/gen_ia32_emitter.h \
422 be/ia32/gen_ia32_machine.c \
423 be/ia32/gen_ia32_machine.h \
424 be/ia32/gen_ia32_regalloc_if.c \
425 be/ia32/gen_ia32_regalloc_if.h \
426 be/ia32/gen_ia32_new_nodes.c.inl \
427 be/ia32/gen_ia32_new_nodes.h
428 MAINTAINERCLEANFILES = $(ia32_built_sources)
429 BUILT_SOURCES = $(ia32_built_sources)
430 libfirm_la_SOURCES += $(ia32_sources) $(ia32_built_sources)
433 be/ia32/ia32_spec.pl \
434 be/ia32/ia32_simd_spec.pl \
435 be/ia32/bearch_ia32_t.h \
436 be/ia32/ia32_architecture.h \
437 be/ia32/ia32_address_mode.h \
438 be/ia32/ia32_common_transform.h \
439 be/ia32/ia32_dbg_stat.h \
440 be/ia32/ia32_emitter.h \
441 be/ia32/ia32_finish.h \
443 be/ia32/ia32_map_regs.h \
444 be/ia32/ia32_new_nodes.h \
445 be/ia32/ia32_nodes_attr.h \
446 be/ia32/ia32_optimize.h \
447 be/ia32/ia32_transform.h \
448 be/ia32/ia32_util.h \
451 $(srcdir)/be/ia32/gen_ia32_new_nodes.c.inl $(srcdir)/be/ia32/gen_ia32_new_nodes.h: \
452 be/ia32/ia32_spec.pl be/scripts/generate_new_opcodes.pl
453 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
455 $(srcdir)/be/ia32/gen_ia32_emitter.c $(srcdir)/be/ia32/gen_ia32_emitter.h: \
456 be/ia32/ia32_spec.pl be/scripts/generate_emitter.pl
457 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
459 $(srcdir)/be/ia32/gen_ia32_machine.c $(srcdir)/be/ia32/gen_ia32_machine.h: \
460 be/ia32/ia32_spec.pl be/scripts/generate_machine.pl
461 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
463 $(srcdir)/be/ia32/gen_ia32_regalloc_if.c $(srcdir)/be/ia32/gen_ia32_regalloc_if.h: \
464 be/ia32/ia32_spec.pl be/scripts/generate_regalloc_if.pl
465 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
470 be/arm/bearch_arm.c \
471 be/arm/arm_emitter.c \
472 be/arm/arm_map_regs.c \
473 be/arm/arm_new_nodes.c \
474 be/arm/arm_optimize.c \
475 be/arm/arm_transform.c
476 arm_built_sources = \
477 be/arm/gen_arm_emitter.c \
478 be/arm/gen_arm_emitter.h \
479 be/arm/gen_arm_machine.c \
480 be/arm/gen_arm_machine.h \
481 be/arm/gen_arm_regalloc_if.c \
482 be/arm/gen_arm_regalloc_if.h \
483 be/arm/gen_arm_new_nodes.c.inl \
484 be/arm/gen_arm_new_nodes.h
485 MAINTAINERCLEANFILES += $(arm_built_sources)
486 BUILT_SOURCES += $(arm_built_sources)
487 libfirm_la_SOURCES += $(arm_sources) $(arm_built_sources)
492 be/arm/arm_emitter.h \
493 be/arm/arm_map_regs.h \
494 be/arm/arm_new_nodes.h \
495 be/arm/arm_nodes_attr.h \
496 be/arm/arm_optimize.h \
497 be/arm/arm_transform.h \
498 be/arm/bearch_arm.h \
499 be/arm/bearch_arm_t.h
501 $(srcdir)/be/arm/gen_arm_new_nodes.c.inl $(srcdir)/be/arm/gen_arm_new_nodes.h: \
502 be/arm/arm_spec.pl be/scripts/generate_new_opcodes.pl
503 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
505 $(srcdir)/be/arm/gen_arm_emitter.c $(srcdir)/be/arm/gen_arm_emitter.h: \
506 be/arm/arm_spec.pl be/scripts/generate_emitter.pl
507 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
509 $(srcdir)/be/arm/gen_arm_machine.c $(srcdir)/be/arm/gen_arm_machine.h: \
510 be/arm/arm_spec.pl be/scripts/generate_machine.pl
511 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
513 $(srcdir)/be/arm/gen_arm_regalloc_if.c $(srcdir)/be/arm/gen_arm_regalloc_if.h: \
514 be/arm/arm_spec.pl be/scripts/generate_machine.pl
515 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
520 be/mips/bearch_mips.c \
521 be/mips/mips_emitter.c \
522 be/mips/mips_map_regs.c \
523 be/mips/mips_new_nodes.c \
524 be/mips/mips_scheduler.c \
525 be/mips/mips_transform.c
526 mips_built_sources = \
527 be/mips/gen_mips_emitter.c \
528 be/mips/gen_mips_emitter.h \
529 be/mips/gen_mips_machine.c \
530 be/mips/gen_mips_machine.h \
531 be/mips/gen_mips_regalloc_if.c \
532 be/mips/gen_mips_regalloc_if.h \
533 be/mips/gen_mips_new_nodes.c.inl \
534 be/mips/gen_mips_new_nodes.h
535 MAINTAINERCLEANFILES += $(mips_built_sources)
536 BUILT_SOURCES += $(mips_built_sources)
537 libfirm_la_SOURCES += $(mips_sources) $(mips_built_sources)
540 be/mips/mips_spec.pl \
541 be/mips/bearch_mips.h \
542 be/mips/bearch_mips_t.h \
543 be/mips/mips_emitter.h \
544 be/mips/mips_map_regs.h \
545 be/mips/mips_new_nodes.h \
546 be/mips/mips_nodes_attr.h \
547 be/mips/mips_scheduler.h \
548 be/mips/mips_transform.h \
551 $(srcdir)/be/mips/gen_mips_new_nodes.c.inl $(srcdir)/be/mips/gen_mips_new_nodes.h: \
552 be/mips/mips_spec.pl be/scripts/generate_new_opcodes.pl
553 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
555 $(srcdir)/be/mips/gen_mips_emitter.c $(srcdir)/be/mips/gen_mips_emitter.h: \
556 be/mips/mips_spec.pl be/scripts/generate_emitter.pl
557 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
559 $(srcdir)/be/mips/gen_mips_machine.c $(srcdir)/be/mips/gen_mips_machine.h: \
560 be/mips/mips_spec.pl be/scripts/generate_machine.pl
561 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
563 $(srcdir)/be/mips/gen_mips_regalloc_if.c $(srcdir)/be/mips/gen_mips_regalloc_if.h: \
564 be/mips/mips_spec.pl be/scripts/generate_machine.pl
565 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
570 be/ppc32/bearch_ppc32.c \
571 be/ppc32/ppc32_emitter.c \
572 be/ppc32/ppc32_map_regs.c \
573 be/ppc32/ppc32_new_nodes.c \
574 be/ppc32/ppc32_transform.c \
575 be/ppc32/ppc32_transform_conv.c
576 ppc32_built_sources = \
577 be/ppc32/gen_ppc32_emitter.c \
578 be/ppc32/gen_ppc32_emitter.h \
579 be/ppc32/gen_ppc32_machine.c \
580 be/ppc32/gen_ppc32_machine.h \
581 be/ppc32/gen_ppc32_regalloc_if.c \
582 be/ppc32/gen_ppc32_regalloc_if.h \
583 be/ppc32/gen_ppc32_new_nodes.c.inl \
584 be/ppc32/gen_ppc32_new_nodes.h
585 MAINTAINERCLEANFILES += $(ppc32_built_sources)
586 BUILT_SOURCES += $(ppc32_built_sources)
587 libfirm_la_SOURCES += $(ppc32_sources) $(ppc32_built_sources)
590 be/ppc32/ppc32_spec.pl \
591 be/ppc32/bearch_ppc32.h \
592 be/ppc32/bearch_ppc32_t.h \
593 be/ppc32/ppc32_emitter.h \
594 be/ppc32/ppc32_map_regs.h \
595 be/ppc32/ppc32_new_nodes.h \
596 be/ppc32/ppc32_nodes_attr.h \
597 be/ppc32/ppc32_transform_conv.h \
598 be/ppc32/ppc32_transform.h
600 $(srcdir)/be/ppc32/gen_ppc32_new_nodes.c.inl $(srcdir)/be/ppc32/gen_ppc32_new_nodes.h: \
601 be/ppc32/ppc32_spec.pl be/scripts/generate_new_opcodes.pl
602 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/ppc32/ppc32_spec.pl $(srcdir)/be/ppc32
604 $(srcdir)/be/ppc32/gen_ppc32_emitter.c $(srcdir)/be/ppc32/gen_ppc32_emitter.h: \
605 be/ppc32/ppc32_spec.pl be/scripts/generate_emitter.pl
606 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/ppc32/ppc32_spec.pl $(srcdir)/be/ppc32
608 $(srcdir)/be/ppc32/gen_ppc32_machine.c $(srcdir)/be/ppc32/gen_ppc32_machine.h: \
609 be/ppc32/ppc32_spec.pl be/scripts/generate_machine.pl
610 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/ppc32/ppc32_spec.pl $(srcdir)/be/ppc32
612 $(srcdir)/be/ppc32/gen_ppc32_regalloc_if.c $(srcdir)/be/ppc32/gen_ppc32_regalloc_if.h: \
613 be/ppc32/ppc32_spec.pl be/scripts/generate_machine.pl
614 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/ppc32/ppc32_spec.pl $(srcdir)/be/ppc32
619 be/TEMPLATE/bearch_TEMPLATE.c \
620 be/TEMPLATE/TEMPLATE_emitter.c \
621 be/TEMPLATE/TEMPLATE_map_regs.c \
622 be/TEMPLATE/TEMPLATE_new_nodes.c \
623 be/TEMPLATE/TEMPLATE_transform.c
624 TEMPLATE_built_sources = \
625 be/TEMPLATE/gen_TEMPLATE_emitter.c \
626 be/TEMPLATE/gen_TEMPLATE_emitter.h \
627 be/TEMPLATE/gen_TEMPLATE_machine.c \
628 be/TEMPLATE/gen_TEMPLATE_machine.h \
629 be/TEMPLATE/gen_TEMPLATE_regalloc_if.c \
630 be/TEMPLATE/gen_TEMPLATE_regalloc_if.h \
631 be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl \
632 be/TEMPLATE/gen_TEMPLATE_new_nodes.h
633 MAINTAINERCLEANFILES += $(TEMPLATE_built_sources)
634 BUILT_SOURCES += $(TEMPLATE_built_sources)
635 libfirm_la_SOURCES += $(TEMPLATE_sources) $(TEMPLATE_built_sources)
638 be/TEMPLATE/TEMPLATE_spec.pl \
639 be/TEMPLATE/bearch_TEMPLATE.h \
640 be/TEMPLATE/bearch_TEMPLATE_t.h \
641 be/TEMPLATE/TEMPLATE_emitter.h \
642 be/TEMPLATE/TEMPLATE_map_regs.h \
643 be/TEMPLATE/TEMPLATE_new_nodes.h \
644 be/TEMPLATE/TEMPLATE_nodes_attr.h \
645 be/TEMPLATE/TEMPLATE_transform.h
647 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.h: \
648 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_new_opcodes.pl
649 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
651 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.h: \
652 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_emitter.pl
653 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
655 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_machine.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_machine.h: \
656 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_machine.pl
657 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
659 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.h: \
660 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_machine.pl
661 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE