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 \
111 be/bepressurestat.c \
117 be/beschedregpress.c \
120 be/beschedtrivial.c \
121 be/bespillbelady2.c \
122 be/bespillbelady3.c \
140 common/firm_common.c \
165 ir/irlinkednodemap.c \
166 ir/irlinkednodeset.c \
182 libcore/lc_appendable.c \
183 libcore/lc_config_lexer.c \
184 libcore/lc_config_parser.c \
186 libcore/lc_opts_enum.c \
187 libcore/lc_printf.c \
189 lower/lower_calls.c \
190 lower/lower_copyb.c \
193 lower/lower_intrinsics.c \
194 lower/lower_mode_b.c \
195 lower/lower_switch.c \
197 obstack/obstack_printf.c \
200 opt/code_placement.c \
202 opt/jumpthreading.c \
204 opt/critical_edges.c \
218 opt/opt_polymorphy.c \
222 opt/scalar_replace.c \
233 stat/stat_liveness.c \
237 tr/tr_inheritance.c \
240 tr/type_finalization.c \
280 be/bechordal_draw.h \
291 be/bepressurestat.h \
343 ir/irlinkednodemap.h \
349 ir/irlinkednodeset.h \
354 libcore/lc_defines.h \
355 libcore/lc_common_t.h \
356 libcore/lc_parser_t.h \
357 libcore/do_bisonflex.sh \
359 libcore/lc_appendable.h \
360 libcore/lc_config_parser.h \
361 libcore/lc_printf_arg_types.def \
362 libcore/lc_printf.h \
363 libcore/lc_opts_enum.h \
364 libcore/lc_config.h \
365 libcore/lc_opts_t.h \
366 opt/scalar_replace.h \
371 opt/opt_polymorphy.h \
387 ir/gen_irio_export.inl \
388 ir/gen_irio_import.inl \
389 ir/gen_irio_lex.inl \
390 ir/gen_ir_cons.c.inl \
391 ir/gen_irnode.c.inl \
393 be/scripts/generate_emitter_new.pl \
394 be/scripts/generate_emitter.pl \
395 be/scripts/generate_machine.pl \
396 be/scripts/generate_new_opcodes.pl \
397 be/scripts/generate_regalloc_if.pl
399 EXTRA_DIST += libcore/do_bisonflex.sh \
400 libcore/lc_config_parser.y \
401 libcore/lc_config_lexer.l
406 be/ia32/bearch_ia32.c \
407 be/ia32/ia32_architecture.c \
408 be/ia32/ia32_address_mode.c \
409 be/ia32/ia32_common_transform.c \
410 be/ia32/ia32_emitter.c \
411 be/ia32/ia32_finish.c \
413 be/ia32/ia32_intrinsics.c \
414 be/ia32/ia32_map_regs.c \
415 be/ia32/ia32_new_nodes.c \
416 be/ia32/ia32_optimize.c \
417 be/ia32/ia32_transform.c \
418 be/ia32/ia32_util.c \
421 ia32_built_sources = \
422 be/ia32/gen_ia32_emitter.c \
423 be/ia32/gen_ia32_emitter.h \
424 be/ia32/gen_ia32_machine.c \
425 be/ia32/gen_ia32_machine.h \
426 be/ia32/gen_ia32_regalloc_if.c \
427 be/ia32/gen_ia32_regalloc_if.h \
428 be/ia32/gen_ia32_new_nodes.c.inl \
429 be/ia32/gen_ia32_new_nodes.h
430 MAINTAINERCLEANFILES = $(ia32_built_sources)
431 BUILT_SOURCES = $(ia32_built_sources)
432 libfirm_la_SOURCES += $(ia32_sources) $(ia32_built_sources)
435 be/ia32/ia32_spec.pl \
436 be/ia32/ia32_simd_spec.pl \
437 be/ia32/bearch_ia32_t.h \
438 be/ia32/ia32_architecture.h \
439 be/ia32/ia32_address_mode.h \
440 be/ia32/ia32_common_transform.h \
441 be/ia32/ia32_dbg_stat.h \
442 be/ia32/ia32_emitter.h \
443 be/ia32/ia32_finish.h \
445 be/ia32/ia32_map_regs.h \
446 be/ia32/ia32_new_nodes.h \
447 be/ia32/ia32_nodes_attr.h \
448 be/ia32/ia32_optimize.h \
449 be/ia32/ia32_transform.h \
450 be/ia32/ia32_util.h \
453 $(srcdir)/be/ia32/gen_ia32_new_nodes.c.inl $(srcdir)/be/ia32/gen_ia32_new_nodes.h: \
454 be/ia32/ia32_spec.pl be/scripts/generate_new_opcodes.pl
455 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
457 $(srcdir)/be/ia32/gen_ia32_emitter.c $(srcdir)/be/ia32/gen_ia32_emitter.h: \
458 be/ia32/ia32_spec.pl be/scripts/generate_emitter.pl
459 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
461 $(srcdir)/be/ia32/gen_ia32_machine.c $(srcdir)/be/ia32/gen_ia32_machine.h: \
462 be/ia32/ia32_spec.pl be/scripts/generate_machine.pl
463 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
465 $(srcdir)/be/ia32/gen_ia32_regalloc_if.c $(srcdir)/be/ia32/gen_ia32_regalloc_if.h: \
466 be/ia32/ia32_spec.pl be/scripts/generate_regalloc_if.pl
467 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
472 be/arm/bearch_arm.c \
473 be/arm/arm_emitter.c \
474 be/arm/arm_map_regs.c \
475 be/arm/arm_new_nodes.c \
476 be/arm/arm_optimize.c \
477 be/arm/arm_transform.c
478 arm_built_sources = \
479 be/arm/gen_arm_emitter.c \
480 be/arm/gen_arm_emitter.h \
481 be/arm/gen_arm_machine.c \
482 be/arm/gen_arm_machine.h \
483 be/arm/gen_arm_regalloc_if.c \
484 be/arm/gen_arm_regalloc_if.h \
485 be/arm/gen_arm_new_nodes.c.inl \
486 be/arm/gen_arm_new_nodes.h
487 MAINTAINERCLEANFILES += $(arm_built_sources)
488 BUILT_SOURCES += $(arm_built_sources)
489 libfirm_la_SOURCES += $(arm_sources) $(arm_built_sources)
494 be/arm/arm_emitter.h \
495 be/arm/arm_map_regs.h \
496 be/arm/arm_new_nodes.h \
497 be/arm/arm_nodes_attr.h \
498 be/arm/arm_optimize.h \
499 be/arm/arm_transform.h \
500 be/arm/bearch_arm.h \
501 be/arm/bearch_arm_t.h
503 $(srcdir)/be/arm/gen_arm_new_nodes.c.inl $(srcdir)/be/arm/gen_arm_new_nodes.h: \
504 be/arm/arm_spec.pl be/scripts/generate_new_opcodes.pl
505 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
507 $(srcdir)/be/arm/gen_arm_emitter.c $(srcdir)/be/arm/gen_arm_emitter.h: \
508 be/arm/arm_spec.pl be/scripts/generate_emitter.pl
509 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
511 $(srcdir)/be/arm/gen_arm_machine.c $(srcdir)/be/arm/gen_arm_machine.h: \
512 be/arm/arm_spec.pl be/scripts/generate_machine.pl
513 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
515 $(srcdir)/be/arm/gen_arm_regalloc_if.c $(srcdir)/be/arm/gen_arm_regalloc_if.h: \
516 be/arm/arm_spec.pl be/scripts/generate_machine.pl
517 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
522 be/mips/bearch_mips.c \
523 be/mips/mips_emitter.c \
524 be/mips/mips_map_regs.c \
525 be/mips/mips_new_nodes.c \
526 be/mips/mips_scheduler.c \
527 be/mips/mips_transform.c
528 mips_built_sources = \
529 be/mips/gen_mips_emitter.c \
530 be/mips/gen_mips_emitter.h \
531 be/mips/gen_mips_machine.c \
532 be/mips/gen_mips_machine.h \
533 be/mips/gen_mips_regalloc_if.c \
534 be/mips/gen_mips_regalloc_if.h \
535 be/mips/gen_mips_new_nodes.c.inl \
536 be/mips/gen_mips_new_nodes.h
537 MAINTAINERCLEANFILES += $(mips_built_sources)
538 BUILT_SOURCES += $(mips_built_sources)
539 libfirm_la_SOURCES += $(mips_sources) $(mips_built_sources)
542 be/mips/mips_spec.pl \
543 be/mips/bearch_mips.h \
544 be/mips/bearch_mips_t.h \
545 be/mips/mips_emitter.h \
546 be/mips/mips_map_regs.h \
547 be/mips/mips_new_nodes.h \
548 be/mips/mips_nodes_attr.h \
549 be/mips/mips_scheduler.h \
550 be/mips/mips_transform.h \
553 $(srcdir)/be/mips/gen_mips_new_nodes.c.inl $(srcdir)/be/mips/gen_mips_new_nodes.h: \
554 be/mips/mips_spec.pl be/scripts/generate_new_opcodes.pl
555 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
557 $(srcdir)/be/mips/gen_mips_emitter.c $(srcdir)/be/mips/gen_mips_emitter.h: \
558 be/mips/mips_spec.pl be/scripts/generate_emitter.pl
559 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
561 $(srcdir)/be/mips/gen_mips_machine.c $(srcdir)/be/mips/gen_mips_machine.h: \
562 be/mips/mips_spec.pl be/scripts/generate_machine.pl
563 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
565 $(srcdir)/be/mips/gen_mips_regalloc_if.c $(srcdir)/be/mips/gen_mips_regalloc_if.h: \
566 be/mips/mips_spec.pl be/scripts/generate_machine.pl
567 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
572 be/ppc32/bearch_ppc32.c \
573 be/ppc32/ppc32_emitter.c \
574 be/ppc32/ppc32_map_regs.c \
575 be/ppc32/ppc32_new_nodes.c \
576 be/ppc32/ppc32_transform.c \
577 be/ppc32/ppc32_transform_conv.c
578 ppc32_built_sources = \
579 be/ppc32/gen_ppc32_emitter.c \
580 be/ppc32/gen_ppc32_emitter.h \
581 be/ppc32/gen_ppc32_machine.c \
582 be/ppc32/gen_ppc32_machine.h \
583 be/ppc32/gen_ppc32_regalloc_if.c \
584 be/ppc32/gen_ppc32_regalloc_if.h \
585 be/ppc32/gen_ppc32_new_nodes.c.inl \
586 be/ppc32/gen_ppc32_new_nodes.h
587 MAINTAINERCLEANFILES += $(ppc32_built_sources)
588 BUILT_SOURCES += $(ppc32_built_sources)
589 libfirm_la_SOURCES += $(ppc32_sources) $(ppc32_built_sources)
592 be/ppc32/ppc32_spec.pl \
593 be/ppc32/bearch_ppc32.h \
594 be/ppc32/bearch_ppc32_t.h \
595 be/ppc32/ppc32_emitter.h \
596 be/ppc32/ppc32_map_regs.h \
597 be/ppc32/ppc32_new_nodes.h \
598 be/ppc32/ppc32_nodes_attr.h \
599 be/ppc32/ppc32_transform_conv.h \
600 be/ppc32/ppc32_transform.h
602 $(srcdir)/be/ppc32/gen_ppc32_new_nodes.c.inl $(srcdir)/be/ppc32/gen_ppc32_new_nodes.h: \
603 be/ppc32/ppc32_spec.pl be/scripts/generate_new_opcodes.pl
604 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/ppc32/ppc32_spec.pl $(srcdir)/be/ppc32
606 $(srcdir)/be/ppc32/gen_ppc32_emitter.c $(srcdir)/be/ppc32/gen_ppc32_emitter.h: \
607 be/ppc32/ppc32_spec.pl be/scripts/generate_emitter.pl
608 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/ppc32/ppc32_spec.pl $(srcdir)/be/ppc32
610 $(srcdir)/be/ppc32/gen_ppc32_machine.c $(srcdir)/be/ppc32/gen_ppc32_machine.h: \
611 be/ppc32/ppc32_spec.pl be/scripts/generate_machine.pl
612 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/ppc32/ppc32_spec.pl $(srcdir)/be/ppc32
614 $(srcdir)/be/ppc32/gen_ppc32_regalloc_if.c $(srcdir)/be/ppc32/gen_ppc32_regalloc_if.h: \
615 be/ppc32/ppc32_spec.pl be/scripts/generate_machine.pl
616 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/ppc32/ppc32_spec.pl $(srcdir)/be/ppc32
621 be/TEMPLATE/bearch_TEMPLATE.c \
622 be/TEMPLATE/TEMPLATE_emitter.c \
623 be/TEMPLATE/TEMPLATE_map_regs.c \
624 be/TEMPLATE/TEMPLATE_new_nodes.c \
625 be/TEMPLATE/TEMPLATE_transform.c
626 TEMPLATE_built_sources = \
627 be/TEMPLATE/gen_TEMPLATE_emitter.c \
628 be/TEMPLATE/gen_TEMPLATE_emitter.h \
629 be/TEMPLATE/gen_TEMPLATE_machine.c \
630 be/TEMPLATE/gen_TEMPLATE_machine.h \
631 be/TEMPLATE/gen_TEMPLATE_regalloc_if.c \
632 be/TEMPLATE/gen_TEMPLATE_regalloc_if.h \
633 be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl \
634 be/TEMPLATE/gen_TEMPLATE_new_nodes.h
635 MAINTAINERCLEANFILES += $(TEMPLATE_built_sources)
636 BUILT_SOURCES += $(TEMPLATE_built_sources)
637 libfirm_la_SOURCES += $(TEMPLATE_sources) $(TEMPLATE_built_sources)
640 be/TEMPLATE/TEMPLATE_spec.pl \
641 be/TEMPLATE/bearch_TEMPLATE.h \
642 be/TEMPLATE/bearch_TEMPLATE_t.h \
643 be/TEMPLATE/TEMPLATE_emitter.h \
644 be/TEMPLATE/TEMPLATE_map_regs.h \
645 be/TEMPLATE/TEMPLATE_new_nodes.h \
646 be/TEMPLATE/TEMPLATE_nodes_attr.h \
647 be/TEMPLATE/TEMPLATE_transform.h
649 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.h: \
650 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_new_opcodes.pl
651 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
653 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.h: \
654 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_emitter.pl
655 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
657 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_machine.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_machine.h: \
658 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_machine.pl
659 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
661 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.h: \
662 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_machine.pl
663 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE