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 = \
46 ana/analyze_irg_args.c \
70 be/bechordal_common.c \
84 be/beemitter_binary.c \
100 be/bepbqpcoloring.c \
107 be/beschedregpress.c \
109 be/beschedtrivial.c \
128 common/firm_common.c \
151 ir/irlinkednodemap.c \
152 ir/irlinkednodeset.c \
169 libcore/lc_appendable.c \
171 libcore/lc_opts_enum.c \
172 libcore/lc_printf.c \
173 lower/lower_alloc.c \
174 lower/lower_builtins.c \
175 lower/lower_calls.c \
176 lower/lower_copyb.c \
179 lower/lower_intrinsics.c \
180 lower/lower_mode_b.c \
182 lower/lower_softfloat.c \
183 lower/lower_switch.c \
193 obstack/obstack_printf.c \
196 opt/code_placement.c \
199 opt/critical_edges.c \
200 opt/dead_code_elimination.c \
204 opt/garbage_collect.c \
208 opt/jumpthreading.c \
219 opt/parallelize_mem.c \
223 opt/scalar_replace.c \
237 tr/tr_inheritance.c \
240 tr/type_finalization.c \
248 kaps/heuristical_co.c \
249 kaps/heuristical_co_ld.c \
285 be/bechordal_draw.h \
296 be/bechordal_common.h \
301 be/beemitter_binary.h \
312 be/bepbqpcoloring.h \
353 ir/irlinkednodemap.h \
354 ir/irlinkednodeset.h \
362 libcore/lc_appendable.h \
364 libcore/lc_opts_enum.h \
365 libcore/lc_opts_t.h \
366 libcore/lc_printf.h \
367 libcore/lc_printf_arg_types.def \
368 lower/lower_calls.h \
370 lower/lower_alloc.h \
371 lower/lower_builtins.h \
372 lower/lower_mode_b.h \
373 lower/lower_softfloat.h \
385 opt/scalar_replace.h \
396 tr/compound_path_t.h \
407 kaps/heuristical_co.h \
408 kaps/heuristical_co_ld.h \
421 ir/gen_ir_cons.c.inl \
423 ir/gen_irnode.c.inl \
425 ir/gen_irdump.c.inl \
426 be/scripts/generate_emitter_new.pl \
427 be/scripts/generate_emitter.pl \
428 be/scripts/generate_new_opcodes.pl \
429 be/scripts/generate_regalloc_if.pl
433 be/ia32/bearch_ia32.c \
434 be/ia32/ia32_address_mode.c \
435 be/ia32/ia32_architecture.c \
436 be/ia32/ia32_common_transform.c \
437 be/ia32/ia32_emitter.c \
438 be/ia32/ia32_finish.c \
440 be/ia32/ia32_intrinsics.c \
441 be/ia32/ia32_new_nodes.c \
442 be/ia32/ia32_optimize.c \
443 be/ia32/ia32_transform.c \
446 ia32_built_sources = \
447 be/ia32/gen_ia32_emitter.c \
448 be/ia32/gen_ia32_emitter.h \
449 be/ia32/gen_ia32_new_nodes.c.inl \
450 be/ia32/gen_ia32_new_nodes.h \
451 be/ia32/gen_ia32_regalloc_if.c \
452 be/ia32/gen_ia32_regalloc_if.h
453 MAINTAINERCLEANFILES = $(ia32_built_sources)
454 BUILT_SOURCES = $(ia32_built_sources)
455 libfirm_la_SOURCES += $(ia32_sources) $(ia32_built_sources)
458 be/ia32/bearch_ia32_t.h \
459 be/ia32/ia32_address_mode.h \
460 be/ia32/ia32_architecture.h \
461 be/ia32/ia32_common_transform.h \
462 be/ia32/ia32_dbg_stat.h \
463 be/ia32/ia32_emitter.h \
464 be/ia32/ia32_finish.h \
466 be/ia32/ia32_new_nodes.h \
467 be/ia32/ia32_nodes_attr.h \
468 be/ia32/ia32_optimize.h \
469 be/ia32/ia32_spec.pl \
470 be/ia32/ia32_transform.h \
473 $(srcdir)/be/ia32/gen_ia32_new_nodes.c.inl $(srcdir)/be/ia32/gen_ia32_new_nodes.h: \
474 be/ia32/ia32_spec.pl be/scripts/generate_new_opcodes.pl
475 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
477 $(srcdir)/be/ia32/gen_ia32_emitter.c $(srcdir)/be/ia32/gen_ia32_emitter.h: \
478 be/ia32/ia32_spec.pl be/scripts/generate_emitter.pl
479 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
481 $(srcdir)/be/ia32/gen_ia32_regalloc_if.c $(srcdir)/be/ia32/gen_ia32_regalloc_if.h: \
482 be/ia32/ia32_spec.pl be/scripts/generate_regalloc_if.pl
483 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
488 be/arm/arm_emitter.c \
489 be/arm/arm_new_nodes.c \
490 be/arm/arm_optimize.c \
491 be/arm/arm_transform.c \
492 be/arm/arm_map_regs.c \
495 arm_built_sources = \
496 be/arm/gen_arm_emitter.c \
497 be/arm/gen_arm_emitter.h \
498 be/arm/gen_arm_new_nodes.c.inl \
499 be/arm/gen_arm_new_nodes.h \
500 be/arm/gen_arm_regalloc_if.c \
501 be/arm/gen_arm_regalloc_if.h
502 MAINTAINERCLEANFILES += $(arm_built_sources)
503 BUILT_SOURCES += $(arm_built_sources)
504 libfirm_la_SOURCES += $(arm_sources) $(arm_built_sources)
508 be/arm/arm_emitter.h \
509 be/arm/arm_new_nodes.h \
510 be/arm/arm_nodes_attr.h \
511 be/arm/arm_optimize.h \
513 be/arm/arm_transform.h \
514 be/arm/arm_map_regs.h \
516 be/arm/bearch_arm_t.h
518 $(srcdir)/be/arm/gen_arm_new_nodes.c.inl $(srcdir)/be/arm/gen_arm_new_nodes.h: \
519 be/arm/arm_spec.pl be/scripts/generate_new_opcodes.pl
520 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
522 $(srcdir)/be/arm/gen_arm_emitter.c $(srcdir)/be/arm/gen_arm_emitter.h: \
523 be/arm/arm_spec.pl be/scripts/generate_emitter.pl
524 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
526 $(srcdir)/be/arm/gen_arm_regalloc_if.c $(srcdir)/be/arm/gen_arm_regalloc_if.h: \
527 be/arm/arm_spec.pl be/scripts/generate_regalloc_if.pl
528 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
533 be/sparc/bearch_sparc.c \
534 be/sparc/sparc_cconv.c \
535 be/sparc/sparc_emitter.c \
536 be/sparc/sparc_finish.c \
537 be/sparc/sparc_lower64.c \
538 be/sparc/sparc_new_nodes.c \
539 be/sparc/sparc_stackframe.c \
540 be/sparc/sparc_transform.c
541 sparc_built_sources = \
542 be/sparc/gen_sparc_emitter.c \
543 be/sparc/gen_sparc_emitter.h \
544 be/sparc/gen_sparc_new_nodes.c.inl \
545 be/sparc/gen_sparc_new_nodes.h \
546 be/sparc/gen_sparc_regalloc_if.c \
547 be/sparc/gen_sparc_regalloc_if.h
548 MAINTAINERCLEANFILES += $(sparc_built_sources)
549 BUILT_SOURCES += $(sparc_built_sources)
550 libfirm_la_SOURCES += $(sparc_sources) $(sparc_built_sources)
553 be/sparc/sparc_emitter.h \
554 be/sparc/sparc_new_nodes.h \
555 be/sparc/sparc_nodes_attr.h \
556 be/sparc/sparc_spec.pl \
557 be/sparc/sparc_cconv.h \
558 be/sparc/sparc_transform.h \
559 be/sparc/bearch_sparc_t.h
561 $(srcdir)/be/sparc/gen_sparc_new_nodes.c.inl $(srcdir)/be/sparc/gen_sparc_new_nodes.h: \
562 be/sparc/sparc_spec.pl be/scripts/generate_new_opcodes.pl
563 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
565 $(srcdir)/be/sparc/gen_sparc_emitter.c $(srcdir)/be/sparc/gen_sparc_emitter.h: \
566 be/sparc/sparc_spec.pl be/scripts/generate_emitter.pl
567 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
569 $(srcdir)/be/sparc/gen_sparc_regalloc_if.c $(srcdir)/be/sparc/gen_sparc_regalloc_if.h: \
570 be/sparc/sparc_spec.pl be/scripts/generate_regalloc_if.pl
571 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
576 be/amd64/amd64_emitter.c \
577 be/amd64/amd64_new_nodes.c \
578 be/amd64/amd64_transform.c \
579 be/amd64/bearch_amd64.c
580 amd64_built_sources = \
581 be/amd64/gen_amd64_emitter.c \
582 be/amd64/gen_amd64_emitter.h \
583 be/amd64/gen_amd64_new_nodes.c.inl \
584 be/amd64/gen_amd64_new_nodes.h \
585 be/amd64/gen_amd64_regalloc_if.c \
586 be/amd64/gen_amd64_regalloc_if.h
587 MAINTAINERCLEANFILES += $(amd64_built_sources)
588 BUILT_SOURCES += $(amd64_built_sources)
589 libfirm_la_SOURCES += $(amd64_sources) $(amd64_built_sources)
592 be/amd64/amd64_emitter.h \
593 be/amd64/amd64_new_nodes.h \
594 be/amd64/amd64_nodes_attr.h \
595 be/amd64/amd64_spec.pl \
596 be/amd64/amd64_transform.h \
597 be/amd64/bearch_amd64_t.h
599 $(srcdir)/be/amd64/gen_amd64_new_nodes.c.inl $(srcdir)/be/amd64/gen_amd64_new_nodes.h: \
600 be/amd64/amd64_spec.pl be/scripts/generate_new_opcodes.pl
601 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
603 $(srcdir)/be/amd64/gen_amd64_emitter.c $(srcdir)/be/amd64/gen_amd64_emitter.h: \
604 be/amd64/amd64_spec.pl be/scripts/generate_emitter.pl
605 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
607 $(srcdir)/be/amd64/gen_amd64_regalloc_if.c $(srcdir)/be/amd64/gen_amd64_regalloc_if.h: \
608 be/amd64/amd64_spec.pl be/scripts/generate_regalloc_if.pl
609 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
615 be/TEMPLATE/TEMPLATE_emitter.c \
616 be/TEMPLATE/TEMPLATE_new_nodes.c \
617 be/TEMPLATE/TEMPLATE_transform.c \
618 be/TEMPLATE/bearch_TEMPLATE.c
619 TEMPLATE_built_sources = \
620 be/TEMPLATE/gen_TEMPLATE_emitter.c \
621 be/TEMPLATE/gen_TEMPLATE_emitter.h \
622 be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl \
623 be/TEMPLATE/gen_TEMPLATE_new_nodes.h \
624 be/TEMPLATE/gen_TEMPLATE_regalloc_if.c \
625 be/TEMPLATE/gen_TEMPLATE_regalloc_if.h
626 MAINTAINERCLEANFILES += $(TEMPLATE_built_sources)
627 BUILT_SOURCES += $(TEMPLATE_built_sources)
628 libfirm_la_SOURCES += $(TEMPLATE_sources) $(TEMPLATE_built_sources)
631 be/TEMPLATE/TEMPLATE_emitter.h \
632 be/TEMPLATE/TEMPLATE_new_nodes.h \
633 be/TEMPLATE/TEMPLATE_nodes_attr.h \
634 be/TEMPLATE/TEMPLATE_spec.pl \
635 be/TEMPLATE/TEMPLATE_transform.h \
636 be/TEMPLATE/bearch_TEMPLATE_t.h
638 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.h: \
639 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_new_opcodes.pl
640 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
642 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.h: \
643 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_emitter.pl
644 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
646 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.h: \
647 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_regalloc_if.pl
648 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE