amd64: Spell amd64 as AMD64 in macro names.
[libfirm] / ir / Makefile.am
1 lib_LTLIBRARIES = libfirm.la
2
3 INCLUDES = -I$(top_srcdir)/include/libfirm \
4         -I$(top_srcdir)/include/libfirm/adt \
5         -I$(top_builddir)
6
7 INCLUDES += \
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 \
24         -I$(top_srcdir)/ir/tv
25
26 libfirm_la_LDFLAGS = -no-undefined -version-info $(LT_VERSION) -lm
27 libfirm_la_CFLAGS = -std=c99
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/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/domfront.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/bedump.c \
80         be/bedwarf.c \
81         be/beemitter_binary.c \
82         be/beemitter.c \
83         be/beflags.c \
84         be/begnuas.c \
85         be/beifg.c \
86         be/beinfo.c \
87         be/beinsn.c \
88         be/beirg.c \
89         be/beirgmod.c \
90         be/belistsched.c \
91         be/belive.c \
92         be/beloopana.c \
93         be/belower.c \
94         be/bemain.c \
95         be/bemodule.c \
96         be/benode.c \
97         be/bepbqpcoloring.c \
98         be/bepeephole.c \
99         be/beprefalloc.c \
100         be/bera.c \
101         be/besched.c \
102         be/beschednormal.c \
103         be/beschedrand.c \
104         be/beschedregpress.c \
105         be/beschedtrace.c \
106         be/beschedtrivial.c \
107         be/bespillbelady.c \
108         be/bespill.c \
109         be/bespilldaemel.c \
110         be/bespillslots.c \
111         be/bespillutil.c \
112         be/bessaconstr.c \
113         be/bessadestr.c \
114         be/bestack.c \
115         be/bestat.c \
116         be/bestate.c \
117         be/betranshlp.c \
118         be/beuses.c \
119         be/beutil.c \
120         be/beverify.c \
121         common/debug.c \
122         common/error.c \
123         common/firm.c \
124         common/firm_common.c \
125         common/irtools.c \
126         common/timing.c \
127         debug/dbginfo.c \
128         debug/debugger.c \
129         ident/ident.c \
130         ident/mangle.c \
131         ir/instrument.c \
132         ir/irarch.c \
133         ir/irargs.c \
134         ir/ircomplib.c \
135         ir/ircons.c \
136         ir/irdump.c \
137         ir/irdumptxt.c \
138         ir/iredges.c \
139         ir/irflag.c \
140         ir/irgmod.c \
141         ir/irgopt.c \
142         ir/irgraph.c \
143         ir/irgwalk_blk.c \
144         ir/irgwalk.c \
145         ir/irhooks.c \
146         ir/irio.c \
147         ir/irmode.c \
148         ir/irnode.c \
149         ir/irnodehashmap.c \
150         ir/irnodeset.c \
151         ir/irop.c \
152         ir/iropt.c \
153         ir/irpass.c \
154         ir/irprintf.c \
155         ir/irprofile.c \
156         ir/irprog.c \
157         ir/irssacons.c \
158         ir/irverify.c \
159         ir/rm_bads.c \
160         ir/rm_tuples.c \
161         ir/unreachable.c \
162         ir/valueset.c \
163         libcore/lc_appendable.c \
164         libcore/lc_opts.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 \
171         lower/lower_dw.c \
172         lower/lower_hl.c \
173         lower/lower_intrinsics.c \
174         lower/lower_mode_b.c \
175         lower/lower_mux.c \
176         lower/lower_softfloat.c \
177         lower/lower_switch.c \
178         lpp/lpp.c \
179         lpp/lpp_comm.c \
180         lpp/lpp_cplex.c \
181         lpp/lpp_gurobi.c \
182         lpp/lpp_net.c \
183         lpp/lpp_solvers.c \
184         lpp/mps.c \
185         lpp/sp_matrix.c \
186         obstack/obstack.c \
187         obstack/obstack_printf.c \
188         opt/boolopt.c \
189         opt/cfopt.c \
190         opt/code_placement.c \
191         opt/combo.c \
192         opt/convopt.c \
193         opt/critical_edges.c \
194         opt/dead_code_elimination.c \
195         opt/escape_ana.c \
196         opt/fp-vrp.c \
197         opt/funccall.c \
198         opt/garbage_collect.c \
199         opt/gvn_pre.c \
200         opt/ifconv.c \
201         opt/ircgopt.c \
202         opt/jumpthreading.c \
203         opt/ldstopt.c \
204         opt/local.c \
205         opt/loop.c \
206         opt/opt_blocks.c \
207         opt/opt_confirms.c \
208         opt/opt_frame.c \
209         opt/opt_inline.c \
210         opt/opt_ldst.c \
211         opt/opt_osr.c \
212         opt/parallelize_mem.c \
213         opt/proc_cloning.c \
214         opt/reassoc.c \
215         opt/return.c \
216         opt/scalar_replace.c \
217         opt/tailrec.c \
218         opt/tropt.c \
219         stat/const_stat.c \
220         stat/dags.c \
221         stat/distrib.c \
222         stat/firmstat.c \
223         stat/pattern.c \
224         stat/pattern_dmp.c \
225         stat/stat_dmp.c \
226         stat/statev.c \
227         stat/stat_timing.c \
228         tr/entity.c \
229         tr/tpop.c \
230         tr/tr_inheritance.c \
231         tr/trverify.c \
232         tr/type.c \
233         tr/type_finalization.c \
234         tr/typewalk.c \
235         tv/fltcalc.c \
236         tv/strcalc.c \
237         tv/tv.c \
238         kaps/brute_force.c \
239         kaps/bucket.c \
240         kaps/heuristical.c \
241         kaps/heuristical_co.c \
242         kaps/heuristical_co_ld.c \
243         kaps/html_dumper.c \
244         kaps/kaps.c \
245         kaps/matrix.c \
246         kaps/optimal.c \
247         kaps/pbqp_edge.c \
248         kaps/pbqp_node.c \
249         kaps/vector.c
250
251 EXTRA_DIST = \
252         adt/array_t.h \
253         adt/bitfiddle.h \
254         adt/bitset.h \
255         adt/util.h \
256         adt/compiler.h \
257         adt/cpset.h \
258         adt/fourcc.h \
259         adt/raw_bitset.h \
260         adt/hashset.h \
261         adt/pset_new.h \
262         ana/absgraph.h \
263         ana/dfs.h \
264         ana/dfs_t.h \
265         ana/irbackedge_t.h \
266         ana/irdom_t.h \
267         ana/cdep_t.h \
268         ana/irlivechk.h \
269         ana/irloop_t.h \
270         ana/irmemory_t.h \
271         ana/execfreq_t.h \
272         ana/trouts_t.h \
273         be/be_t.h \
274         be/be_types.h \
275         be/beabi.h \
276         be/bearch.h \
277         be/beblocksched.h \
278         be/bechordal.h \
279         be/bechordal_draw.h \
280         be/bechordal_t.h \
281         be/becopyopt_t.h \
282         be/beabihelper.h \
283         be/becopyilp_t.h \
284         be/becopyopt.h \
285         be/becopystat.h \
286         be/bedump.h \
287         be/belive.h \
288         be/beintlive_t.h \
289         be/beemitter.h \
290         be/begnuas.h \
291         be/beifg.h \
292         be/bechordal_common.h \
293         be/beinsn_t.h \
294         be/beirg.h \
295         be/beflags.h \
296         be/beirgmod.h \
297         be/beemitter_binary.h \
298         be/belistsched.h \
299         be/belive_t.h \
300         be/beloopana.h \
301         be/belower.h \
302         be/beinfo.h \
303         be/bessaconstr.h \
304         be/bemodule.h \
305         be/bemodule_t.h \
306         be/benode.h \
307         be/bepeephole.h \
308         be/bepbqpcoloring.h \
309         be/bera.h \
310         be/besched.h \
311         be/bespill.h \
312         be/bespillslots.h \
313         be/beutil.h \
314         be/bessadestr.h \
315         be/bespillutil.h \
316         be/bestat.h \
317         be/betranshlp.h \
318         be/bestack.h \
319         be/bestate.h \
320         be/beverify.h \
321         be/bedwarf.h \
322         be/beuses.h \
323         be/bedwarf_t.h \
324         common/debug.h \
325         common/error.h \
326         common/irtools.h \
327         debug/dbginfo_t.h \
328         debug/debugger.h \
329         ident/ident_t.h \
330         ir/irflag_t.def \
331         ir/irargs_t.h \
332         ir/instrument.h \
333         ir/ircons_t.h \
334         ir/irdump_t.h \
335         ir/iredges_t.h \
336         ir/irflag_t.h \
337         ir/irgraph_t.h \
338         ir/iredgeset.h \
339         ir/irmode_t.h \
340         ir/irnode_t.h \
341         ir/irnodeset.h \
342         ir/gen_irnode.h \
343         ir/irop_t.h \
344         ir/iropt_t.h \
345         ir/irprog_t.h \
346         ir/irnodemap.h \
347         ir/irpass_t.h \
348         ir/irnodehashmap.h \
349         ir/irtypes.h \
350         ir/irverify_t.h \
351         ir/irprofile.h \
352         ir/valueset.h \
353         libcore/lc_appendable.h \
354         libcore/lc_opts.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 \
362         lower/lower_dw.h \
363         lower/lower_mode_b.h \
364         lower/lower_softfloat.h \
365         lpp/lpp.h \
366         lpp/lpp_comm.h \
367         lpp/lpp_cplex.h \
368         lpp/lpp_gurobi.h \
369         lpp/lpp_net.h \
370         lpp/lpp_solvers.h \
371         lpp/lpp_t.h \
372         lpp/mps.h \
373         lpp/sp_matrix.h \
374         opt/iropt_dbg.h \
375         opt/reassoc_t.h \
376         opt/scalar_replace.h \
377         opt/opt_init.h \
378         stat/counter.h \
379         stat/dags.h \
380         stat/firmstat_t.h \
381         stat/pattern.h \
382         stat/pattern_dmp.h \
383         stat/stat_dmp.h \
384         stat/stat_timing.h \
385         stat/statev_t.h \
386         tr/entity_t.h \
387         tr/tpop_t.h \
388         tr/type_t.h \
389         tv/fltcalc.h \
390         tv/tv_t.h \
391         tv/strcalc.h \
392         kaps/brute_force.h \
393         kaps/bucket.h \
394         kaps/bucket_t.h \
395         kaps/heuristical.h \
396         kaps/heuristical_co.h \
397         kaps/heuristical_co_ld.h \
398         kaps/html_dumper.h \
399         kaps/kaps.h \
400         kaps/matrix.h \
401         kaps/matrix_t.h \
402         kaps/optimal.h \
403         kaps/pbqp_edge.h \
404         kaps/pbqp_edge_t.h \
405         kaps/pbqp_node.h \
406         kaps/pbqp_node_t.h \
407         kaps/pbqp_t.h \
408         kaps/vector.h \
409         kaps/vector_t.h \
410         ir/gen_ir_cons.c.inl \
411         ir/gen_irop.c.inl \
412         ir/gen_irio.inl \
413         ir/gen_irnode.c.inl \
414         ir/gen_irdump.c.inl \
415         adt/hashset.c.inl \
416         be/scripts/generate_emitter.pl \
417         be/scripts/generate_new_opcodes.pl \
418         be/scripts/generate_regalloc_if.pl
419
420 # ia32 backend
421 ia32_sources = \
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 \
428         be/ia32/ia32_fpu.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 \
433         be/ia32/ia32_x87.c
434
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)
445
446 EXTRA_DIST += \
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 \
454         be/ia32/ia32_fpu.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 \
460         be/ia32/ia32_x87.h
461
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
465
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
469
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
473
474 # arm backend
475
476 arm_sources = \
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 \
482         be/arm/arm_cconv.c \
483         be/arm/bearch_arm.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)
494
495
496 EXTRA_DIST += \
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 \
501         be/arm/arm_spec.pl \
502         be/arm/arm_transform.h \
503         be/arm/arm_map_regs.h \
504         be/arm/arm_cconv.h \
505         be/arm/bearch_arm_t.h
506
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
510
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
514
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
518
519 # sparc backend
520
521 sparc_sources = \
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)
540
541 EXTRA_DIST += \
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
549
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
553
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
557
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
561
562 # amd64 backend
563
564 amd64_sources = \
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)
579
580 EXTRA_DIST += \
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
587
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
591
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
595
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
599
600
601 # TEMPLATE backend
602
603 TEMPLATE_sources = \
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)
618
619 EXTRA_DIST += \
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
626
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
630
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
634
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