1 lib_LTLIBRARIES = libfirm.la
3 INCLUDES = -I$(top_srcdir)/include/libfirm \
4 -I$(top_srcdir)/include/libfirm/adt \
8 -I$(top_srcdir)/ir/adt \
9 -I$(top_srcdir)/ir/ana \
10 -I$(top_srcdir)/ir/arch \
11 -I$(top_srcdir)/ir/be \
12 -I$(top_srcdir)/ir/common \
13 -I$(top_srcdir)/ir/debug \
14 -I$(top_srcdir)/ir/ident \
15 -I$(top_srcdir)/ir/ir \
16 -I$(top_srcdir)/ir/kaps \
17 -I$(top_srcdir)/ir/libcore \
18 -I$(top_srcdir)/ir/lower \
19 -I$(top_srcdir)/ir/lpp \
20 -I$(top_srcdir)/ir/net \
21 -I$(top_srcdir)/ir/opt \
22 -I$(top_srcdir)/ir/stat \
23 -I$(top_srcdir)/ir/tr \
26 libfirm_la_LDFLAGS = -no-undefined -version-info $(LT_VERSION) -lm
27 libfirm_la_CFLAGS = -std=c99
28 libfirm_la_SOURCES = \
44 ana/analyze_irg_args.c \
69 be/bechordal_common.c \
81 be/beemitter_binary.c \
104 be/beschedregpress.c \
106 be/beschedtrivial.c \
124 common/firm_common.c \
163 libcore/lc_appendable.c \
165 libcore/lc_opts_enum.c \
166 libcore/lc_printf.c \
167 lower/lower_alloc.c \
168 lower/lower_builtins.c \
169 lower/lower_calls.c \
170 lower/lower_copyb.c \
173 lower/lower_intrinsics.c \
174 lower/lower_mode_b.c \
176 lower/lower_softfloat.c \
177 lower/lower_switch.c \
187 obstack/obstack_printf.c \
190 opt/code_placement.c \
193 opt/critical_edges.c \
194 opt/dead_code_elimination.c \
198 opt/garbage_collect.c \
202 opt/jumpthreading.c \
212 opt/parallelize_mem.c \
216 opt/scalar_replace.c \
230 tr/tr_inheritance.c \
233 tr/type_finalization.c \
241 kaps/heuristical_co.c \
242 kaps/heuristical_co_ld.c \
279 be/bechordal_draw.h \
292 be/bechordal_common.h \
297 be/beemitter_binary.h \
308 be/bepbqpcoloring.h \
353 libcore/lc_appendable.h \
355 libcore/lc_opts_enum.h \
356 libcore/lc_opts_t.h \
357 libcore/lc_printf.h \
358 libcore/lc_printf_arg_types.def \
359 lower/lower_alloc.h \
360 lower/lower_builtins.h \
361 lower/lower_calls.h \
363 lower/lower_mode_b.h \
364 lower/lower_softfloat.h \
376 opt/scalar_replace.h \
396 kaps/heuristical_co.h \
397 kaps/heuristical_co_ld.h \
410 ir/gen_ir_cons.c.inl \
413 ir/gen_irnode.c.inl \
414 ir/gen_irdump.c.inl \
416 be/scripts/generate_emitter.pl \
417 be/scripts/generate_new_opcodes.pl \
418 be/scripts/generate_regalloc_if.pl
422 be/ia32/bearch_ia32.c \
423 be/ia32/ia32_address_mode.c \
424 be/ia32/ia32_architecture.c \
425 be/ia32/ia32_common_transform.c \
426 be/ia32/ia32_emitter.c \
427 be/ia32/ia32_finish.c \
429 be/ia32/ia32_intrinsics.c \
430 be/ia32/ia32_new_nodes.c \
431 be/ia32/ia32_optimize.c \
432 be/ia32/ia32_transform.c \
435 ia32_built_sources = \
436 be/ia32/gen_ia32_emitter.c \
437 be/ia32/gen_ia32_emitter.h \
438 be/ia32/gen_ia32_new_nodes.c.inl \
439 be/ia32/gen_ia32_new_nodes.h \
440 be/ia32/gen_ia32_regalloc_if.c \
441 be/ia32/gen_ia32_regalloc_if.h
442 MAINTAINERCLEANFILES = $(ia32_built_sources)
443 BUILT_SOURCES = $(ia32_built_sources)
444 libfirm_la_SOURCES += $(ia32_sources) $(ia32_built_sources)
447 be/ia32/bearch_ia32_t.h \
448 be/ia32/ia32_address_mode.h \
449 be/ia32/ia32_architecture.h \
450 be/ia32/ia32_common_transform.h \
451 be/ia32/ia32_dbg_stat.h \
452 be/ia32/ia32_emitter.h \
453 be/ia32/ia32_finish.h \
455 be/ia32/ia32_new_nodes.h \
456 be/ia32/ia32_nodes_attr.h \
457 be/ia32/ia32_optimize.h \
458 be/ia32/ia32_spec.pl \
459 be/ia32/ia32_transform.h \
462 $(srcdir)/be/ia32/gen_ia32_new_nodes.c.inl $(srcdir)/be/ia32/gen_ia32_new_nodes.h: \
463 be/ia32/ia32_spec.pl be/scripts/generate_new_opcodes.pl
464 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
466 $(srcdir)/be/ia32/gen_ia32_emitter.c $(srcdir)/be/ia32/gen_ia32_emitter.h: \
467 be/ia32/ia32_spec.pl be/scripts/generate_emitter.pl
468 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
470 $(srcdir)/be/ia32/gen_ia32_regalloc_if.c $(srcdir)/be/ia32/gen_ia32_regalloc_if.h: \
471 be/ia32/ia32_spec.pl be/scripts/generate_regalloc_if.pl
472 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
477 be/arm/arm_emitter.c \
478 be/arm/arm_new_nodes.c \
479 be/arm/arm_optimize.c \
480 be/arm/arm_transform.c \
481 be/arm/arm_map_regs.c \
484 arm_built_sources = \
485 be/arm/gen_arm_emitter.c \
486 be/arm/gen_arm_emitter.h \
487 be/arm/gen_arm_new_nodes.c.inl \
488 be/arm/gen_arm_new_nodes.h \
489 be/arm/gen_arm_regalloc_if.c \
490 be/arm/gen_arm_regalloc_if.h
491 MAINTAINERCLEANFILES += $(arm_built_sources)
492 BUILT_SOURCES += $(arm_built_sources)
493 libfirm_la_SOURCES += $(arm_sources) $(arm_built_sources)
497 be/arm/arm_emitter.h \
498 be/arm/arm_new_nodes.h \
499 be/arm/arm_nodes_attr.h \
500 be/arm/arm_optimize.h \
502 be/arm/arm_transform.h \
503 be/arm/arm_map_regs.h \
505 be/arm/bearch_arm_t.h
507 $(srcdir)/be/arm/gen_arm_new_nodes.c.inl $(srcdir)/be/arm/gen_arm_new_nodes.h: \
508 be/arm/arm_spec.pl be/scripts/generate_new_opcodes.pl
509 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
511 $(srcdir)/be/arm/gen_arm_emitter.c $(srcdir)/be/arm/gen_arm_emitter.h: \
512 be/arm/arm_spec.pl be/scripts/generate_emitter.pl
513 $(PERL) $(srcdir)/be/scripts/generate_emitter.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_regalloc_if.pl
517 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
522 be/sparc/bearch_sparc.c \
523 be/sparc/sparc_cconv.c \
524 be/sparc/sparc_emitter.c \
525 be/sparc/sparc_finish.c \
526 be/sparc/sparc_lower64.c \
527 be/sparc/sparc_new_nodes.c \
528 be/sparc/sparc_stackframe.c \
529 be/sparc/sparc_transform.c
530 sparc_built_sources = \
531 be/sparc/gen_sparc_emitter.c \
532 be/sparc/gen_sparc_emitter.h \
533 be/sparc/gen_sparc_new_nodes.c.inl \
534 be/sparc/gen_sparc_new_nodes.h \
535 be/sparc/gen_sparc_regalloc_if.c \
536 be/sparc/gen_sparc_regalloc_if.h
537 MAINTAINERCLEANFILES += $(sparc_built_sources)
538 BUILT_SOURCES += $(sparc_built_sources)
539 libfirm_la_SOURCES += $(sparc_sources) $(sparc_built_sources)
542 be/sparc/sparc_emitter.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_cconv.h \
547 be/sparc/sparc_transform.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_regalloc_if.c $(srcdir)/be/sparc/gen_sparc_regalloc_if.h: \
559 be/sparc/sparc_spec.pl be/scripts/generate_regalloc_if.pl
560 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
565 be/amd64/amd64_emitter.c \
566 be/amd64/amd64_new_nodes.c \
567 be/amd64/amd64_transform.c \
568 be/amd64/bearch_amd64.c
569 amd64_built_sources = \
570 be/amd64/gen_amd64_emitter.c \
571 be/amd64/gen_amd64_emitter.h \
572 be/amd64/gen_amd64_new_nodes.c.inl \
573 be/amd64/gen_amd64_new_nodes.h \
574 be/amd64/gen_amd64_regalloc_if.c \
575 be/amd64/gen_amd64_regalloc_if.h
576 MAINTAINERCLEANFILES += $(amd64_built_sources)
577 BUILT_SOURCES += $(amd64_built_sources)
578 libfirm_la_SOURCES += $(amd64_sources) $(amd64_built_sources)
581 be/amd64/amd64_emitter.h \
582 be/amd64/amd64_new_nodes.h \
583 be/amd64/amd64_nodes_attr.h \
584 be/amd64/amd64_spec.pl \
585 be/amd64/amd64_transform.h \
586 be/amd64/bearch_amd64_t.h
588 $(srcdir)/be/amd64/gen_amd64_new_nodes.c.inl $(srcdir)/be/amd64/gen_amd64_new_nodes.h: \
589 be/amd64/amd64_spec.pl be/scripts/generate_new_opcodes.pl
590 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
592 $(srcdir)/be/amd64/gen_amd64_emitter.c $(srcdir)/be/amd64/gen_amd64_emitter.h: \
593 be/amd64/amd64_spec.pl be/scripts/generate_emitter.pl
594 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
596 $(srcdir)/be/amd64/gen_amd64_regalloc_if.c $(srcdir)/be/amd64/gen_amd64_regalloc_if.h: \
597 be/amd64/amd64_spec.pl be/scripts/generate_regalloc_if.pl
598 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
604 be/TEMPLATE/TEMPLATE_emitter.c \
605 be/TEMPLATE/TEMPLATE_new_nodes.c \
606 be/TEMPLATE/TEMPLATE_transform.c \
607 be/TEMPLATE/bearch_TEMPLATE.c
608 TEMPLATE_built_sources = \
609 be/TEMPLATE/gen_TEMPLATE_emitter.c \
610 be/TEMPLATE/gen_TEMPLATE_emitter.h \
611 be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl \
612 be/TEMPLATE/gen_TEMPLATE_new_nodes.h \
613 be/TEMPLATE/gen_TEMPLATE_regalloc_if.c \
614 be/TEMPLATE/gen_TEMPLATE_regalloc_if.h
615 MAINTAINERCLEANFILES += $(TEMPLATE_built_sources)
616 BUILT_SOURCES += $(TEMPLATE_built_sources)
617 libfirm_la_SOURCES += $(TEMPLATE_sources) $(TEMPLATE_built_sources)
620 be/TEMPLATE/TEMPLATE_emitter.h \
621 be/TEMPLATE/TEMPLATE_new_nodes.h \
622 be/TEMPLATE/TEMPLATE_nodes_attr.h \
623 be/TEMPLATE/TEMPLATE_spec.pl \
624 be/TEMPLATE/TEMPLATE_transform.h \
625 be/TEMPLATE/bearch_TEMPLATE_t.h
627 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.h: \
628 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_new_opcodes.pl
629 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
631 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.h: \
632 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_emitter.pl
633 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
635 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.h: \
636 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_regalloc_if.pl
637 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE