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