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 \
354 libcore/lc_appendable.h \
356 libcore/lc_opts_enum.h \
357 libcore/lc_opts_t.h \
358 libcore/lc_printf.h \
359 libcore/lc_printf_arg_types.def \
360 lower/lower_alloc.h \
361 lower/lower_builtins.h \
362 lower/lower_calls.h \
364 lower/lower_mode_b.h \
365 lower/lower_softfloat.h \
377 opt/scalar_replace.h \
397 kaps/heuristical_co.h \
398 kaps/heuristical_co_ld.h \
411 ir/gen_ir_cons.c.inl \
414 ir/gen_irnode.c.inl \
415 ir/gen_irdump.c.inl \
417 be/scripts/generate_emitter_new.pl \
418 be/scripts/generate_emitter.pl \
419 be/scripts/generate_new_opcodes.pl \
420 be/scripts/generate_regalloc_if.pl
424 be/ia32/bearch_ia32.c \
425 be/ia32/ia32_address_mode.c \
426 be/ia32/ia32_architecture.c \
427 be/ia32/ia32_common_transform.c \
428 be/ia32/ia32_emitter.c \
429 be/ia32/ia32_finish.c \
431 be/ia32/ia32_intrinsics.c \
432 be/ia32/ia32_new_nodes.c \
433 be/ia32/ia32_optimize.c \
434 be/ia32/ia32_transform.c \
437 ia32_built_sources = \
438 be/ia32/gen_ia32_emitter.c \
439 be/ia32/gen_ia32_emitter.h \
440 be/ia32/gen_ia32_new_nodes.c.inl \
441 be/ia32/gen_ia32_new_nodes.h \
442 be/ia32/gen_ia32_regalloc_if.c \
443 be/ia32/gen_ia32_regalloc_if.h
444 MAINTAINERCLEANFILES = $(ia32_built_sources)
445 BUILT_SOURCES = $(ia32_built_sources)
446 libfirm_la_SOURCES += $(ia32_sources) $(ia32_built_sources)
449 be/ia32/bearch_ia32_t.h \
450 be/ia32/ia32_address_mode.h \
451 be/ia32/ia32_architecture.h \
452 be/ia32/ia32_common_transform.h \
453 be/ia32/ia32_dbg_stat.h \
454 be/ia32/ia32_emitter.h \
455 be/ia32/ia32_finish.h \
457 be/ia32/ia32_new_nodes.h \
458 be/ia32/ia32_nodes_attr.h \
459 be/ia32/ia32_optimize.h \
460 be/ia32/ia32_spec.pl \
461 be/ia32/ia32_transform.h \
464 $(srcdir)/be/ia32/gen_ia32_new_nodes.c.inl $(srcdir)/be/ia32/gen_ia32_new_nodes.h: \
465 be/ia32/ia32_spec.pl be/scripts/generate_new_opcodes.pl
466 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
468 $(srcdir)/be/ia32/gen_ia32_emitter.c $(srcdir)/be/ia32/gen_ia32_emitter.h: \
469 be/ia32/ia32_spec.pl be/scripts/generate_emitter.pl
470 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
472 $(srcdir)/be/ia32/gen_ia32_regalloc_if.c $(srcdir)/be/ia32/gen_ia32_regalloc_if.h: \
473 be/ia32/ia32_spec.pl be/scripts/generate_regalloc_if.pl
474 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
479 be/arm/arm_emitter.c \
480 be/arm/arm_new_nodes.c \
481 be/arm/arm_optimize.c \
482 be/arm/arm_transform.c \
483 be/arm/arm_map_regs.c \
486 arm_built_sources = \
487 be/arm/gen_arm_emitter.c \
488 be/arm/gen_arm_emitter.h \
489 be/arm/gen_arm_new_nodes.c.inl \
490 be/arm/gen_arm_new_nodes.h \
491 be/arm/gen_arm_regalloc_if.c \
492 be/arm/gen_arm_regalloc_if.h
493 MAINTAINERCLEANFILES += $(arm_built_sources)
494 BUILT_SOURCES += $(arm_built_sources)
495 libfirm_la_SOURCES += $(arm_sources) $(arm_built_sources)
499 be/arm/arm_emitter.h \
500 be/arm/arm_new_nodes.h \
501 be/arm/arm_nodes_attr.h \
502 be/arm/arm_optimize.h \
504 be/arm/arm_transform.h \
505 be/arm/arm_map_regs.h \
507 be/arm/bearch_arm_t.h
509 $(srcdir)/be/arm/gen_arm_new_nodes.c.inl $(srcdir)/be/arm/gen_arm_new_nodes.h: \
510 be/arm/arm_spec.pl be/scripts/generate_new_opcodes.pl
511 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
513 $(srcdir)/be/arm/gen_arm_emitter.c $(srcdir)/be/arm/gen_arm_emitter.h: \
514 be/arm/arm_spec.pl be/scripts/generate_emitter.pl
515 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
517 $(srcdir)/be/arm/gen_arm_regalloc_if.c $(srcdir)/be/arm/gen_arm_regalloc_if.h: \
518 be/arm/arm_spec.pl be/scripts/generate_regalloc_if.pl
519 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
524 be/sparc/bearch_sparc.c \
525 be/sparc/sparc_cconv.c \
526 be/sparc/sparc_emitter.c \
527 be/sparc/sparc_finish.c \
528 be/sparc/sparc_lower64.c \
529 be/sparc/sparc_new_nodes.c \
530 be/sparc/sparc_stackframe.c \
531 be/sparc/sparc_transform.c
532 sparc_built_sources = \
533 be/sparc/gen_sparc_emitter.c \
534 be/sparc/gen_sparc_emitter.h \
535 be/sparc/gen_sparc_new_nodes.c.inl \
536 be/sparc/gen_sparc_new_nodes.h \
537 be/sparc/gen_sparc_regalloc_if.c \
538 be/sparc/gen_sparc_regalloc_if.h
539 MAINTAINERCLEANFILES += $(sparc_built_sources)
540 BUILT_SOURCES += $(sparc_built_sources)
541 libfirm_la_SOURCES += $(sparc_sources) $(sparc_built_sources)
544 be/sparc/sparc_emitter.h \
545 be/sparc/sparc_new_nodes.h \
546 be/sparc/sparc_nodes_attr.h \
547 be/sparc/sparc_spec.pl \
548 be/sparc/sparc_cconv.h \
549 be/sparc/sparc_transform.h \
550 be/sparc/bearch_sparc_t.h
552 $(srcdir)/be/sparc/gen_sparc_new_nodes.c.inl $(srcdir)/be/sparc/gen_sparc_new_nodes.h: \
553 be/sparc/sparc_spec.pl be/scripts/generate_new_opcodes.pl
554 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
556 $(srcdir)/be/sparc/gen_sparc_emitter.c $(srcdir)/be/sparc/gen_sparc_emitter.h: \
557 be/sparc/sparc_spec.pl be/scripts/generate_emitter.pl
558 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
560 $(srcdir)/be/sparc/gen_sparc_regalloc_if.c $(srcdir)/be/sparc/gen_sparc_regalloc_if.h: \
561 be/sparc/sparc_spec.pl be/scripts/generate_regalloc_if.pl
562 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
567 be/amd64/amd64_emitter.c \
568 be/amd64/amd64_new_nodes.c \
569 be/amd64/amd64_transform.c \
570 be/amd64/bearch_amd64.c
571 amd64_built_sources = \
572 be/amd64/gen_amd64_emitter.c \
573 be/amd64/gen_amd64_emitter.h \
574 be/amd64/gen_amd64_new_nodes.c.inl \
575 be/amd64/gen_amd64_new_nodes.h \
576 be/amd64/gen_amd64_regalloc_if.c \
577 be/amd64/gen_amd64_regalloc_if.h
578 MAINTAINERCLEANFILES += $(amd64_built_sources)
579 BUILT_SOURCES += $(amd64_built_sources)
580 libfirm_la_SOURCES += $(amd64_sources) $(amd64_built_sources)
583 be/amd64/amd64_emitter.h \
584 be/amd64/amd64_new_nodes.h \
585 be/amd64/amd64_nodes_attr.h \
586 be/amd64/amd64_spec.pl \
587 be/amd64/amd64_transform.h \
588 be/amd64/bearch_amd64_t.h
590 $(srcdir)/be/amd64/gen_amd64_new_nodes.c.inl $(srcdir)/be/amd64/gen_amd64_new_nodes.h: \
591 be/amd64/amd64_spec.pl be/scripts/generate_new_opcodes.pl
592 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
594 $(srcdir)/be/amd64/gen_amd64_emitter.c $(srcdir)/be/amd64/gen_amd64_emitter.h: \
595 be/amd64/amd64_spec.pl be/scripts/generate_emitter.pl
596 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
598 $(srcdir)/be/amd64/gen_amd64_regalloc_if.c $(srcdir)/be/amd64/gen_amd64_regalloc_if.h: \
599 be/amd64/amd64_spec.pl be/scripts/generate_regalloc_if.pl
600 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
606 be/TEMPLATE/TEMPLATE_emitter.c \
607 be/TEMPLATE/TEMPLATE_new_nodes.c \
608 be/TEMPLATE/TEMPLATE_transform.c \
609 be/TEMPLATE/bearch_TEMPLATE.c
610 TEMPLATE_built_sources = \
611 be/TEMPLATE/gen_TEMPLATE_emitter.c \
612 be/TEMPLATE/gen_TEMPLATE_emitter.h \
613 be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl \
614 be/TEMPLATE/gen_TEMPLATE_new_nodes.h \
615 be/TEMPLATE/gen_TEMPLATE_regalloc_if.c \
616 be/TEMPLATE/gen_TEMPLATE_regalloc_if.h
617 MAINTAINERCLEANFILES += $(TEMPLATE_built_sources)
618 BUILT_SOURCES += $(TEMPLATE_built_sources)
619 libfirm_la_SOURCES += $(TEMPLATE_sources) $(TEMPLATE_built_sources)
622 be/TEMPLATE/TEMPLATE_emitter.h \
623 be/TEMPLATE/TEMPLATE_new_nodes.h \
624 be/TEMPLATE/TEMPLATE_nodes_attr.h \
625 be/TEMPLATE/TEMPLATE_spec.pl \
626 be/TEMPLATE/TEMPLATE_transform.h \
627 be/TEMPLATE/bearch_TEMPLATE_t.h
629 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.h: \
630 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_new_opcodes.pl
631 $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
633 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.h: \
634 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_emitter.pl
635 $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
637 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.h: \
638 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_regalloc_if.pl
639 $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE