be1c89ee6f7ef35998a3cd241858a7dac2a809fb
[mes.git] / scaffold / scaffold.make
1 TARGET:=m
2 C_FILES:=$(DIR)/m.c
3 DEFINES:=POSIX=1
4 INCLUDES:=mlibc
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:=mlibc
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:=mlibc
25 include make/bin.make
26
27 TARGET:=t
28 include make/check.make
29
30 TARGET:=t-tcc
31 C_FILES:=$(DIR)/t-tcc.c
32 DEFINES:=POSIX=1
33 INCLUDES:=mlibc
34 include make/bin.make
35
36 TARGET:=t-tcc
37 include make/check.make
38
39 TARGET:=m.mlibc
40 C_FILES:=$(DIR)/m.c
41 include make/bin-mlibc.make
42
43 TARGET:=m.mlibc
44 EXPECT:=255
45 include make/check-mlibc.make
46
47 TARGET:=hello.mlibc
48 C_FILES:=$(DIR)/hello.c
49 include make/bin-mlibc.make
50
51 TARGET:=hello.mlibc
52 EXPECT:=42
53 include make/check-mlibc.make
54
55 TARGET:=micro-mes.mlibc
56 C_FILES:=$(DIR)/micro-mes.c
57 include make/bin-mlibc.make
58
59 TEST:=micro-mes.mlibc-check
60 $(TEST): $(OUT)/micro-mes.mlibc
61         $< 2 3; r=$$?; [ $$r = 3 ]
62 include make/check-mlibc.make
63
64 TARGET:=t.mlibc
65 C_FILES:=$(DIR)/t.c
66 include make/bin-mlibc.make
67
68 TARGET:=t.mlibc
69 include make/check-mlibc.make
70
71 TARGET:=t-tcc.mlibc
72 C_FILES:=$(DIR)/t-tcc.c
73 include make/bin-mlibc.make
74
75 TARGET:=t-tcc.mlibc
76 include make/check-mlibc.make
77
78 CROSS:=$(CC32:%gcc=%)
79 #$(OUT)/$(DIR)/mini-mes.$(CROSS)o: $(SNARF.MES)
80 $(OUT)/mini-mes: $(SNARF.MES)
81
82 TARGET:=mini-mes.mlibc
83 # guile/mescc.scm
84
85 TARGET:=m.guile
86 C_FILES:=$(DIR)/m.c
87 include make/mescc-guile.make
88
89 TARGET:=m.guile
90 EXPECT:=255
91 include make/check.make
92
93 TARGET:=hello.guile
94 C_FILES:=$(DIR)/hello.c
95 include make/mescc-guile.make
96
97 TARGET:=hello.guile
98 EXPECT:=42
99 include make/check.make
100
101 TARGET:=micro-mes.guile
102 C_FILES:=$(DIR)/micro-mes.c
103 include make/mescc-guile.make
104
105 TEST:=micro-mes.guile-check
106 $(TEST): $(OUT)/micro-mes.guile
107         $< 2 3; r=$$?; [ $$r = 3 ]
108 include make/check.make
109
110 TARGET:=t.guile
111 C_FILES:=$(DIR)/t.c
112 include make/mescc-guile.make
113
114 TARGET:=t.guile
115 include make/check.make
116
117 TARGET:=t-tcc.guile
118 C_FILES:=$(DIR)/t-tcc.c
119 include make/mescc-guile.make
120
121 TARGET:=t-tcc.guile
122 include make/check.make
123
124 # scripts/mescc.mes
125 ifneq ($(MES),)
126 TARGET:=m.mes
127 C_FILES:=$(DIR)/m.c
128 include make/mescc-mes.make
129
130 TARGET:=m.mes
131 EXPECT:=255
132 include make/check.make
133
134 ifneq ($(MES_SCAFFOLD),)
135 TARGET:=hello.mes
136 C_FILES:=$(DIR)/hello.c
137 include make/mescc-mes.make
138
139 TARGET:=hello.mes
140 EXPECT:=42
141 include make/check.make
142
143 TARGET:=micro-mes.mes
144 C_FILES:=$(DIR)/micro-mes.c
145 include make/mescc-mes.make
146
147 TEST:=micro-mes.mes-check
148 $(TEST): $(OUT)/micro-mes.mes
149         $< 2 3; r=$$?; [ $$r = 3 ]
150 include make/check.make
151 endif # !SCAFFOLD
152
153 TARGET:=t.mes
154 C_FILES:=$(DIR)/t.c
155 include make/mescc-mes.make
156
157 TARGET:=t.mes
158 include make/check.make
159 endif