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/kaps \
18 -I$(top_srcdir)/ir/libcore \
19 -I$(top_srcdir)/ir/lower \
20 -I$(top_srcdir)/ir/lpp \
21 -I$(top_srcdir)/ir/net \
22 -I$(top_srcdir)/ir/opt \
23 -I$(top_srcdir)/ir/stat \
24 -I$(top_srcdir)/ir/tr \
27 libfirm_la_LDFLAGS = -no-undefined -version-info $(LT_VERSION) -lm
28 libfirm_la_SOURCES = \
45 ana/analyze_irg_args.c \
69 be/bechordal_common.c \
83 be/beemitter_binary.c \
106 be/beschedregpress.c \
108 be/beschedtrivial.c \
127 common/firm_common.c \
150 ir/irlinkednodeset.c \
167 libcore/lc_appendable.c \
169 libcore/lc_opts_enum.c \
170 libcore/lc_printf.c \
171 lower/lower_alloc.c \
172 lower/lower_builtins.c \
173 lower/lower_calls.c \
174 lower/lower_copyb.c \
177 lower/lower_intrinsics.c \
178 lower/lower_mode_b.c \
180 lower/lower_softfloat.c \
181 lower/lower_switch.c \
191 obstack/obstack_printf.c \
194 opt/code_placement.c \
197 opt/critical_edges.c \
198 opt/dead_code_elimination.c \
202 opt/garbage_collect.c \
206 opt/jumpthreading.c \
217 opt/parallelize_mem.c \
221 opt/scalar_replace.c \
235 tr/tr_inheritance.c \
238 tr/type_finalization.c \
246 kaps/heuristical_co.c \
247 kaps/heuristical_co_ld.c \
283 be/bechordal_draw.h \
294 be/bechordal_common.h \
299 be/beemitter_binary.h \
310 be/bepbqpcoloring.h \
351 ir/irlinkednodeset.h \
359 libcore/lc_appendable.h \
361 libcore/lc_opts_enum.h \
362 libcore/lc_opts_t.h \
363 libcore/lc_printf.h \
364 libcore/lc_printf_arg_types.def \
365 lower/lower_calls.h \
367 lower/lower_alloc.h \
368 lower/lower_builtins.h \
369 lower/lower_mode_b.h \
370 lower/lower_softfloat.h \
382 opt/scalar_replace.h \
393 tr/compound_path_t.h \
404 kaps/heuristical_co.h \
405 kaps/heuristical_co_ld.h \
418 ir/gen_ir_cons.c.inl \
420 ir/gen_irnode.c.inl \
422 ir/gen_irdump.c.inl \
423 be/scripts/generate_emitter_new.pl \
424 be/scripts/generate_emitter.pl \
425 be/scripts/generate_new_opcodes.pl \
426 be/scripts/generate_regalloc_if.pl
430 be/ia32/bearch_ia32.c \
431 be/ia32/ia32_address_mode.c \
432 be/ia32/ia32_architecture.c \
433 be/ia32/ia32_common_transform.c \
434 be/ia32/ia32_emitter.c \
435 be/ia32/ia32_finish.c \
437 be/ia32/ia32_intrinsics.c \
438 be/ia32/ia32_new_nodes.c \
439 be/ia32/ia32_optimize.c \
440 be/ia32/ia32_transform.c \
443 ia32_built_sources = \
444 be/ia32/gen_ia32_emitter.c \
445 be/ia32/gen_ia32_emitter.h \
446 be/ia32/gen_ia32_new_nodes.c.inl \
447 be/ia32/gen_ia32_new_nodes.h \
448 be/ia32/gen_ia32_regalloc_if.c \
449 be/ia32/gen_ia32_regalloc_if.h
450 MAINTAINERCLEANFILES = $(ia32_built_sources)
451 BUILT_SOURCES = $(ia32_built_sources)
452 libfirm_la_SOURCES += $(ia32_sources) $(ia32_built_sources)
455 be/ia32/bearch_ia32_t.h \
456 be/ia32/ia32_address_mode.h \
457 be/ia32/ia32_architecture.h \
458 be/ia32/ia32_common_transform.h \
459 be/ia32/ia32_dbg_stat.h \
460 be/ia32/ia32_emitter.h \
461 be/ia32/ia32_finish.h \
463 be/ia32/ia32_new_nodes.h \
464 be/ia32/ia32_nodes_attr.h \
465 be/ia32/ia32_optimize.h \
466 be/ia32/ia32_spec.pl \
467 be/ia32/ia32_transform.h \
470 $(srcdir)/be/ia32/gen_ia32_new_nodes.c.inl $(srcdir)/be/ia32/gen_ia32_new_nodes.h: \
471 be/ia32/ia32_spec.pl be/scripts/generate_new_opcodes.pl
472 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
474 $(srcdir)/be/ia32/gen_ia32_emitter.c $(srcdir)/be/ia32/gen_ia32_emitter.h: \
475 be/ia32/ia32_spec.pl be/scripts/generate_emitter.pl
476 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
478 $(srcdir)/be/ia32/gen_ia32_regalloc_if.c $(srcdir)/be/ia32/gen_ia32_regalloc_if.h: \
479 be/ia32/ia32_spec.pl be/scripts/generate_regalloc_if.pl
480 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
485 be/arm/arm_emitter.c \
486 be/arm/arm_new_nodes.c \
487 be/arm/arm_optimize.c \
488 be/arm/arm_transform.c \
489 be/arm/arm_map_regs.c \
492 arm_built_sources = \
493 be/arm/gen_arm_emitter.c \
494 be/arm/gen_arm_emitter.h \
495 be/arm/gen_arm_new_nodes.c.inl \
496 be/arm/gen_arm_new_nodes.h \
497 be/arm/gen_arm_regalloc_if.c \
498 be/arm/gen_arm_regalloc_if.h
499 MAINTAINERCLEANFILES += $(arm_built_sources)
500 BUILT_SOURCES += $(arm_built_sources)
501 libfirm_la_SOURCES += $(arm_sources) $(arm_built_sources)
505 be/arm/arm_emitter.h \
506 be/arm/arm_new_nodes.h \
507 be/arm/arm_nodes_attr.h \
508 be/arm/arm_optimize.h \
510 be/arm/arm_transform.h \
511 be/arm/arm_map_regs.h \
513 be/arm/bearch_arm_t.h
515 $(srcdir)/be/arm/gen_arm_new_nodes.c.inl $(srcdir)/be/arm/gen_arm_new_nodes.h: \
516 be/arm/arm_spec.pl be/scripts/generate_new_opcodes.pl
517 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
519 $(srcdir)/be/arm/gen_arm_emitter.c $(srcdir)/be/arm/gen_arm_emitter.h: \
520 be/arm/arm_spec.pl be/scripts/generate_emitter.pl
521 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
523 $(srcdir)/be/arm/gen_arm_regalloc_if.c $(srcdir)/be/arm/gen_arm_regalloc_if.h: \
524 be/arm/arm_spec.pl be/scripts/generate_regalloc_if.pl
525 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
530 be/sparc/bearch_sparc.c \
531 be/sparc/sparc_cconv.c \
532 be/sparc/sparc_emitter.c \
533 be/sparc/sparc_finish.c \
534 be/sparc/sparc_lower64.c \
535 be/sparc/sparc_new_nodes.c \
536 be/sparc/sparc_stackframe.c \
537 be/sparc/sparc_transform.c
538 sparc_built_sources = \
539 be/sparc/gen_sparc_emitter.c \
540 be/sparc/gen_sparc_emitter.h \
541 be/sparc/gen_sparc_new_nodes.c.inl \
542 be/sparc/gen_sparc_new_nodes.h \
543 be/sparc/gen_sparc_regalloc_if.c \
544 be/sparc/gen_sparc_regalloc_if.h
545 MAINTAINERCLEANFILES += $(sparc_built_sources)
546 BUILT_SOURCES += $(sparc_built_sources)
547 libfirm_la_SOURCES += $(sparc_sources) $(sparc_built_sources)
550 be/sparc/sparc_emitter.h \
551 be/sparc/sparc_new_nodes.h \
552 be/sparc/sparc_nodes_attr.h \
553 be/sparc/sparc_spec.pl \
554 be/sparc/sparc_cconv.h \
555 be/sparc/sparc_transform.h \
556 be/sparc/bearch_sparc_t.h
558 $(srcdir)/be/sparc/gen_sparc_new_nodes.c.inl $(srcdir)/be/sparc/gen_sparc_new_nodes.h: \
559 be/sparc/sparc_spec.pl be/scripts/generate_new_opcodes.pl
560 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
562 $(srcdir)/be/sparc/gen_sparc_emitter.c $(srcdir)/be/sparc/gen_sparc_emitter.h: \
563 be/sparc/sparc_spec.pl be/scripts/generate_emitter.pl
564 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
566 $(srcdir)/be/sparc/gen_sparc_regalloc_if.c $(srcdir)/be/sparc/gen_sparc_regalloc_if.h: \
567 be/sparc/sparc_spec.pl be/scripts/generate_regalloc_if.pl
568 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
573 be/amd64/amd64_emitter.c \
574 be/amd64/amd64_new_nodes.c \
575 be/amd64/amd64_transform.c \
576 be/amd64/bearch_amd64.c
577 amd64_built_sources = \
578 be/amd64/gen_amd64_emitter.c \
579 be/amd64/gen_amd64_emitter.h \
580 be/amd64/gen_amd64_new_nodes.c.inl \
581 be/amd64/gen_amd64_new_nodes.h \
582 be/amd64/gen_amd64_regalloc_if.c \
583 be/amd64/gen_amd64_regalloc_if.h
584 MAINTAINERCLEANFILES += $(amd64_built_sources)
585 BUILT_SOURCES += $(amd64_built_sources)
586 libfirm_la_SOURCES += $(amd64_sources) $(amd64_built_sources)
589 be/amd64/amd64_emitter.h \
590 be/amd64/amd64_new_nodes.h \
591 be/amd64/amd64_nodes_attr.h \
592 be/amd64/amd64_spec.pl \
593 be/amd64/amd64_transform.h \
594 be/amd64/bearch_amd64_t.h
596 $(srcdir)/be/amd64/gen_amd64_new_nodes.c.inl $(srcdir)/be/amd64/gen_amd64_new_nodes.h: \
597 be/amd64/amd64_spec.pl be/scripts/generate_new_opcodes.pl
598 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
600 $(srcdir)/be/amd64/gen_amd64_emitter.c $(srcdir)/be/amd64/gen_amd64_emitter.h: \
601 be/amd64/amd64_spec.pl be/scripts/generate_emitter.pl
602 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
604 $(srcdir)/be/amd64/gen_amd64_regalloc_if.c $(srcdir)/be/amd64/gen_amd64_regalloc_if.h: \
605 be/amd64/amd64_spec.pl be/scripts/generate_regalloc_if.pl
606 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
612 be/TEMPLATE/TEMPLATE_emitter.c \
613 be/TEMPLATE/TEMPLATE_new_nodes.c \
614 be/TEMPLATE/TEMPLATE_transform.c \
615 be/TEMPLATE/bearch_TEMPLATE.c
616 TEMPLATE_built_sources = \
617 be/TEMPLATE/gen_TEMPLATE_emitter.c \
618 be/TEMPLATE/gen_TEMPLATE_emitter.h \
619 be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl \
620 be/TEMPLATE/gen_TEMPLATE_new_nodes.h \
621 be/TEMPLATE/gen_TEMPLATE_regalloc_if.c \
622 be/TEMPLATE/gen_TEMPLATE_regalloc_if.h
623 MAINTAINERCLEANFILES += $(TEMPLATE_built_sources)
624 BUILT_SOURCES += $(TEMPLATE_built_sources)
625 libfirm_la_SOURCES += $(TEMPLATE_sources) $(TEMPLATE_built_sources)
628 be/TEMPLATE/TEMPLATE_emitter.h \
629 be/TEMPLATE/TEMPLATE_new_nodes.h \
630 be/TEMPLATE/TEMPLATE_nodes_attr.h \
631 be/TEMPLATE/TEMPLATE_spec.pl \
632 be/TEMPLATE/TEMPLATE_transform.h \
633 be/TEMPLATE/bearch_TEMPLATE_t.h
635 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.h: \
636 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_new_opcodes.pl
637 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
639 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.h: \
640 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_emitter.pl
641 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
643 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.h: \
644 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_regalloc_if.pl
645 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE