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 \
166 libcore/lc_appendable.c \
168 libcore/lc_opts_enum.c \
169 libcore/lc_printf.c \
170 lower/lower_alloc.c \
171 lower/lower_builtins.c \
172 lower/lower_calls.c \
173 lower/lower_copyb.c \
176 lower/lower_intrinsics.c \
177 lower/lower_mode_b.c \
179 lower/lower_softfloat.c \
180 lower/lower_switch.c \
190 obstack/obstack_printf.c \
193 opt/code_placement.c \
196 opt/critical_edges.c \
197 opt/dead_code_elimination.c \
201 opt/garbage_collect.c \
205 opt/jumpthreading.c \
216 opt/parallelize_mem.c \
220 opt/scalar_replace.c \
234 tr/tr_inheritance.c \
237 tr/type_finalization.c \
245 kaps/heuristical_co.c \
246 kaps/heuristical_co_ld.c \
282 be/bechordal_draw.h \
293 be/bechordal_common.h \
298 be/beemitter_binary.h \
309 be/bepbqpcoloring.h \
357 libcore/lc_appendable.h \
359 libcore/lc_opts_enum.h \
360 libcore/lc_opts_t.h \
361 libcore/lc_printf.h \
362 libcore/lc_printf_arg_types.def \
363 lower/lower_calls.h \
365 lower/lower_alloc.h \
366 lower/lower_builtins.h \
367 lower/lower_mode_b.h \
368 lower/lower_softfloat.h \
380 opt/scalar_replace.h \
391 tr/compound_path_t.h \
402 kaps/heuristical_co.h \
403 kaps/heuristical_co_ld.h \
416 ir/gen_ir_cons.c.inl \
418 ir/gen_irnode.c.inl \
420 ir/gen_irdump.c.inl \
421 be/scripts/generate_emitter_new.pl \
422 be/scripts/generate_emitter.pl \
423 be/scripts/generate_new_opcodes.pl \
424 be/scripts/generate_regalloc_if.pl
428 be/ia32/bearch_ia32.c \
429 be/ia32/ia32_address_mode.c \
430 be/ia32/ia32_architecture.c \
431 be/ia32/ia32_common_transform.c \
432 be/ia32/ia32_emitter.c \
433 be/ia32/ia32_finish.c \
435 be/ia32/ia32_intrinsics.c \
436 be/ia32/ia32_new_nodes.c \
437 be/ia32/ia32_optimize.c \
438 be/ia32/ia32_transform.c \
441 ia32_built_sources = \
442 be/ia32/gen_ia32_emitter.c \
443 be/ia32/gen_ia32_emitter.h \
444 be/ia32/gen_ia32_new_nodes.c.inl \
445 be/ia32/gen_ia32_new_nodes.h \
446 be/ia32/gen_ia32_regalloc_if.c \
447 be/ia32/gen_ia32_regalloc_if.h
448 MAINTAINERCLEANFILES = $(ia32_built_sources)
449 BUILT_SOURCES = $(ia32_built_sources)
450 libfirm_la_SOURCES += $(ia32_sources) $(ia32_built_sources)
453 be/ia32/bearch_ia32_t.h \
454 be/ia32/ia32_address_mode.h \
455 be/ia32/ia32_architecture.h \
456 be/ia32/ia32_common_transform.h \
457 be/ia32/ia32_dbg_stat.h \
458 be/ia32/ia32_emitter.h \
459 be/ia32/ia32_finish.h \
461 be/ia32/ia32_new_nodes.h \
462 be/ia32/ia32_nodes_attr.h \
463 be/ia32/ia32_optimize.h \
464 be/ia32/ia32_spec.pl \
465 be/ia32/ia32_transform.h \
468 $(srcdir)/be/ia32/gen_ia32_new_nodes.c.inl $(srcdir)/be/ia32/gen_ia32_new_nodes.h: \
469 be/ia32/ia32_spec.pl be/scripts/generate_new_opcodes.pl
470 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
472 $(srcdir)/be/ia32/gen_ia32_emitter.c $(srcdir)/be/ia32/gen_ia32_emitter.h: \
473 be/ia32/ia32_spec.pl be/scripts/generate_emitter.pl
474 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
476 $(srcdir)/be/ia32/gen_ia32_regalloc_if.c $(srcdir)/be/ia32/gen_ia32_regalloc_if.h: \
477 be/ia32/ia32_spec.pl be/scripts/generate_regalloc_if.pl
478 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
483 be/arm/arm_emitter.c \
484 be/arm/arm_new_nodes.c \
485 be/arm/arm_optimize.c \
486 be/arm/arm_transform.c \
487 be/arm/arm_map_regs.c \
490 arm_built_sources = \
491 be/arm/gen_arm_emitter.c \
492 be/arm/gen_arm_emitter.h \
493 be/arm/gen_arm_new_nodes.c.inl \
494 be/arm/gen_arm_new_nodes.h \
495 be/arm/gen_arm_regalloc_if.c \
496 be/arm/gen_arm_regalloc_if.h
497 MAINTAINERCLEANFILES += $(arm_built_sources)
498 BUILT_SOURCES += $(arm_built_sources)
499 libfirm_la_SOURCES += $(arm_sources) $(arm_built_sources)
503 be/arm/arm_emitter.h \
504 be/arm/arm_new_nodes.h \
505 be/arm/arm_nodes_attr.h \
506 be/arm/arm_optimize.h \
508 be/arm/arm_transform.h \
509 be/arm/arm_map_regs.h \
511 be/arm/bearch_arm_t.h
513 $(srcdir)/be/arm/gen_arm_new_nodes.c.inl $(srcdir)/be/arm/gen_arm_new_nodes.h: \
514 be/arm/arm_spec.pl be/scripts/generate_new_opcodes.pl
515 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
517 $(srcdir)/be/arm/gen_arm_emitter.c $(srcdir)/be/arm/gen_arm_emitter.h: \
518 be/arm/arm_spec.pl be/scripts/generate_emitter.pl
519 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
521 $(srcdir)/be/arm/gen_arm_regalloc_if.c $(srcdir)/be/arm/gen_arm_regalloc_if.h: \
522 be/arm/arm_spec.pl be/scripts/generate_regalloc_if.pl
523 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
528 be/sparc/bearch_sparc.c \
529 be/sparc/sparc_cconv.c \
530 be/sparc/sparc_emitter.c \
531 be/sparc/sparc_finish.c \
532 be/sparc/sparc_lower64.c \
533 be/sparc/sparc_new_nodes.c \
534 be/sparc/sparc_stackframe.c \
535 be/sparc/sparc_transform.c
536 sparc_built_sources = \
537 be/sparc/gen_sparc_emitter.c \
538 be/sparc/gen_sparc_emitter.h \
539 be/sparc/gen_sparc_new_nodes.c.inl \
540 be/sparc/gen_sparc_new_nodes.h \
541 be/sparc/gen_sparc_regalloc_if.c \
542 be/sparc/gen_sparc_regalloc_if.h
543 MAINTAINERCLEANFILES += $(sparc_built_sources)
544 BUILT_SOURCES += $(sparc_built_sources)
545 libfirm_la_SOURCES += $(sparc_sources) $(sparc_built_sources)
548 be/sparc/sparc_emitter.h \
549 be/sparc/sparc_new_nodes.h \
550 be/sparc/sparc_nodes_attr.h \
551 be/sparc/sparc_spec.pl \
552 be/sparc/sparc_cconv.h \
553 be/sparc/sparc_transform.h \
554 be/sparc/bearch_sparc_t.h
556 $(srcdir)/be/sparc/gen_sparc_new_nodes.c.inl $(srcdir)/be/sparc/gen_sparc_new_nodes.h: \
557 be/sparc/sparc_spec.pl be/scripts/generate_new_opcodes.pl
558 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
560 $(srcdir)/be/sparc/gen_sparc_emitter.c $(srcdir)/be/sparc/gen_sparc_emitter.h: \
561 be/sparc/sparc_spec.pl be/scripts/generate_emitter.pl
562 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
564 $(srcdir)/be/sparc/gen_sparc_regalloc_if.c $(srcdir)/be/sparc/gen_sparc_regalloc_if.h: \
565 be/sparc/sparc_spec.pl be/scripts/generate_regalloc_if.pl
566 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
571 be/amd64/amd64_emitter.c \
572 be/amd64/amd64_new_nodes.c \
573 be/amd64/amd64_transform.c \
574 be/amd64/bearch_amd64.c
575 amd64_built_sources = \
576 be/amd64/gen_amd64_emitter.c \
577 be/amd64/gen_amd64_emitter.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_regalloc_if.c $(srcdir)/be/amd64/gen_amd64_regalloc_if.h: \
603 be/amd64/amd64_spec.pl be/scripts/generate_regalloc_if.pl
604 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
610 be/TEMPLATE/TEMPLATE_emitter.c \
611 be/TEMPLATE/TEMPLATE_new_nodes.c \
612 be/TEMPLATE/TEMPLATE_transform.c \
613 be/TEMPLATE/bearch_TEMPLATE.c
614 TEMPLATE_built_sources = \
615 be/TEMPLATE/gen_TEMPLATE_emitter.c \
616 be/TEMPLATE/gen_TEMPLATE_emitter.h \
617 be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl \
618 be/TEMPLATE/gen_TEMPLATE_new_nodes.h \
619 be/TEMPLATE/gen_TEMPLATE_regalloc_if.c \
620 be/TEMPLATE/gen_TEMPLATE_regalloc_if.h
621 MAINTAINERCLEANFILES += $(TEMPLATE_built_sources)
622 BUILT_SOURCES += $(TEMPLATE_built_sources)
623 libfirm_la_SOURCES += $(TEMPLATE_sources) $(TEMPLATE_built_sources)
626 be/TEMPLATE/TEMPLATE_emitter.h \
627 be/TEMPLATE/TEMPLATE_new_nodes.h \
628 be/TEMPLATE/TEMPLATE_nodes_attr.h \
629 be/TEMPLATE/TEMPLATE_spec.pl \
630 be/TEMPLATE/TEMPLATE_transform.h \
631 be/TEMPLATE/bearch_TEMPLATE_t.h
633 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.h: \
634 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_new_opcodes.pl
635 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
637 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.h: \
638 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_emitter.pl
639 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
641 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.h: \
642 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_regalloc_if.pl
643 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE