blob: 094d67662e2bb12d1b49ea291c3f26f3182df65a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
|
#! /usr/bin/autogen
AutoGen definitions melt-build-script.tpl;
// melt-build-script.mk is generated from melt-build-script.tpl using melt-build-script.def
// and the autogen utility by 'autogen melt-build-script.def'.
// This file is written by Basile Starynkevitch
//
// Copyright 2012 Free Software Foundation
//
// This file is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// When adding or removing a core melt/*.melt file, please describe it
// here.
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
// The MELT translator is described by several similar entries, one
// for each source file. It is bootstrapped. Entry order is important!
// field 'base' gives the base name of the *.melt file
// field 'varsuf' gives a suffix part of a generated shell variable name
melt_translator_file = {
base = "warmelt-first";
varsuf = FIRST;
};
melt_translator_file = {
base = "warmelt-base";
varsuf = BASE;
};
melt_translator_file = {
base = "warmelt-debug";
varsuf = DEBUG;
};
melt_translator_file = {
base = "warmelt-macro";
varsuf = MACRO;
};
melt_translator_file = {
base = "warmelt-normal";
// warmelt-normal.melt contains (load "warmelt-predef.melt")
includeload = "warmelt-predef.melt";
varsuf = NORMAL;
};
melt_translator_file = {
base = "warmelt-normatch";
varsuf = NORMATCH;
};
melt_translator_file = {
base = "warmelt-genobj";
varsuf = GENOBJ;
};
melt_translator_file = {
base = "warmelt-outobj";
varsuf = OUTOBJ;
};
melt_translator_file = {
base = "warmelt-modes";
varsuf = MODES;
};
////////////////////////////////////////////////////////////////
// The additional MELT application files, which are not useful to
// translate MELT code to C, so are not bootstrapped.
melt_application_file = { base = "xtramelt-ana-base"; varsuf =
ANA_BASE; };
melt_application_file = {
base = "xtramelt-ana-tree";
varsuf = ANA_TREE;
};
melt_application_file = {
base = "xtramelt-ana-gimple";
varsuf = ANA_GIMPLE;
};
melt_application_file = {
base = "xtramelt-probe";
varsuf = PROBE;
};
melt_application_file = {
base = "xtramelt-ana-simple";
varsuf = ANA_SIMPLE;
};
melt_application_file = {
base = "xtramelt-c-generator";
varsuf = C_GENERATOR;
};
melt_application_file = {
base = "xtramelt-opengpu";
varsuf = OPENGPU;
};
// The various MELT stages: stagdir gives the directory name, stagsuf gives a
// suffix for variable name, and stagprevdir gives the directory name for
// the previous stage, and stagprevflavor gives its flavor.
melt_build_stage = {
stagdir = "meltbuild-stage1";
stagprevdir = "$GCCMELT_STAGE_ZERO";
stagprevflavor = "$GCCMELT_ZERO_FLAVOR";
stagsuf = STAGE1;
};
melt_build_stage = {
stagdir = "meltbuild-stage2";
stagprevdir = "meltbuild-stage1";
stagprevflavor = "quicklybuilt";
stagsuf = STAGE2;
};
melt_build_stage = {
stagdir = "meltbuild-stage3";
stagprevdir = "meltbuild-stage2";
stagprevflavor = "quicklybuilt";
stagsuf = STAGE3;
};
|