remove unmaintained mips backend
[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/pseudo_irg.c \
181         ir/valueset.c \
182         libcore/lc_appendable.c \
183         libcore/lc_config_lexer.c \
184         libcore/lc_config_parser.c \
185         libcore/lc_opts.c \
186         libcore/lc_opts_enum.c \
187         libcore/lc_printf.c \
188         lower/lower_calls.c \
189         lower/lower_copyb.c \
190         lower/lower_dw.c \
191         lower/lower_hl.c \
192         lower/lower_intrinsics.c \
193         lower/lower_mode_b.c \
194         lower/lower_mux.c \
195         lower/lower_switch.c \
196         obstack/obstack.c \
197         obstack/obstack_printf.c \
198         opt/boolopt.c \
199         opt/cfopt.c \
200         opt/code_placement.c \
201         opt/combo.c \
202         opt/convopt.c \
203         opt/critical_edges.c \
204         opt/dead_code_elimination.c \
205         opt/escape_ana.c \
206         opt/fp-vrp.c \
207         opt/funccall.c \
208         opt/garbage_collect.c \
209         opt/gvn_pre.c \
210         opt/ifconv.c \
211         opt/ircgopt.c \
212         opt/jumpthreading.c \
213         opt/ldstopt.c \
214         opt/loop.c \
215         opt/opt_blocks.c \
216         opt/opt_confirms.c \
217         opt/opt_frame.c \
218         opt/opt_inline.c \
219         opt/opt_ldst.c \
220         opt/opt_osr.c \
221         opt/opt_polymorphy.c \
222         opt/parallelize_mem.c \
223         opt/proc_cloning.c \
224         opt/reassoc.c \
225         opt/return.c \
226         opt/scalar_replace.c \
227         opt/tailrec.c \
228         opt/tropt.c \
229         stat/const_stat.c \
230         stat/dags.c \
231         stat/distrib.c \
232         stat/firmstat.c \
233         stat/pattern.c \
234         stat/pattern_dmp.c \
235         stat/stat_dmp.c \
236         stat/statev.c \
237         stat/stat_liveness.c \
238         stat/stat_timing.c \
239         tr/compound_path.c \
240         tr/entity.c \
241         tr/tpop.c \
242         tr/tr_inheritance.c \
243         tr/trvrfy.c \
244         tr/type.c \
245         tr/type_finalization.c \
246         tr/typewalk.c \
247         tv/fltcalc.c \
248         tv/strcalc.c \
249         tv/tv.c
250
251 EXTRA_DIST = \
252         adt/array_t.h \
253         adt/bitfiddle.h \
254         adt/bitset.h \
255         adt/compiler.h \
256         adt/raw_bitset.h \
257         adt/util.h \
258         ana/absgraph.h \
259         ana/dfs.h \
260         ana/dfs_t.h \
261         ana/irbackedge_t.h \
262         ana/irdom_t.h \
263         ana/irextbb_t.h \
264         ana/irlivechk.h \
265         ana/irloop_t.h \
266         ana/irmemory_t.h \
267         be/be_dbgout.h \
268         be/be_dbgout_t.h \
269         be/be_t.h \
270         be/be_types.h \
271         be/beabi.h \
272         be/bearch.h \
273         be/beblocksched.h \
274         be/bechordal.h \
275         be/bechordal_common.h \
276         be/bechordal_draw.h \
277         be/bechordal_t.h \
278         be/becopyilp_t.h \
279         be/becopyopt.h \
280         be/becopyopt_t.h \
281         be/becopypbqp.h \
282         be/becopystat.h \
283         be/bedomfront.h \
284         be/bedump_minir.h \
285         be/beemitter.h \
286         be/beemitter_binary.h \
287         be/beflags.h \
288         be/begnuas.h \
289         be/beifg.h \
290         be/beilpsched.h \
291         be/beinfo.h \
292         be/beinsn_t.h \
293         be/beintlive_t.h \
294         be/beirg.h \
295         be/beirgmod.h \
296         be/belistsched.h \
297         be/belive.h \
298         be/belive_t.h \
299         be/beloopana.h \
300         be/belower.h \
301         be/bemachine.h \
302         be/benode.h \
303         be/bemodule.h \
304         be/bemodule_t.h \
305         be/besched.h \
306         be/bepbqpcoloring.h \
307         be/bepeephole.h \
308         be/bepressurestat.h \
309         be/bera.h \
310         be/beschedmris.h \
311         be/beutil.h \
312         be/beschedrss.h \
313         be/bespill.h \
314         be/bespillslots.h \
315         be/bespillutil.h \
316         be/bessaconstr.h \
317         be/bessadestr.h \
318         be/bestat.h \
319         be/bestate.h \
320         be/bestatevent.h \
321         be/betranshlp.h \
322         be/beuses.h \
323         be/beverify.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/instrument.h \
331         ir/irargs_t.h \
332         ir/irbitset.h \
333         ir/ircons_t.h \
334         ir/irdump_t.h \
335         ir/iredges_t.h \
336         ir/iredgeset.h \
337         ir/irflag_t.def \
338         ir/irflag_t.h \
339         ir/irgraph_t.h \
340         ir/irlinkednodemap.h \
341         ir/irlinkednodeset.h \
342         ir/irmode_t.h \
343         ir/irnode_t.h \
344         ir/irnodemap.h \
345         ir/irnodeset.h \
346         ir/irop_t.h \
347         ir/iropt_t.h \
348         ir/irpass_t.h \
349         ir/irphase.h \
350         ir/irphase_t.h \
351         ir/irprintf_t.h \
352         ir/irprofile.h \
353         ir/irprog_t.h \
354         ir/irtypes.h \
355         ir/irvrfy_t.h \
356         ir/valueset.h \
357         ir/gen_irnode.h \
358         libcore/do_bisonflex.sh \
359         libcore/lc_appendable.h \
360         libcore/lc_common_t.h \
361         libcore/lc_config.h \
362         libcore/lc_config_lexer.l \
363         libcore/lc_config_parser.h \
364         libcore/lc_config_parser.y \
365         libcore/lc_defines.h \
366         libcore/lc_opts.h \
367         libcore/lc_opts_enum.h \
368         libcore/lc_opts_t.h \
369         libcore/lc_parser_t.h \
370         libcore/lc_printf.h \
371         libcore/lc_printf_arg_types.def \
372         opt/iropt_dbg.h \
373         opt/opt_confirms.h \
374         opt/opt_init.h \
375         opt/opt_polymorphy.h \
376         opt/reassoc_t.h \
377         opt/scalar_replace.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.h \
386         tr/compound_path_t.h \
387         tr/entity_t.h \
388         tr/tpop_t.h \
389         tr/type_t.h \
390         tv/fltcalc.h \
391         tv/strcalc.h \
392         tv/tv_t.h \
393         ir/gen_ir_cons.c.inl \
394         ir/gen_irnode.c.inl \
395         ir/gen_irop.c.inl \
396         ir/gen_irio_export.inl \
397         ir/gen_irio_import.inl \
398         ir/gen_irio_lex.inl \
399         be/scripts/generate_emitter_new.pl \
400         be/scripts/generate_emitter.pl \
401         be/scripts/generate_machine.pl \
402         be/scripts/generate_new_opcodes.pl \
403         be/scripts/generate_regalloc_if.pl
404
405 # ia32 backend
406
407 ia32_sources = \
408         be/ia32/bearch_ia32.c \
409         be/ia32/ia32_address_mode.c \
410         be/ia32/ia32_architecture.c \
411         be/ia32/ia32_common_transform.c \
412         be/ia32/ia32_emitter.c \
413         be/ia32/ia32_finish.c \
414         be/ia32/ia32_fpu.c \
415         be/ia32/ia32_intrinsics.c \
416         be/ia32/ia32_map_regs.c \
417         be/ia32/ia32_new_nodes.c \
418         be/ia32/ia32_optimize.c \
419         be/ia32/ia32_transform.c \
420         be/ia32/ia32_util.c \
421         be/ia32/ia32_x87.c
422
423 ia32_built_sources = \
424         be/ia32/gen_ia32_emitter.c \
425         be/ia32/gen_ia32_emitter.h \
426         be/ia32/gen_ia32_machine.c \
427         be/ia32/gen_ia32_machine.h \
428         be/ia32/gen_ia32_new_nodes.c.inl \
429         be/ia32/gen_ia32_new_nodes.h \
430         be/ia32/gen_ia32_regalloc_if.c \
431         be/ia32/gen_ia32_regalloc_if.h
432 MAINTAINERCLEANFILES = $(ia32_built_sources)
433 BUILT_SOURCES        = $(ia32_built_sources)
434 libfirm_la_SOURCES  += $(ia32_sources) $(ia32_built_sources)
435
436 EXTRA_DIST += \
437         be/ia32/bearch_ia32_t.h \
438         be/ia32/ia32_address_mode.h \
439         be/ia32/ia32_architecture.h \
440         be/ia32/ia32_common_transform.h \
441         be/ia32/ia32_dbg_stat.h \
442         be/ia32/ia32_emitter.h \
443         be/ia32/ia32_finish.h \
444         be/ia32/ia32_fpu.h \
445         be/ia32/ia32_map_regs.h \
446         be/ia32/ia32_new_nodes.h \
447         be/ia32/ia32_nodes_attr.h \
448         be/ia32/ia32_optimize.h \
449         be/ia32/ia32_spec.pl \
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/arm_emitter.c \
474         be/arm/arm_map_regs.c \
475         be/arm/arm_new_nodes.c \
476         be/arm/arm_optimize.c \
477         be/arm/arm_transform.c \
478         be/arm/bearch_arm.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_new_nodes.c.inl \
485         be/arm/gen_arm_new_nodes.h \
486         be/arm/gen_arm_regalloc_if.c \
487         be/arm/gen_arm_regalloc_if.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_emitter.h \
495         be/arm/arm_map_regs.h \
496         be/arm/arm_new_nodes.h \
497         be/arm/arm_nodes_attr.h \
498         be/arm/arm_optimize.h \
499         be/arm/arm_spec.pl \
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 # sparc backend
521
522 sparc_sources = \
523         be/sparc/sparc_emitter.c \
524         be/sparc/sparc_map_regs.c \
525         be/sparc/sparc_new_nodes.c \
526         be/sparc/sparc_transform.c \
527         be/sparc/bearch_sparc.c
528 sparc_built_sources = \
529         be/sparc/gen_sparc_emitter.c \
530         be/sparc/gen_sparc_emitter.h \
531         be/sparc/gen_sparc_machine.c \
532         be/sparc/gen_sparc_machine.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_map_regs.h \
544         be/sparc/sparc_new_nodes.h \
545         be/sparc/sparc_nodes_attr.h \
546         be/sparc/sparc_spec.pl \
547         be/sparc/sparc_transform.h \
548         be/sparc/bearch_sparc.h \
549         be/sparc/bearch_sparc_t.h
550
551 $(srcdir)/be/sparc/gen_sparc_new_nodes.c.inl $(srcdir)/be/sparc/gen_sparc_new_nodes.h: \
552                 be/sparc/sparc_spec.pl be/scripts/generate_new_opcodes.pl
553         $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
554
555 $(srcdir)/be/sparc/gen_sparc_emitter.c $(srcdir)/be/sparc/gen_sparc_emitter.h: \
556                 be/sparc/sparc_spec.pl be/scripts/generate_emitter.pl
557         $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
558
559 $(srcdir)/be/sparc/gen_sparc_machine.c $(srcdir)/be/sparc/gen_sparc_machine.h: \
560                 be/sparc/sparc_spec.pl be/scripts/generate_machine.pl
561         $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
562
563 $(srcdir)/be/sparc/gen_sparc_regalloc_if.c $(srcdir)/be/sparc/gen_sparc_regalloc_if.h: \
564                 be/sparc/sparc_spec.pl be/scripts/generate_machine.pl
565         $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/sparc/sparc_spec.pl $(srcdir)/be/sparc
566
567 # amd64 backend
568
569 amd64_sources = \
570         be/amd64/amd64_emitter.c \
571         be/amd64/amd64_new_nodes.c \
572         be/amd64/amd64_transform.c \
573         be/amd64/bearch_amd64.c
574 amd64_built_sources = \
575         be/amd64/gen_amd64_emitter.c \
576         be/amd64/gen_amd64_emitter.h \
577         be/amd64/gen_amd64_machine.c \
578         be/amd64/gen_amd64_machine.h \
579         be/amd64/gen_amd64_new_nodes.c.inl \
580         be/amd64/gen_amd64_new_nodes.h \
581         be/amd64/gen_amd64_regalloc_if.c \
582         be/amd64/gen_amd64_regalloc_if.h
583 MAINTAINERCLEANFILES += $(amd64_built_sources)
584 BUILT_SOURCES += $(amd64_built_sources)
585 libfirm_la_SOURCES += $(amd64_sources) $(amd64_built_sources)
586
587 EXTRA_DIST += \
588         be/amd64/amd64_emitter.h \
589         be/amd64/amd64_new_nodes.h \
590         be/amd64/amd64_nodes_attr.h \
591         be/amd64/amd64_spec.pl \
592         be/amd64/amd64_transform.h \
593         be/amd64/bearch_amd64_t.h
594
595 $(srcdir)/be/amd64/gen_amd64_new_nodes.c.inl $(srcdir)/be/amd64/gen_amd64_new_nodes.h: \
596                 be/amd64/amd64_spec.pl be/scripts/generate_new_opcodes.pl
597         $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
598
599 $(srcdir)/be/amd64/gen_amd64_emitter.c $(srcdir)/be/amd64/gen_amd64_emitter.h: \
600                 be/amd64/amd64_spec.pl be/scripts/generate_emitter.pl
601         $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
602
603 $(srcdir)/be/amd64/gen_amd64_machine.c $(srcdir)/be/amd64/gen_amd64_machine.h: \
604                 be/amd64/amd64_spec.pl be/scripts/generate_machine.pl
605         $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
606
607 $(srcdir)/be/amd64/gen_amd64_regalloc_if.c $(srcdir)/be/amd64/gen_amd64_regalloc_if.h: \
608                 be/amd64/amd64_spec.pl be/scripts/generate_machine.pl
609         $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
610
611
612 # TEMPLATE backend
613
614 TEMPLATE_sources = \
615         be/TEMPLATE/TEMPLATE_emitter.c \
616         be/TEMPLATE/TEMPLATE_new_nodes.c \
617         be/TEMPLATE/TEMPLATE_transform.c \
618         be/TEMPLATE/bearch_TEMPLATE.c
619 TEMPLATE_built_sources = \
620         be/TEMPLATE/gen_TEMPLATE_emitter.c \
621         be/TEMPLATE/gen_TEMPLATE_emitter.h \
622         be/TEMPLATE/gen_TEMPLATE_machine.c \
623         be/TEMPLATE/gen_TEMPLATE_machine.h \
624         be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl \
625         be/TEMPLATE/gen_TEMPLATE_new_nodes.h \
626         be/TEMPLATE/gen_TEMPLATE_regalloc_if.c \
627         be/TEMPLATE/gen_TEMPLATE_regalloc_if.h
628 MAINTAINERCLEANFILES += $(TEMPLATE_built_sources)
629 BUILT_SOURCES += $(TEMPLATE_built_sources)
630 libfirm_la_SOURCES += $(TEMPLATE_sources) $(TEMPLATE_built_sources)
631
632 EXTRA_DIST += \
633         be/TEMPLATE/TEMPLATE_emitter.h \
634         be/TEMPLATE/TEMPLATE_new_nodes.h \
635         be/TEMPLATE/TEMPLATE_nodes_attr.h \
636         be/TEMPLATE/TEMPLATE_spec.pl \
637         be/TEMPLATE/TEMPLATE_transform.h \
638         be/TEMPLATE/bearch_TEMPLATE_t.h
639
640 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl $(srcdir)/be/TEMPLATE/gen_TEMPLATE_new_nodes.h: \
641                 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_new_opcodes.pl
642         $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
643
644 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_emitter.h: \
645                 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_emitter.pl
646         $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
647
648 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_machine.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_machine.h: \
649                 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_machine.pl
650         $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE
651
652 $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.c $(srcdir)/be/TEMPLATE/gen_TEMPLATE_regalloc_if.h: \
653                 be/TEMPLATE/TEMPLATE_spec.pl be/scripts/generate_machine.pl
654         $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/TEMPLATE/TEMPLATE_spec.pl $(srcdir)/be/TEMPLATE