35fbc9f87150d037a64ff7570a62e7c0a61b542a
[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_LDFLAGS = -no-undefined -version-info $(LT_VERSION)
26 libfirm_la_SOURCES = \
27         adt/array.c \
28         adt/bipartite.c \
29         adt/cpset.c \
30         adt/eset.c \
31         adt/gaussjordan.c \
32         adt/gaussseidel.c \
33         adt/hashset.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/execution_frequency.c \
52         ana/field_temperature.c \
53         ana/height.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/irsimpletype.c \
67         ana/irtypeinfo.c \
68         ana/rta.c \
69         ana/structure.c \
70         ana/trouts.c \
71         ana/vrp.c \
72         be/beabi.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/becopyilp1.c \
83         be/becopyilp2.c \
84         be/becopyilp.c \
85         be/becopyopt.c \
86         be/becopypbqp.c \
87         be/becopystat.c \
88         be/bedbgout.c \
89         be/bedomfront.c \
90         be/bedump_minir.c \
91         be/beemitter_binary.c \
92         be/beemitter.c \
93         be/beflags.c \
94         be/begnuas.c \
95         be/beifg.c \
96         be/beilpsched.c \
97         be/beinfo.c \
98         be/beinsn.c \
99         be/beirg.c \
100         be/beirgmod.c \
101         be/belistsched.c \
102         be/belive.c \
103         be/beloopana.c \
104         be/belower.c \
105         be/bemachine.c \
106         be/bemain.c \
107         be/bemodule.c \
108         be/benode.c \
109         be/bepbqpcoloring.c \
110         be/bepeephole.c \
111         be/beprefalloc.c \
112         be/bepressurestat.c \
113         be/bera.c \
114         be/besched.c \
115         be/beschedmris.c \
116         be/beschednormal.c \
117         be/beschedrand.c \
118         be/beschedregpress.c \
119         be/beschedrss.c \
120         be/beschedtrace.c \
121         be/beschedtrivial.c \
122         be/bespillbelady2.c \
123         be/bespillbelady3.c \
124         be/bespillbelady.c \
125         be/bespill.c \
126         be/bespilldaemel.c \
127         be/bespillslots.c \
128         be/bespillutil.c \
129         be/bessaconstr.c \
130         be/bessadestr.c \
131         be/bestabs.c \
132         be/bestat.c \
133         be/bestate.c \
134         be/betranshlp.c \
135         be/beuses.c \
136         be/beutil.c \
137         be/beverify.c \
138         common/debug.c \
139         common/error.c \
140         common/firm.c \
141         common/firm_common.c \
142         common/irtools.c \
143         common/timing.c \
144         debug/dbginfo.c \
145         debug/debugger.c \
146         debug/seqnumbers.c \
147         ident/ident.c \
148         ident/mangle.c \
149         ir/instrument.c \
150         ir/irarch.c \
151         ir/irargs.c \
152         ir/ircgcons.c \
153         ir/ircons.c \
154         ir/irdump.c \
155         ir/irdumptxt.c \
156         ir/iredges.c \
157         ir/irflag.c \
158         ir/irgmod.c \
159         ir/irgopt.c \
160         ir/irgraph.c \
161         ir/irgwalk_blk.c \
162         ir/irgwalk.c \
163         ir/irhooks.c \
164         ir/irio.c \
165         ir/irlinkednodemap.c \
166         ir/irlinkednodeset.c \
167         ir/irmode.c \
168         ir/irnode.c \
169         ir/irnodemap.c \
170         ir/irnodeset.c \
171         ir/irop.c \
172         ir/iropt.c \
173         ir/irpass.c \
174         ir/irphase.c \
175         ir/irprintf.c \
176         ir/irprofile.c \
177         ir/irprog.c \
178         ir/irssacons.c \
179         ir/irvrfy.c \
180         ir/valueset.c \
181         libcore/lc_appendable.c \
182         libcore/lc_config_lexer.c \
183         libcore/lc_config_parser.c \
184         libcore/lc_opts.c \
185         libcore/lc_opts_enum.c \
186         libcore/lc_printf.c \
187         lower/lower_calls.c \
188         lower/lower_copyb.c \
189         lower/lower_dw.c \
190         lower/lower_hl.c \
191         lower/lower_intrinsics.c \
192         lower/lower_mode_b.c \
193         lower/lower_mux.c \
194         lower/lower_switch.c \
195         obstack/obstack.c \
196         obstack/obstack_printf.c \
197         opt/boolopt.c \
198         opt/cfopt.c \
199         opt/code_placement.c \
200         opt/combo.c \
201         opt/convopt.c \
202         opt/critical_edges.c \
203         opt/dead_code_elimination.c \
204         opt/escape_ana.c \
205         opt/fp-vrp.c \
206         opt/funccall.c \
207         opt/garbage_collect.c \
208         opt/gvn_pre.c \
209         opt/ifconv.c \
210         opt/ircgopt.c \
211         opt/jumpthreading.c \
212         opt/ldstopt.c \
213         opt/loop.c \
214         opt/opt_blocks.c \
215         opt/opt_confirms.c \
216         opt/opt_frame.c \
217         opt/opt_inline.c \
218         opt/opt_ldst.c \
219         opt/opt_osr.c \
220         opt/opt_polymorphy.c \
221         opt/parallelize_mem.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/compound_path.c \
239         tr/entity.c \
240         tr/tpop.c \
241         tr/tr_inheritance.c \
242         tr/trvrfy.c \
243         tr/type.c \
244         tr/type_finalization.c \
245         tr/typewalk.c \
246         tv/fltcalc.c \
247         tv/strcalc.c \
248         tv/tv.c
249
250 EXTRA_DIST = \
251         adt/array_t.h \
252         adt/bitfiddle.h \
253         adt/bitset.h \
254         adt/compiler.h \
255         adt/raw_bitset.h \
256         adt/util.h \
257         ana/absgraph.h \
258         ana/dfs.h \
259         ana/dfs_t.h \
260         ana/irbackedge_t.h \
261         ana/irdom_t.h \
262         ana/irextbb_t.h \
263         ana/irlivechk.h \
264         ana/irloop_t.h \
265         ana/irmemory_t.h \
266         be/be_dbgout.h \
267         be/be_dbgout_t.h \
268         be/be_t.h \
269         be/be_types.h \
270         be/beabi.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/becopypbqp.h \
281         be/becopystat.h \
282         be/bedomfront.h \
283         be/bedump_minir.h \
284         be/beemitter.h \
285         be/beemitter_binary.h \
286         be/beflags.h \
287         be/begnuas.h \
288         be/beifg.h \
289         be/beilpsched.h \
290         be/beinfo.h \
291         be/beinsn_t.h \
292         be/beintlive_t.h \
293         be/beirg.h \
294         be/beirgmod.h \
295         be/belistsched.h \
296         be/belive.h \
297         be/belive_t.h \
298         be/beloopana.h \
299         be/belower.h \
300         be/bemachine.h \
301         be/benode.h \
302         be/bemodule.h \
303         be/bemodule_t.h \
304         be/besched.h \
305         be/bepbqpcoloring.h \
306         be/bepeephole.h \
307         be/bepressurestat.h \
308         be/bera.h \
309         be/beschedmris.h \
310         be/beutil.h \
311         be/beschedrss.h \
312         be/bespill.h \
313         be/bespillslots.h \
314         be/bespillutil.h \
315         be/bessaconstr.h \
316         be/bessadestr.h \
317         be/bestat.h \
318         be/bestate.h \
319         be/bestatevent.h \
320         be/betranshlp.h \
321         be/beuses.h \
322         be/beverify.h \
323         common/debug.h \
324         common/error.h \
325         common/irtools.h \
326         debug/dbginfo_t.h \
327         debug/debugger.h \
328         ident/ident_t.h \
329         ir/instrument.h \
330         ir/irargs_t.h \
331         ir/irbitset.h \
332         ir/ircons_t.h \
333         ir/irdump_t.h \
334         ir/iredges_t.h \
335         ir/iredgeset.h \
336         ir/irflag_t.def \
337         ir/irflag_t.h \
338         ir/irgraph_t.h \
339         ir/irlinkednodemap.h \
340         ir/irlinkednodeset.h \
341         ir/irmode_t.h \
342         ir/irnode_t.h \
343         ir/irnodemap.h \
344         ir/irnodeset.h \
345         ir/irop_t.h \
346         ir/iropt_t.h \
347         ir/irpass_t.h \
348         ir/irphase.h \
349         ir/irphase_t.h \
350         ir/irprintf_t.h \
351         ir/irprofile.h \
352         ir/irprog_t.h \
353         ir/irtypes.h \
354         ir/irvrfy_t.h \
355         ir/valueset.h \
356         ir/gen_irnode.h \
357         libcore/do_bisonflex.sh \
358         libcore/lc_appendable.h \
359         libcore/lc_common_t.h \
360         libcore/lc_config.h \
361         libcore/lc_config_lexer.l \
362         libcore/lc_config_parser.h \
363         libcore/lc_config_parser.y \
364         libcore/lc_defines.h \
365         libcore/lc_opts.h \
366         libcore/lc_opts_enum.h \
367         libcore/lc_opts_t.h \
368         libcore/lc_parser_t.h \
369         libcore/lc_printf.h \
370         libcore/lc_printf_arg_types.def \
371         opt/iropt_dbg.h \
372         opt/opt_confirms.h \
373         opt/opt_init.h \
374         opt/opt_polymorphy.h \
375         opt/reassoc_t.h \
376         opt/scalar_replace.h \
377         stat/counter.h \
378         stat/dags.h \
379         stat/firmstat_t.h \
380         stat/pattern.h \
381         stat/pattern_dmp.h \
382         stat/stat_dmp.h \
383         stat/stat_timing.h \
384         stat/statev.h \
385         tr/compound_path_t.h \
386         tr/entity_t.h \
387         tr/tpop_t.h \
388         tr/type_t.h \
389         tv/fltcalc.h \
390         tv/strcalc.h \
391         tv/tv_t.h \
392         ir/gen_ir_cons.c.inl \
393         ir/gen_irnode.c.inl \
394         ir/gen_irop.c.inl \
395         ir/gen_irio_export.inl \
396         ir/gen_irio_import.inl \
397         ir/gen_irio_lex.inl \
398         be/scripts/generate_emitter_new.pl \
399         be/scripts/generate_emitter.pl \
400         be/scripts/generate_machine.pl \
401         be/scripts/generate_new_opcodes.pl \
402         be/scripts/generate_regalloc_if.pl
403
404 # ia32 backend
405
406 ia32_sources = \
407         be/ia32/bearch_ia32.c \
408         be/ia32/ia32_address_mode.c \
409         be/ia32/ia32_architecture.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_new_nodes.c.inl \
428         be/ia32/gen_ia32_new_nodes.h \
429         be/ia32/gen_ia32_regalloc_if.c \
430         be/ia32/gen_ia32_regalloc_if.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/bearch_ia32_t.h \
437         be/ia32/ia32_address_mode.h \
438         be/ia32/ia32_architecture.h \
439         be/ia32/ia32_common_transform.h \
440         be/ia32/ia32_dbg_stat.h \
441         be/ia32/ia32_emitter.h \
442         be/ia32/ia32_finish.h \
443         be/ia32/ia32_fpu.h \
444         be/ia32/ia32_map_regs.h \
445         be/ia32/ia32_new_nodes.h \
446         be/ia32/ia32_nodes_attr.h \
447         be/ia32/ia32_optimize.h \
448         be/ia32/ia32_spec.pl \
449         be/ia32/ia32_transform.h \
450         be/ia32/ia32_util.h \
451         be/ia32/ia32_x87.h
452
453 $(srcdir)/be/ia32/gen_ia32_new_nodes.c.inl $(srcdir)/be/ia32/gen_ia32_new_nodes.h: \
454                 be/ia32/ia32_spec.pl be/scripts/generate_new_opcodes.pl
455         $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
456
457 $(srcdir)/be/ia32/gen_ia32_emitter.c $(srcdir)/be/ia32/gen_ia32_emitter.h: \
458                 be/ia32/ia32_spec.pl be/scripts/generate_emitter.pl
459         $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
460
461 $(srcdir)/be/ia32/gen_ia32_machine.c $(srcdir)/be/ia32/gen_ia32_machine.h: \
462                 be/ia32/ia32_spec.pl be/scripts/generate_machine.pl
463         $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
464
465 $(srcdir)/be/ia32/gen_ia32_regalloc_if.c $(srcdir)/be/ia32/gen_ia32_regalloc_if.h: \
466                 be/ia32/ia32_spec.pl be/scripts/generate_regalloc_if.pl
467         $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/ia32/ia32_spec.pl $(srcdir)/be/ia32
468
469 # arm backend
470
471 arm_sources = \
472         be/arm/arm_emitter.c \
473         be/arm/arm_map_regs.c \
474         be/arm/arm_new_nodes.c \
475         be/arm/arm_optimize.c \
476         be/arm/arm_transform.c \
477         be/arm/bearch_arm.c
478 arm_built_sources = \
479         be/arm/gen_arm_emitter.c \
480         be/arm/gen_arm_emitter.h \
481         be/arm/gen_arm_machine.c \
482         be/arm/gen_arm_machine.h \
483         be/arm/gen_arm_new_nodes.c.inl \
484         be/arm/gen_arm_new_nodes.h \
485         be/arm/gen_arm_regalloc_if.c \
486         be/arm/gen_arm_regalloc_if.h
487 MAINTAINERCLEANFILES += $(arm_built_sources)
488 BUILT_SOURCES += $(arm_built_sources)
489 libfirm_la_SOURCES += $(arm_sources) $(arm_built_sources)
490
491
492 EXTRA_DIST += \
493         be/arm/arm_emitter.h \
494         be/arm/arm_map_regs.h \
495         be/arm/arm_new_nodes.h \
496         be/arm/arm_nodes_attr.h \
497         be/arm/arm_optimize.h \
498         be/arm/arm_spec.pl \
499         be/arm/arm_transform.h \
500         be/arm/bearch_arm.h \
501         be/arm/bearch_arm_t.h
502
503 $(srcdir)/be/arm/gen_arm_new_nodes.c.inl $(srcdir)/be/arm/gen_arm_new_nodes.h: \
504                 be/arm/arm_spec.pl be/scripts/generate_new_opcodes.pl
505         $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
506
507 $(srcdir)/be/arm/gen_arm_emitter.c $(srcdir)/be/arm/gen_arm_emitter.h: \
508                 be/arm/arm_spec.pl be/scripts/generate_emitter.pl
509         $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/arm/arm_spec.pl $(srcdir)/be/arm
510
511 $(srcdir)/be/arm/gen_arm_machine.c $(srcdir)/be/arm/gen_arm_machine.h: \
512                 be/arm/arm_spec.pl be/scripts/generate_machine.pl
513         $(PERL) $(srcdir)/be/scripts/generate_machine.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_machine.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/sparc_emitter.c \
523         be/sparc/sparc_map_regs.c \
524         be/sparc/sparc_new_nodes.c \
525         be/sparc/sparc_transform.c \
526         be/sparc/bearch_sparc.c
527 sparc_built_sources = \
528         be/sparc/gen_sparc_emitter.c \
529         be/sparc/gen_sparc_emitter.h \
530         be/sparc/gen_sparc_machine.c \
531         be/sparc/gen_sparc_machine.h \
532         be/sparc/gen_sparc_new_nodes.c.inl \
533         be/sparc/gen_sparc_new_nodes.h \
534         be/sparc/gen_sparc_regalloc_if.c \
535         be/sparc/gen_sparc_regalloc_if.h
536 MAINTAINERCLEANFILES += $(sparc_built_sources)
537 BUILT_SOURCES += $(sparc_built_sources)
538 libfirm_la_SOURCES += $(sparc_sources) $(sparc_built_sources)
539
540 EXTRA_DIST += \
541         be/sparc/sparc_emitter.h \
542         be/sparc/sparc_map_regs.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_transform.h \
547         be/sparc/bearch_sparc.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_machine.c $(srcdir)/be/sparc/gen_sparc_machine.h: \
559                 be/sparc/sparc_spec.pl be/scripts/generate_machine.pl
560         $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
561
562 $(srcdir)/be/sparc/gen_sparc_regalloc_if.c $(srcdir)/be/sparc/gen_sparc_regalloc_if.h: \
563                 be/sparc/sparc_spec.pl be/scripts/generate_machine.pl
564         $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
565
566 # amd64 backend
567
568 amd64_sources = \
569         be/amd64/amd64_emitter.c \
570         be/amd64/amd64_new_nodes.c \
571         be/amd64/amd64_transform.c \
572         be/amd64/bearch_amd64.c
573 amd64_built_sources = \
574         be/amd64/gen_amd64_emitter.c \
575         be/amd64/gen_amd64_emitter.h \
576         be/amd64/gen_amd64_machine.c \
577         be/amd64/gen_amd64_machine.h \
578         be/amd64/gen_amd64_new_nodes.c.inl \
579         be/amd64/gen_amd64_new_nodes.h \
580         be/amd64/gen_amd64_regalloc_if.c \
581         be/amd64/gen_amd64_regalloc_if.h
582 MAINTAINERCLEANFILES += $(amd64_built_sources)
583 BUILT_SOURCES += $(amd64_built_sources)
584 libfirm_la_SOURCES += $(amd64_sources) $(amd64_built_sources)
585
586 EXTRA_DIST += \
587         be/amd64/amd64_emitter.h \
588         be/amd64/amd64_new_nodes.h \
589         be/amd64/amd64_nodes_attr.h \
590         be/amd64/amd64_spec.pl \
591         be/amd64/amd64_transform.h \
592         be/amd64/bearch_amd64_t.h
593
594 $(srcdir)/be/amd64/gen_amd64_new_nodes.c.inl $(srcdir)/be/amd64/gen_amd64_new_nodes.h: \
595                 be/amd64/amd64_spec.pl be/scripts/generate_new_opcodes.pl
596         $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
597
598 $(srcdir)/be/amd64/gen_amd64_emitter.c $(srcdir)/be/amd64/gen_amd64_emitter.h: \
599                 be/amd64/amd64_spec.pl be/scripts/generate_emitter.pl
600         $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
601
602 $(srcdir)/be/amd64/gen_amd64_machine.c $(srcdir)/be/amd64/gen_amd64_machine.h: \
603                 be/amd64/amd64_spec.pl be/scripts/generate_machine.pl
604         $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
605
606 $(srcdir)/be/amd64/gen_amd64_regalloc_if.c $(srcdir)/be/amd64/gen_amd64_regalloc_if.h: \
607                 be/amd64/amd64_spec.pl be/scripts/generate_machine.pl
608         $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
609
610
611 # TEMPLATE backend
612
613 TEMPLATE_sources = \
614         be/TEMPLATE/TEMPLATE_emitter.c \
615         be/TEMPLATE/TEMPLATE_new_nodes.c \
616         be/TEMPLATE/TEMPLATE_transform.c \
617         be/TEMPLATE/bearch_TEMPLATE.c
618 TEMPLATE_built_sources = \
619         be/TEMPLATE/gen_TEMPLATE_emitter.c \
620         be/TEMPLATE/gen_TEMPLATE_emitter.h \
621         be/TEMPLATE/gen_TEMPLATE_machine.c \
622         be/TEMPLATE/gen_TEMPLATE_machine.h \
623         be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl \
624         be/TEMPLATE/gen_TEMPLATE_new_nodes.h \
625         be/TEMPLATE/gen_TEMPLATE_regalloc_if.c \
626         be/TEMPLATE/gen_TEMPLATE_regalloc_if.h
627 MAINTAINERCLEANFILES += $(TEMPLATE_built_sources)
628 BUILT_SOURCES += $(TEMPLATE_built_sources)
629 libfirm_la_SOURCES += $(TEMPLATE_sources) $(TEMPLATE_built_sources)
630
631 EXTRA_DIST += \
632         be/TEMPLATE/TEMPLATE_emitter.h \
633         be/TEMPLATE/TEMPLATE_new_nodes.h \
634         be/TEMPLATE/TEMPLATE_nodes_attr.h \
635         be/TEMPLATE/TEMPLATE_spec.pl \
636         be/TEMPLATE/TEMPLATE_transform.h \
637         be/TEMPLATE/bearch_TEMPLATE_t.h
638
639 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.h: \
640                 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_new_opcodes.pl
641         $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
642
643 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.h: \
644                 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_emitter.pl
645         $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
646
647 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_machine.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_machine.h: \
648                 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_machine.pl
649         $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
650
651 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.h: \
652                 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_machine.pl
653         $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE