a060a2b63b128f0c3dab48352b306a2c609c0f25
[libfirm] / ir / Makefile.am
1 lib_LTLIBRARIES = libfirm.la
2
3 INCLUDES = $(LIBCORE_CFLAGS) \
4         -I$(top_srcdir)/include/libfirm \
5         -I$(top_srcdir)/include/libfirm/adt \
6         -I$(top_builddir)
7
8 INCLUDES += \
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/net \
21         -I$(top_srcdir)/ir/opt \
22         -I$(top_srcdir)/ir/stat \
23         -I$(top_srcdir)/ir/tr \
24         -I$(top_srcdir)/ir/tv
25
26 libfirm_la_LDFLAGS = -no-undefined -version-info $(LT_VERSION)
27 libfirm_la_SOURCES = \
28         adt/array.c \
29         adt/bipartite.c \
30         adt/cpset.c \
31         adt/eset.c \
32         adt/gaussjordan.c \
33         adt/gaussseidel.c \
34         adt/hashset.c \
35         adt/hungarian.c \
36         adt/iterator.c \
37         adt/pdeq.c \
38         adt/plist.c \
39         adt/pmap.c \
40         adt/pqueue.c \
41         adt/pset.c \
42         adt/pset_new.c \
43         adt/set.c \
44         adt/xmalloc.c \
45         ana/absgraph.c \
46         ana/analyze_irg_args.c \
47         ana/callgraph.c \
48         ana/cdep.c \
49         ana/cgana.c \
50         ana/dfs.c \
51         ana/execfreq.c \
52         ana/execution_frequency.c \
53         ana/heights.c \
54         ana/interval_analysis.c \
55         ana/irbackedge.c \
56         ana/ircfscc.c \
57         ana/irconsconfirm.c \
58         ana/irdom.c \
59         ana/irextbb2.c \
60         ana/irextbb.c \
61         ana/irlivechk.c \
62         ana/irloop.c \
63         ana/irmemory.c \
64         ana/irouts.c \
65         ana/irscc.c \
66         ana/irtypeinfo.c \
67         ana/rta.c \
68         ana/structure.c \
69         ana/trouts.c \
70         ana/vrp.c \
71         be/beabi.c \
72         be/beabihelper.c \
73         be/bearch.c \
74         be/beblocksched.c \
75         be/bechordal.c \
76         be/bechordal_common.c \
77         be/bechordal_draw.c \
78         be/bechordal_main.c \
79         be/becopyheur2.c \
80         be/becopyheur4.c \
81         be/becopyheur.c \
82         be/becopyilp2.c \
83         be/becopyilp.c \
84         be/becopyopt.c \
85         be/becopystat.c \
86         be/bedbgout.c \
87         be/bedomfront.c \
88         be/beemitter_binary.c \
89         be/beemitter.c \
90         be/beflags.c \
91         be/begnuas.c \
92         be/beifg.c \
93         be/beinfo.c \
94         be/beinsn.c \
95         be/beirg.c \
96         be/beirgmod.c \
97         be/belistsched.c \
98         be/belive.c \
99         be/beloopana.c \
100         be/belower.c \
101         be/bemachine.c \
102         be/bemain.c \
103         be/bemodule.c \
104         be/benode.c \
105         be/bepbqpcoloring.c \
106         be/bepeephole.c \
107         be/beprefalloc.c \
108         be/bera.c \
109         be/besched.c \
110         be/beschednormal.c \
111         be/beschedrand.c \
112         be/beschedregpress.c \
113         be/beschedtrace.c \
114         be/beschedtrivial.c \
115         be/bespillbelady.c \
116         be/bespill.c \
117         be/bespilldaemel.c \
118         be/bespillslots.c \
119         be/bespillutil.c \
120         be/bessaconstr.c \
121         be/bessadestr.c \
122         be/bestabs.c \
123         be/bestack.c \
124         be/bestat.c \
125         be/bestate.c \
126         be/betranshlp.c \
127         be/beuses.c \
128         be/beutil.c \
129         be/beverify.c \
130         common/debug.c \
131         common/error.c \
132         common/firm.c \
133         common/firm_common.c \
134         common/irtools.c \
135         common/timing.c \
136         debug/dbginfo.c \
137         debug/debugger.c \
138         ident/ident.c \
139         ident/mangle.c \
140         ir/instrument.c \
141         ir/irarch.c \
142         ir/irargs.c \
143         ir/ircons.c \
144         ir/irdump.c \
145         ir/irdumptxt.c \
146         ir/iredges.c \
147         ir/irflag.c \
148         ir/irgmod.c \
149         ir/irgopt.c \
150         ir/irgraph.c \
151         ir/irgwalk_blk.c \
152         ir/irgwalk.c \
153         ir/irhooks.c \
154         ir/irio.c \
155         ir/irlinkednodemap.c \
156         ir/irlinkednodeset.c \
157         ir/irmode.c \
158         ir/irnode.c \
159         ir/irnodemap.c \
160         ir/irnodeset.c \
161         ir/irop.c \
162         ir/iropt.c \
163         ir/irpass.c \
164         ir/irphase.c \
165         ir/irprintf.c \
166         ir/irprofile.c \
167         ir/irprog.c \
168         ir/irssacons.c \
169         ir/irverify.c \
170         ir/valueset.c \
171         libcore/lc_appendable.c \
172         libcore/lc_opts.c \
173         libcore/lc_opts_enum.c \
174         libcore/lc_printf.c \
175         lower/lower_calls.c \
176         lower/lower_copyb.c \
177         lower/lower_dw.c \
178         lower/lower_hl.c \
179         lower/lower_intrinsics.c \
180         lower/lower_mode_b.c \
181         lower/lower_mux.c \
182         lower/lower_switch.c \
183         obstack/obstack.c \
184         obstack/obstack_printf.c \
185         opt/boolopt.c \
186         opt/cfopt.c \
187         opt/code_placement.c \
188         opt/combo.c \
189         opt/convopt.c \
190         opt/critical_edges.c \
191         opt/dead_code_elimination.c \
192         opt/escape_ana.c \
193         opt/fp-vrp.c \
194         opt/funccall.c \
195         opt/garbage_collect.c \
196         opt/gvn_pre.c \
197         opt/ifconv.c \
198         opt/ircgopt.c \
199         opt/jumpthreading.c \
200         opt/ldstopt.c \
201         opt/loop.c \
202         opt/opt_blocks.c \
203         opt/opt_confirms.c \
204         opt/opt_frame.c \
205         opt/opt_inline.c \
206         opt/opt_ldst.c \
207         opt/opt_osr.c \
208         opt/opt_polymorphy.c \
209         opt/parallelize_mem.c \
210         opt/proc_cloning.c \
211         opt/reassoc.c \
212         opt/return.c \
213         opt/scalar_replace.c \
214         opt/tailrec.c \
215         opt/tropt.c \
216         stat/const_stat.c \
217         stat/dags.c \
218         stat/distrib.c \
219         stat/firmstat.c \
220         stat/pattern.c \
221         stat/pattern_dmp.c \
222         stat/stat_dmp.c \
223         stat/statev.c \
224         stat/stat_timing.c \
225         tr/compound_path.c \
226         tr/entity.c \
227         tr/tpop.c \
228         tr/tr_inheritance.c \
229         tr/trverify.c \
230         tr/type.c \
231         tr/type_finalization.c \
232         tr/typewalk.c \
233         tv/fltcalc.c \
234         tv/strcalc.c \
235         tv/tv.c \
236         kaps/brute_force.c \
237         kaps/bucket.c \
238         kaps/heuristical.c \
239         kaps/heuristical_co.c \
240         kaps/heuristical_co_ld.c \
241         kaps/html_dumper.c \
242         kaps/kaps.c \
243         kaps/matrix.c \
244         kaps/optimal.c \
245         kaps/pbqp_edge.c \
246         kaps/pbqp_node.c \
247         kaps/vector.c
248
249 EXTRA_DIST = \
250         adt/array_t.h \
251         adt/bitfiddle.h \
252         adt/bitset.h \
253         adt/compiler.h \
254         adt/raw_bitset.h \
255         adt/util.h \
256         ana/absgraph.h \
257         ana/dfs.h \
258         ana/dfs_t.h \
259         ana/irbackedge_t.h \
260         ana/irdom_t.h \
261         ana/irextbb_t.h \
262         ana/irlivechk.h \
263         ana/irloop_t.h \
264         ana/irmemory_t.h \
265         be/be_dbgout.h \
266         be/be_dbgout_t.h \
267         be/be_t.h \
268         be/be_types.h \
269         be/beabi.h \
270         be/beabihelper.h \
271         be/bearch.h \
272         be/beblocksched.h \
273         be/bechordal.h \
274         be/bechordal_common.h \
275         be/bechordal_draw.h \
276         be/bechordal_t.h \
277         be/becopyilp_t.h \
278         be/becopyopt.h \
279         be/becopyopt_t.h \
280         be/becopystat.h \
281         be/bedomfront.h \
282         be/beemitter.h \
283         be/beemitter_binary.h \
284         be/beflags.h \
285         be/begnuas.h \
286         be/beifg.h \
287         be/beinfo.h \
288         be/beinsn_t.h \
289         be/beintlive_t.h \
290         be/beirg.h \
291         be/beirgmod.h \
292         be/belistsched.h \
293         be/belive.h \
294         be/belive_t.h \
295         be/beloopana.h \
296         be/belower.h \
297         be/bemachine.h \
298         be/bemodule.h \
299         be/bemodule_t.h \
300         be/benode.h \
301         be/bepbqpcoloring.h \
302         be/bepeephole.h \
303         be/bera.h \
304         be/besched.h \
305         be/bespill.h \
306         be/bespillslots.h \
307         be/bespillutil.h \
308         be/bessaconstr.h \
309         be/bessadestr.h \
310         be/bestack.h \
311         be/bestat.h \
312         be/bestate.h \
313         be/bestatevent.h \
314         be/betranshlp.h \
315         be/beuses.h \
316         be/beutil.h \
317         be/beverify.h \
318         common/debug.h \
319         common/error.h \
320         common/irtools.h \
321         debug/dbginfo_t.h \
322         debug/debugger.h \
323         ident/ident_t.h \
324         ir/instrument.h \
325         ir/irargs_t.h \
326         ir/irbitset.h \
327         ir/ircons_t.h \
328         ir/irdump_t.h \
329         ir/iredges_t.h \
330         ir/iredgeset.h \
331         ir/irflag_t.def \
332         ir/irflag_t.h \
333         ir/irgraph_t.h \
334         ir/irmode_t.h \
335         ir/irnode_t.h \
336         ir/irop_t.h \
337         ir/iropt_t.h \
338         ir/irphase_t.h \
339         ir/irprintf_t.h \
340         ir/irprog_t.h \
341         ir/irlinkednodemap.h \
342         ir/irlinkednodeset.h \
343         ir/irnodemap.h \
344         ir/irnodeset.h \
345         ir/irpass_t.h \
346         ir/irphase.h \
347         ir/irprofile.h \
348         ir/irtypes.h \
349         ir/irverify_t.h \
350         ir/valueset.h \
351         ir/gen_irnode.h \
352         libcore/lc_appendable.h \
353         libcore/lc_common_t.h \
354         libcore/lc_config.h \
355         libcore/lc_opts.h \
356         libcore/lc_defines.h \
357         libcore/lc_opts_enum.h \
358         libcore/lc_opts_t.h \
359         libcore/lc_printf.h \
360         libcore/lc_printf_arg_types.def \
361         opt/opt_polymorphy.h \
362         opt/reassoc_t.h \
363         opt/scalar_replace.h \
364         opt/iropt_dbg.h \
365         opt/opt_init.h \
366         stat/counter.h \
367         stat/dags.h \
368         stat/firmstat_t.h \
369         stat/pattern.h \
370         stat/pattern_dmp.h \
371         stat/stat_dmp.h \
372         stat/stat_timing.h \
373         stat/statev.h \
374         tr/compound_path_t.h \
375         tr/entity_t.h \
376         tr/tpop_t.h \
377         tr/type_t.h \
378         tv/fltcalc.h \
379         tv/strcalc.h \
380         tv/tv_t.h \
381         kaps/brute_force.h \
382         kaps/bucket.h \
383         kaps/bucket_t.h \
384         kaps/heuristical.h \
385         kaps/heuristical_co.h \
386         kaps/heuristical_co_ld.h \
387         kaps/html_dumper.h \
388         kaps/kaps.h \
389         kaps/matrix.h \
390         kaps/matrix_t.h \
391         kaps/optimal.h \
392         kaps/pbqp_edge.h \
393         kaps/pbqp_edge_t.h \
394         kaps/pbqp_node.h \
395         kaps/pbqp_node_t.h \
396         kaps/pbqp_t.h \
397         kaps/vector.h \
398         kaps/vector_t.h \
399         ir/gen_ir_cons.c.inl \
400         ir/gen_irnode.c.inl \
401         ir/gen_irop.c.inl \
402         ir/gen_irio_export.inl \
403         ir/gen_irio_import.inl \
404         ir/gen_irio_lex.inl \
405         be/scripts/generate_emitter_new.pl \
406         be/scripts/generate_emitter.pl \
407         be/scripts/generate_machine.pl \
408         be/scripts/generate_new_opcodes.pl \
409         be/scripts/generate_regalloc_if.pl
410
411 # ia32 backend
412 ia32_sources = \
413         be/ia32/bearch_ia32.c \
414         be/ia32/ia32_address_mode.c \
415         be/ia32/ia32_architecture.c \
416         be/ia32/ia32_common_transform.c \
417         be/ia32/ia32_emitter.c \
418         be/ia32/ia32_finish.c \
419         be/ia32/ia32_fpu.c \
420         be/ia32/ia32_intrinsics.c \
421         be/ia32/ia32_new_nodes.c \
422         be/ia32/ia32_optimize.c \
423         be/ia32/ia32_transform.c \
424         be/ia32/ia32_x87.c
425
426 ia32_built_sources = \
427         be/ia32/gen_ia32_emitter.c \
428         be/ia32/gen_ia32_emitter.h \
429         be/ia32/gen_ia32_machine.c \
430         be/ia32/gen_ia32_machine.h \
431         be/ia32/gen_ia32_new_nodes.c.inl \
432         be/ia32/gen_ia32_new_nodes.h \
433         be/ia32/gen_ia32_regalloc_if.c \
434         be/ia32/gen_ia32_regalloc_if.h
435 MAINTAINERCLEANFILES = $(ia32_built_sources)
436 BUILT_SOURCES        = $(ia32_built_sources)
437 libfirm_la_SOURCES  += $(ia32_sources) $(ia32_built_sources)
438
439 EXTRA_DIST += \
440         be/ia32/bearch_ia32_t.h \
441         be/ia32/ia32_address_mode.h \
442         be/ia32/ia32_architecture.h \
443         be/ia32/ia32_common_transform.h \
444         be/ia32/ia32_dbg_stat.h \
445         be/ia32/ia32_emitter.h \
446         be/ia32/ia32_finish.h \
447         be/ia32/ia32_fpu.h \
448         be/ia32/ia32_new_nodes.h \
449         be/ia32/ia32_nodes_attr.h \
450         be/ia32/ia32_optimize.h \
451         be/ia32/ia32_spec.pl \
452         be/ia32/ia32_transform.h \
453         be/ia32/ia32_x87.h
454
455 $(srcdir)/be/ia32/gen_ia32_new_nodes.c.inl $(srcdir)/be/ia32/gen_ia32_new_nodes.h: \
456                 be/ia32/ia32_spec.pl be/scripts/generate_new_opcodes.pl
457         $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
458
459 $(srcdir)/be/ia32/gen_ia32_emitter.c $(srcdir)/be/ia32/gen_ia32_emitter.h: \
460                 be/ia32/ia32_spec.pl be/scripts/generate_emitter.pl
461         $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
462
463 $(srcdir)/be/ia32/gen_ia32_machine.c $(srcdir)/be/ia32/gen_ia32_machine.h: \
464                 be/ia32/ia32_spec.pl be/scripts/generate_machine.pl
465         $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
466
467 $(srcdir)/be/ia32/gen_ia32_regalloc_if.c $(srcdir)/be/ia32/gen_ia32_regalloc_if.h: \
468                 be/ia32/ia32_spec.pl be/scripts/generate_regalloc_if.pl
469         $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
470
471 # arm backend
472
473 arm_sources = \
474         be/arm/arm_emitter.c \
475         be/arm/arm_new_nodes.c \
476         be/arm/arm_optimize.c \
477         be/arm/arm_transform.c \
478         be/arm/arm_map_regs.c \
479         be/arm/arm_cconv.c \
480         be/arm/bearch_arm.c
481 arm_built_sources = \
482         be/arm/gen_arm_emitter.c \
483         be/arm/gen_arm_emitter.h \
484         be/arm/gen_arm_machine.c \
485         be/arm/gen_arm_machine.h \
486         be/arm/gen_arm_new_nodes.c.inl \
487         be/arm/gen_arm_new_nodes.h \
488         be/arm/gen_arm_regalloc_if.c \
489         be/arm/gen_arm_regalloc_if.h
490 MAINTAINERCLEANFILES += $(arm_built_sources)
491 BUILT_SOURCES += $(arm_built_sources)
492 libfirm_la_SOURCES += $(arm_sources) $(arm_built_sources)
493
494
495 EXTRA_DIST += \
496         be/arm/arm_emitter.h \
497         be/arm/arm_new_nodes.h \
498         be/arm/arm_nodes_attr.h \
499         be/arm/arm_optimize.h \
500         be/arm/arm_spec.pl \
501         be/arm/arm_transform.h \
502         be/arm/arm_map_regs.h \
503         be/arm/arm_cconv.h \
504         be/arm/bearch_arm_t.h
505
506 $(srcdir)/be/arm/gen_arm_new_nodes.c.inl $(srcdir)/be/arm/gen_arm_new_nodes.h: \
507                 be/arm/arm_spec.pl be/scripts/generate_new_opcodes.pl
508         $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
509
510 $(srcdir)/be/arm/gen_arm_emitter.c $(srcdir)/be/arm/gen_arm_emitter.h: \
511                 be/arm/arm_spec.pl be/scripts/generate_emitter.pl
512         $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
513
514 $(srcdir)/be/arm/gen_arm_machine.c $(srcdir)/be/arm/gen_arm_machine.h: \
515                 be/arm/arm_spec.pl be/scripts/generate_machine.pl
516         $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
517
518 $(srcdir)/be/arm/gen_arm_regalloc_if.c $(srcdir)/be/arm/gen_arm_regalloc_if.h: \
519                 be/arm/arm_spec.pl be/scripts/generate_machine.pl
520         $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
521
522 # sparc backend
523
524 sparc_sources = \
525         be/sparc/sparc_emitter.c \
526         be/sparc/sparc_new_nodes.c \
527         be/sparc/sparc_transform.c \
528         be/sparc/sparc_cconv.c \
529         be/sparc/sparc_finish.c \
530         be/sparc/bearch_sparc.c
531 sparc_built_sources = \
532         be/sparc/gen_sparc_emitter.c \
533         be/sparc/gen_sparc_emitter.h \
534         be/sparc/gen_sparc_machine.c \
535         be/sparc/gen_sparc_machine.h \
536         be/sparc/gen_sparc_new_nodes.c.inl \
537         be/sparc/gen_sparc_new_nodes.h \
538         be/sparc/gen_sparc_regalloc_if.c \
539         be/sparc/gen_sparc_regalloc_if.h
540 MAINTAINERCLEANFILES += $(sparc_built_sources)
541 BUILT_SOURCES += $(sparc_built_sources)
542 libfirm_la_SOURCES += $(sparc_sources) $(sparc_built_sources)
543
544 EXTRA_DIST += \
545         be/sparc/sparc_emitter.h \
546         be/sparc/sparc_new_nodes.h \
547         be/sparc/sparc_nodes_attr.h \
548         be/sparc/sparc_spec.pl \
549         be/sparc/sparc_cconv.h \
550         be/sparc/sparc_transform.h \
551         be/sparc/bearch_sparc_t.h
552
553 $(srcdir)/be/sparc/gen_sparc_new_nodes.c.inl $(srcdir)/be/sparc/gen_sparc_new_nodes.h: \
554                 be/sparc/sparc_spec.pl be/scripts/generate_new_opcodes.pl
555         $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
556
557 $(srcdir)/be/sparc/gen_sparc_emitter.c $(srcdir)/be/sparc/gen_sparc_emitter.h: \
558                 be/sparc/sparc_spec.pl be/scripts/generate_emitter.pl
559         $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
560
561 $(srcdir)/be/sparc/gen_sparc_machine.c $(srcdir)/be/sparc/gen_sparc_machine.h: \
562                 be/sparc/sparc_spec.pl be/scripts/generate_machine.pl
563         $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
564
565 $(srcdir)/be/sparc/gen_sparc_regalloc_if.c $(srcdir)/be/sparc/gen_sparc_regalloc_if.h: \
566                 be/sparc/sparc_spec.pl be/scripts/generate_machine.pl
567         $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
568
569 # amd64 backend
570
571 amd64_sources = \
572         be/amd64/amd64_emitter.c \
573         be/amd64/amd64_new_nodes.c \
574         be/amd64/amd64_transform.c \
575         be/amd64/bearch_amd64.c
576 amd64_built_sources = \
577         be/amd64/gen_amd64_emitter.c \
578         be/amd64/gen_amd64_emitter.h \
579         be/amd64/gen_amd64_machine.c \
580         be/amd64/gen_amd64_machine.h \
581         be/amd64/gen_amd64_new_nodes.c.inl \
582         be/amd64/gen_amd64_new_nodes.h \
583         be/amd64/gen_amd64_regalloc_if.c \
584         be/amd64/gen_amd64_regalloc_if.h
585 MAINTAINERCLEANFILES += $(amd64_built_sources)
586 BUILT_SOURCES += $(amd64_built_sources)
587 libfirm_la_SOURCES += $(amd64_sources) $(amd64_built_sources)
588
589 EXTRA_DIST += \
590         be/amd64/amd64_emitter.h \
591         be/amd64/amd64_new_nodes.h \
592         be/amd64/amd64_nodes_attr.h \
593         be/amd64/amd64_spec.pl \
594         be/amd64/amd64_transform.h \
595         be/amd64/bearch_amd64_t.h
596
597 $(srcdir)/be/amd64/gen_amd64_new_nodes.c.inl $(srcdir)/be/amd64/gen_amd64_new_nodes.h: \
598                 be/amd64/amd64_spec.pl be/scripts/generate_new_opcodes.pl
599         $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
600
601 $(srcdir)/be/amd64/gen_amd64_emitter.c $(srcdir)/be/amd64/gen_amd64_emitter.h: \
602                 be/amd64/amd64_spec.pl be/scripts/generate_emitter.pl
603         $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
604
605 $(srcdir)/be/amd64/gen_amd64_machine.c $(srcdir)/be/amd64/gen_amd64_machine.h: \
606                 be/amd64/amd64_spec.pl be/scripts/generate_machine.pl
607         $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
608
609 $(srcdir)/be/amd64/gen_amd64_regalloc_if.c $(srcdir)/be/amd64/gen_amd64_regalloc_if.h: \
610                 be/amd64/amd64_spec.pl be/scripts/generate_machine.pl
611         $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
612
613
614 # TEMPLATE backend
615
616 TEMPLATE_sources = \
617         be/TEMPLATE/TEMPLATE_emitter.c \
618         be/TEMPLATE/TEMPLATE_new_nodes.c \
619         be/TEMPLATE/TEMPLATE_transform.c \
620         be/TEMPLATE/bearch_TEMPLATE.c
621 TEMPLATE_built_sources = \
622         be/TEMPLATE/gen_TEMPLATE_emitter.c \
623         be/TEMPLATE/gen_TEMPLATE_emitter.h \
624         be/TEMPLATE/gen_TEMPLATE_machine.c \
625         be/TEMPLATE/gen_TEMPLATE_machine.h \
626         be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl \
627         be/TEMPLATE/gen_TEMPLATE_new_nodes.h \
628         be/TEMPLATE/gen_TEMPLATE_regalloc_if.c \
629         be/TEMPLATE/gen_TEMPLATE_regalloc_if.h
630 MAINTAINERCLEANFILES += $(TEMPLATE_built_sources)
631 BUILT_SOURCES += $(TEMPLATE_built_sources)
632 libfirm_la_SOURCES += $(TEMPLATE_sources) $(TEMPLATE_built_sources)
633
634 EXTRA_DIST += \
635         be/TEMPLATE/TEMPLATE_emitter.h \
636         be/TEMPLATE/TEMPLATE_new_nodes.h \
637         be/TEMPLATE/TEMPLATE_nodes_attr.h \
638         be/TEMPLATE/TEMPLATE_spec.pl \
639         be/TEMPLATE/TEMPLATE_transform.h \
640         be/TEMPLATE/bearch_TEMPLATE_t.h
641
642 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.h: \
643                 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_new_opcodes.pl
644         $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
645
646 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.h: \
647                 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_emitter.pl
648         $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
649
650 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_machine.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_machine.h: \
651                 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_machine.pl
652         $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
653
654 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.h: \
655                 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_machine.pl
656         $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE