91e81b5b71d79e6e05a1b62fb30956dd6513fedb
[mes.git] / scaffold / scaffold.make
1 TARGET:=m
2 C_FILES:=$(DIR)/m.c
3 DEFINES:=POSIX=1
4 INCLUDES:=libc
5 include make/bin.make
6
7 TARGET:=m
8 EXPECT:=255
9 include make/check.make
10
11 TARGET:=hello
12 C_FILES:=$(DIR)/hello.c
13 DEFINES:=POSIX=1
14 INCLUDES:=libc
15 include make/bin.make
16
17 TARGET:=hello
18 EXPECT:=42
19 include make/check.make
20
21 TARGET:=t
22 C_FILES:=$(DIR)/t.c
23 DEFINES:=POSIX=1
24 INCLUDES:=libc
25 include make/bin.make
26
27 TARGET:=t
28 include make/check.make
29
30 TARGET:=m.mlibc
31 C_FILES:=$(DIR)/m.c
32 INCLUDES:=libc
33 C_FLAGS:=-nostdinc
34 LD_FLAGS:=-nostdlib
35 CROSS:=$(CC32:%gcc=%)
36 include make/bin.make
37
38 TARGET:=m.mlibc
39 EXPECT:=255
40 include make/check.make
41
42 TARGET:=hello.mlibc
43 C_FILES:=$(DIR)/hello.c
44 INCLUDES:=libc
45 C_FLAGS:=-nostdinc -g
46 LD_FLAGS:=-nostdlib -g
47 CROSS:=$(CC32:%gcc=%)
48 include make/bin.make
49
50 TARGET:=hello.mlibc
51 EXPECT:=42
52 include make/check.make
53
54 TARGET:=micro-mes.mlibc
55 C_FILES:=$(DIR)/micro-mes.c
56 INCLUDES:=libc
57 C_FLAGS:=-nostdinc
58 LD_FLAGS:=-nostdlib
59 CROSS:=$(CC32:%gcc=%)
60 include make/bin.make
61
62 TEST:=micro-mes.mlibc-check
63 $(TEST): $(OUT)/micro-mes.mlibc
64         $< 2 3; r=$$?; [ $$r = 3 ]
65 include make/check.make
66
67 TARGET:=tiny-mes.mlibc
68 C_FILES:=$(DIR)/tiny-mes.c
69 INCLUDES:=libc
70 C_FLAGS:=-nostdinc
71 LD_FLAGS:=-nostdlib
72 CROSS:=$(CC32:%gcc=%)
73 include make/bin.make
74
75 TARGET:=tiny-mes.mlibc
76 include make/check.make
77
78 TARGET:=cons-mes.mlibc
79 C_FILES:=$(DIR)/cons-mes.c
80 INCLUDES:=libc
81 C_FLAGS:=-nostdinc
82 LD_FLAGS:=-nostdlib
83 DEFINES:=VERSION='"$(VERSION)"'
84 CROSS:=$(CC32:%gcc=%)
85 include make/bin.make
86
87 TARGET:=cons-mes.mlibc
88 include make/check.make
89
90 TARGET:=t.mlibc
91 C_FILES:=$(DIR)/t.c
92 INCLUDES:=libc
93 C_FLAGS:=-nostdinc
94 LD_FLAGS:=-nostdlib
95 CROSS:=$(CC32:%gcc=%)
96 include make/bin.make
97
98 TARGET:=t.mlibc
99 include make/check.make
100
101 $(OUT)/mini-mes: $(SNARF.MES)
102
103 TARGET:=mini-mes.mlibc
104 C_FILES:=$(DIR)/mini-mes.c
105 DEFINES:=FIXED_PRIMITIVES=1 VERSION='"$(VERSION)"' PREFIX='"$(PREFIX)"'
106 INCLUDES:=libc src $(OUT)/src
107 C_FLAGS:=-nostdinc
108 LD_FLAGS:=-nostdlib
109 CROSS:=$(CC32:%gcc=%)
110 include make/bin.make
111
112 TEST:=mini-mes.mlibc-check
113 $(TEST): $(OUT)/mini-mes.mlibc
114         echo 0 | $<
115 include make/check.make
116
117 # guile/mescc.scm
118
119 TARGET:=m.guile
120 C_FILES:=$(DIR)/m.c
121 include make/mescc-guile.make
122
123 TARGET:=m.guile
124 EXPECT:=255
125 include make/check.make
126
127 TARGET:=hello.guile
128 C_FILES:=$(DIR)/hello.c
129 include make/mescc-guile.make
130
131 TARGET:=hello.guile
132 EXPECT:=42
133 include make/check.make
134
135 TARGET:=micro-mes.guile
136 C_FILES:=$(DIR)/micro-mes.c
137 include make/mescc-guile.make
138
139 TEST:=micro-mes.guile-check
140 $(TEST): $(OUT)/micro-mes.guile
141         $< 2 3; r=$$?; [ $$r = 3 ]
142 include make/check.make
143
144 $(OUT)/tiny-mes.mes: module/mes/tiny-0-32.mo
145 TARGET:=tiny-mes.guile
146 C_FILES:=$(DIR)/tiny-mes.c
147 include make/mescc-guile.make
148
149 TARGET:=tiny-mes.guile
150 include make/check.make
151
152 TARGET:=cons-mes.guile
153 C_FILES:=$(DIR)/cons-mes.c
154 include make/mescc-guile.make
155
156 TARGET:=cons-mes.guile
157 include make/check.make
158
159 TARGET:=t.guile
160 C_FILES:=$(DIR)/t.c
161 include make/mescc-guile.make
162
163 TARGET:=t.guile
164 include make/check.make
165
166 $(OUT)/mini-mes.guile: module/mes/read-0-32.mo
167 TARGET:=mini-mes.guile
168 C_FILES:=$(DIR)/mini-mes.c
169 include make/mescc-guile.make
170
171 TEST:=mini-mes.guile-check
172 $(TEST): $(OUT)/mini-mes.guile
173         echo 0 | $<
174 include make/check.make
175
176 # scripts/mescc.mes
177
178 TARGET:=m.mes
179 C_FILES:=$(DIR)/m.c
180 include make/mescc-mes.make
181
182 TARGET:=m.mes
183 EXPECT:=255
184 include make/check.make
185
186 ifneq ($(SCAFFOLD),)
187 TARGET:=hello.mes
188 C_FILES:=$(DIR)/hello.c
189 include make/mescc-mes.make
190
191 TARGET:=hello.mes
192 EXPECT:=42
193 include make/check.make
194
195 TARGET:=micro-mes.mes
196 C_FILES:=$(DIR)/micro-mes.c
197 include make/mescc-mes.make
198
199 TEST:=micro-mes.mes-check
200 $(TEST): $(OUT)/micro-mes.mes
201         $< 2 3; r=$$?; [ $$r = 3 ]
202 include make/check.make
203
204 $(OUT)/tiny-mes.mes: module/mes/tiny-0-32.mo
205 TARGET:=tiny-mes.mes
206 C_FILES:=$(DIR)/tiny-mes.c
207 include make/mescc-mes.make
208
209 TARGET:=tiny-mes.mes
210 include make/check.make
211
212 TARGET:=cons-mes.mes
213 C_FILES:=$(DIR)/cons-mes.c
214 include make/mescc-mes.make
215
216 TARGET:=cons-mes.mes
217 include make/check.make
218 endif # !SCAFFOLD
219
220 TARGET:=t.mes
221 C_FILES:=$(DIR)/t.c
222 include make/mescc-mes.make
223
224 TARGET:=t.mes
225 include make/check.make
226
227 ifneq ($(BOOTSTRAP),)
228 $(OUT)/mini-mes.mes: module/mes/read-0-32.mo
229 TARGET:=mini-mes.mes
230 C_FILES:=$(DIR)/mini-mes.c
231 include make/mescc-mes.make
232 endif