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 -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 \
109 be/bepbqpcoloring.c \
112 be/bepressurestat.c \
118 be/beschedregpress.c \
121 be/beschedtrivial.c \
122 be/bespillbelady2.c \
123 be/bespillbelady3.c \
141 common/firm_common.c \
165 ir/irlinkednodemap.c \
166 ir/irlinkednodeset.c \
181 libcore/lc_appendable.c \
182 libcore/lc_config_lexer.c \
183 libcore/lc_config_parser.c \
185 libcore/lc_opts_enum.c \
186 libcore/lc_printf.c \
187 lower/lower_calls.c \
188 lower/lower_copyb.c \
191 lower/lower_intrinsics.c \
192 lower/lower_mode_b.c \
194 lower/lower_switch.c \
196 obstack/obstack_printf.c \
199 opt/code_placement.c \
202 opt/critical_edges.c \
203 opt/dead_code_elimination.c \
207 opt/garbage_collect.c \
211 opt/jumpthreading.c \
220 opt/opt_polymorphy.c \
221 opt/parallelize_mem.c \
225 opt/scalar_replace.c \
236 stat/stat_liveness.c \
241 tr/tr_inheritance.c \
244 tr/type_finalization.c \
274 be/bechordal_common.h \
275 be/bechordal_draw.h \
285 be/beemitter_binary.h \
305 be/bepbqpcoloring.h \
307 be/bepressurestat.h \
339 ir/irlinkednodemap.h \
340 ir/irlinkednodeset.h \
357 libcore/do_bisonflex.sh \
358 libcore/lc_appendable.h \
359 libcore/lc_common_t.h \
360 libcore/lc_config.h \
361 libcore/lc_config_lexer.l \
362 libcore/lc_config_parser.h \
363 libcore/lc_config_parser.y \
364 libcore/lc_defines.h \
366 libcore/lc_opts_enum.h \
367 libcore/lc_opts_t.h \
368 libcore/lc_parser_t.h \
369 libcore/lc_printf.h \
370 libcore/lc_printf_arg_types.def \
374 opt/opt_polymorphy.h \
376 opt/scalar_replace.h \
385 tr/compound_path_t.h \
392 ir/gen_ir_cons.c.inl \
393 ir/gen_irnode.c.inl \
395 ir/gen_irio_export.inl \
396 ir/gen_irio_import.inl \
397 ir/gen_irio_lex.inl \
398 be/scripts/generate_emitter_new.pl \
399 be/scripts/generate_emitter.pl \
400 be/scripts/generate_machine.pl \
401 be/scripts/generate_new_opcodes.pl \
402 be/scripts/generate_regalloc_if.pl
407 be/ia32/bearch_ia32.c \
408 be/ia32/ia32_address_mode.c \
409 be/ia32/ia32_architecture.c \
410 be/ia32/ia32_common_transform.c \
411 be/ia32/ia32_emitter.c \
412 be/ia32/ia32_finish.c \
414 be/ia32/ia32_intrinsics.c \
415 be/ia32/ia32_map_regs.c \
416 be/ia32/ia32_new_nodes.c \
417 be/ia32/ia32_optimize.c \
418 be/ia32/ia32_transform.c \
419 be/ia32/ia32_util.c \
422 ia32_built_sources = \
423 be/ia32/gen_ia32_emitter.c \
424 be/ia32/gen_ia32_emitter.h \
425 be/ia32/gen_ia32_machine.c \
426 be/ia32/gen_ia32_machine.h \
427 be/ia32/gen_ia32_new_nodes.c.inl \
428 be/ia32/gen_ia32_new_nodes.h \
429 be/ia32/gen_ia32_regalloc_if.c \
430 be/ia32/gen_ia32_regalloc_if.h
431 MAINTAINERCLEANFILES = $(ia32_built_sources)
432 BUILT_SOURCES = $(ia32_built_sources)
433 libfirm_la_SOURCES += $(ia32_sources) $(ia32_built_sources)
436 be/ia32/bearch_ia32_t.h \
437 be/ia32/ia32_address_mode.h \
438 be/ia32/ia32_architecture.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_spec.pl \
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/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 \
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_new_nodes.c.inl \
484 be/arm/gen_arm_new_nodes.h \
485 be/arm/gen_arm_regalloc_if.c \
486 be/arm/gen_arm_regalloc_if.h
487 MAINTAINERCLEANFILES += $(arm_built_sources)
488 BUILT_SOURCES += $(arm_built_sources)
489 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 \
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/sparc/sparc_emitter.c \
523 be/sparc/sparc_map_regs.c \
524 be/sparc/sparc_new_nodes.c \
525 be/sparc/sparc_transform.c \
526 be/sparc/bearch_sparc.c
527 sparc_built_sources = \
528 be/sparc/gen_sparc_emitter.c \
529 be/sparc/gen_sparc_emitter.h \
530 be/sparc/gen_sparc_machine.c \
531 be/sparc/gen_sparc_machine.h \
532 be/sparc/gen_sparc_new_nodes.c.inl \
533 be/sparc/gen_sparc_new_nodes.h \
534 be/sparc/gen_sparc_regalloc_if.c \
535 be/sparc/gen_sparc_regalloc_if.h
536 MAINTAINERCLEANFILES += $(sparc_built_sources)
537 BUILT_SOURCES += $(sparc_built_sources)
538 libfirm_la_SOURCES += $(sparc_sources) $(sparc_built_sources)
541 be/sparc/sparc_emitter.h \
542 be/sparc/sparc_map_regs.h \
543 be/sparc/sparc_new_nodes.h \
544 be/sparc/sparc_nodes_attr.h \
545 be/sparc/sparc_spec.pl \
546 be/sparc/sparc_transform.h \
547 be/sparc/bearch_sparc.h \
548 be/sparc/bearch_sparc_t.h
550 $(srcdir)/be/sparc/gen_sparc_new_nodes.c.inl $(srcdir)/be/sparc/gen_sparc_new_nodes.h: \
551 be/sparc/sparc_spec.pl be/scripts/generate_new_opcodes.pl
552 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
554 $(srcdir)/be/sparc/gen_sparc_emitter.c $(srcdir)/be/sparc/gen_sparc_emitter.h: \
555 be/sparc/sparc_spec.pl be/scripts/generate_emitter.pl
556 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
558 $(srcdir)/be/sparc/gen_sparc_machine.c $(srcdir)/be/sparc/gen_sparc_machine.h: \
559 be/sparc/sparc_spec.pl be/scripts/generate_machine.pl
560 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
562 $(srcdir)/be/sparc/gen_sparc_regalloc_if.c $(srcdir)/be/sparc/gen_sparc_regalloc_if.h: \
563 be/sparc/sparc_spec.pl be/scripts/generate_machine.pl
564 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
569 be/amd64/amd64_emitter.c \
570 be/amd64/amd64_new_nodes.c \
571 be/amd64/amd64_transform.c \
572 be/amd64/bearch_amd64.c
573 amd64_built_sources = \
574 be/amd64/gen_amd64_emitter.c \
575 be/amd64/gen_amd64_emitter.h \
576 be/amd64/gen_amd64_machine.c \
577 be/amd64/gen_amd64_machine.h \
578 be/amd64/gen_amd64_new_nodes.c.inl \
579 be/amd64/gen_amd64_new_nodes.h \
580 be/amd64/gen_amd64_regalloc_if.c \
581 be/amd64/gen_amd64_regalloc_if.h
582 MAINTAINERCLEANFILES += $(amd64_built_sources)
583 BUILT_SOURCES += $(amd64_built_sources)
584 libfirm_la_SOURCES += $(amd64_sources) $(amd64_built_sources)
587 be/amd64/amd64_emitter.h \
588 be/amd64/amd64_new_nodes.h \
589 be/amd64/amd64_nodes_attr.h \
590 be/amd64/amd64_spec.pl \
591 be/amd64/amd64_transform.h \
592 be/amd64/bearch_amd64_t.h
594 $(srcdir)/be/amd64/gen_amd64_new_nodes.c.inl $(srcdir)/be/amd64/gen_amd64_new_nodes.h: \
595 be/amd64/amd64_spec.pl be/scripts/generate_new_opcodes.pl
596 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
598 $(srcdir)/be/amd64/gen_amd64_emitter.c $(srcdir)/be/amd64/gen_amd64_emitter.h: \
599 be/amd64/amd64_spec.pl be/scripts/generate_emitter.pl
600 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
602 $(srcdir)/be/amd64/gen_amd64_machine.c $(srcdir)/be/amd64/gen_amd64_machine.h: \
603 be/amd64/amd64_spec.pl be/scripts/generate_machine.pl
604 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
606 $(srcdir)/be/amd64/gen_amd64_regalloc_if.c $(srcdir)/be/amd64/gen_amd64_regalloc_if.h: \
607 be/amd64/amd64_spec.pl be/scripts/generate_machine.pl
608 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
614 be/TEMPLATE/TEMPLATE_emitter.c \
615 be/TEMPLATE/TEMPLATE_new_nodes.c \
616 be/TEMPLATE/TEMPLATE_transform.c \
617 be/TEMPLATE/bearch_TEMPLATE.c
618 TEMPLATE_built_sources = \
619 be/TEMPLATE/gen_TEMPLATE_emitter.c \
620 be/TEMPLATE/gen_TEMPLATE_emitter.h \
621 be/TEMPLATE/gen_TEMPLATE_machine.c \
622 be/TEMPLATE/gen_TEMPLATE_machine.h \
623 be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl \
624 be/TEMPLATE/gen_TEMPLATE_new_nodes.h \
625 be/TEMPLATE/gen_TEMPLATE_regalloc_if.c \
626 be/TEMPLATE/gen_TEMPLATE_regalloc_if.h
627 MAINTAINERCLEANFILES += $(TEMPLATE_built_sources)
628 BUILT_SOURCES += $(TEMPLATE_built_sources)
629 libfirm_la_SOURCES += $(TEMPLATE_sources) $(TEMPLATE_built_sources)
632 be/TEMPLATE/TEMPLATE_emitter.h \
633 be/TEMPLATE/TEMPLATE_new_nodes.h \
634 be/TEMPLATE/TEMPLATE_nodes_attr.h \
635 be/TEMPLATE/TEMPLATE_spec.pl \
636 be/TEMPLATE/TEMPLATE_transform.h \
637 be/TEMPLATE/bearch_TEMPLATE_t.h
639 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.h: \
640 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_new_opcodes.pl
641 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
643 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.h: \
644 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_emitter.pl
645 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
647 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_machine.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_machine.h: \
648 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_machine.pl
649 $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
651 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.h: \
652 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_machine.pl
653 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE