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