|
0
|
1 |
# Don't edit Makefile! Use conf-* for configuration.
|
|
|
2 |
|
|
|
3 |
SHELL=/bin/sh
|
|
|
4 |
|
|
|
5 |
default: it
|
|
|
6 |
|
|
|
7 |
|
|
|
8 |
############### Begin compile-time work
|
|
|
9 |
|
|
|
10 |
clean: \
|
|
|
11 |
TARGETS
|
|
|
12 |
rm -f `cat TARGETS`
|
|
|
13 |
|
|
|
14 |
load: \
|
|
|
15 |
make-load warn-auto.sh systype
|
|
|
16 |
( cat warn-auto.sh; ./make-load "`cat systype`" ) > load
|
|
|
17 |
chmod 755 load
|
|
|
18 |
|
|
|
19 |
make-load: \
|
|
|
20 |
make-load.sh auto-ccld.sh
|
|
|
21 |
cat auto-ccld.sh make-load.sh > make-load
|
|
|
22 |
chmod 755 make-load
|
|
|
23 |
|
|
|
24 |
make-makelib: \
|
|
|
25 |
make-makelib.sh auto-ccld.sh
|
|
|
26 |
cat auto-ccld.sh make-makelib.sh > make-makelib
|
|
|
27 |
chmod 755 make-makelib
|
|
|
28 |
|
|
|
29 |
makelib: \
|
|
|
30 |
make-makelib warn-auto.sh systype
|
|
|
31 |
( cat warn-auto.sh; ./make-makelib "`cat systype`" ) > \
|
|
|
32 |
makelib
|
|
|
33 |
chmod 755 makelib
|
|
|
34 |
|
|
|
35 |
auto-ccld.sh: \
|
|
|
36 |
conf-cc conf-ld warn-auto.sh
|
|
|
37 |
( cat warn-auto.sh; \
|
|
|
38 |
echo CC=\'`head -1 conf-cc`\'; \
|
|
|
39 |
echo LD=\'`head -1 conf-ld`\' \
|
|
|
40 |
) > auto-ccld.sh
|
|
|
41 |
|
|
|
42 |
make-compile: \
|
|
|
43 |
make-compile.sh auto-ccld.sh
|
|
|
44 |
cat auto-ccld.sh make-compile.sh > make-compile
|
|
|
45 |
chmod 755 make-compile
|
|
|
46 |
|
|
|
47 |
direntry.h: \
|
|
|
48 |
compile trydrent.c direntry.h1 direntry.h2
|
|
|
49 |
( ./compile trydrent.c >/dev/null 2>&1 \
|
|
|
50 |
&& cat direntry.h2 || cat direntry.h1 ) > direntry.h
|
|
|
51 |
rm -f trydrent.o
|
|
|
52 |
|
|
|
53 |
compile: \
|
|
|
54 |
make-compile warn-auto.sh systype
|
|
|
55 |
( cat warn-auto.sh; ./make-compile "`cat systype`" ) > \
|
|
|
56 |
compile
|
|
|
57 |
chmod 755 compile
|
|
|
58 |
|
|
|
59 |
find-systype: \
|
|
|
60 |
find-systype.sh auto-ccld.sh
|
|
|
61 |
cat auto-ccld.sh find-systype.sh > find-systype
|
|
|
62 |
chmod 755 find-systype
|
|
|
63 |
|
|
|
64 |
hasmkffo.h: \
|
|
|
65 |
trymkffo.c compile load
|
|
|
66 |
( ( ./compile trymkffo.c && ./load trymkffo ) >/dev/null \
|
|
|
67 |
2>&1 \
|
|
|
68 |
&& echo \#define HASMKFIFO 1 || exit 0 ) > hasmkffo.h
|
|
|
69 |
rm -f trymkffo.o trymkffo
|
|
|
70 |
|
|
|
71 |
systype: \
|
|
|
72 |
find-systype trycpp.c
|
|
|
73 |
./find-systype > systype
|
|
|
74 |
|
|
|
75 |
############### Begin alloc
|
|
|
76 |
|
|
|
77 |
alloc.a: \
|
|
|
78 |
makelib alloc.o alloc_re.o
|
|
|
79 |
./makelib alloc.a alloc.o alloc_re.o
|
|
|
80 |
|
|
|
81 |
alloc.o: \
|
|
|
82 |
compile alloc.c alloc.h error.h
|
|
|
83 |
./compile alloc.c
|
|
|
84 |
|
|
|
85 |
alloc_re.o: \
|
|
|
86 |
compile alloc_re.c alloc.h byte.h
|
|
|
87 |
./compile alloc_re.c
|
|
|
88 |
|
|
|
89 |
############### Begin str
|
|
|
90 |
|
|
|
91 |
byte_chr.o: \
|
|
|
92 |
compile byte_chr.c byte.h
|
|
|
93 |
./compile byte_chr.c
|
|
|
94 |
|
|
|
95 |
byte_copy.o: \
|
|
|
96 |
compile byte_copy.c byte.h
|
|
|
97 |
./compile byte_copy.c
|
|
|
98 |
|
|
|
99 |
byte_cr.o: \
|
|
|
100 |
compile byte_cr.c byte.h
|
|
|
101 |
./compile byte_cr.c
|
|
|
102 |
|
|
|
103 |
byte_diff.o: \
|
|
|
104 |
compile byte_diff.c byte.h
|
|
|
105 |
./compile byte_diff.c
|
|
|
106 |
|
|
|
107 |
byte_rchr.o: \
|
|
|
108 |
compile byte_rchr.c byte.h
|
|
|
109 |
./compile byte_rchr.c
|
|
|
110 |
|
|
|
111 |
byte_zero.o: \
|
|
|
112 |
compile byte_zero.c byte.h
|
|
|
113 |
./compile byte_zero.c
|
|
|
114 |
|
|
|
115 |
str_chr.o: \
|
|
|
116 |
compile str_chr.c str.h
|
|
|
117 |
./compile str_chr.c
|
|
|
118 |
|
|
|
119 |
str_cpy.o: \
|
|
|
120 |
compile str_cpy.c str.h
|
|
|
121 |
./compile str_cpy.c
|
|
|
122 |
|
|
|
123 |
str_diff.o: \
|
|
|
124 |
compile str_diff.c str.h
|
|
|
125 |
./compile str_diff.c
|
|
|
126 |
|
|
|
127 |
str_diffn.o: \
|
|
|
128 |
compile str_diffn.c str.h
|
|
|
129 |
./compile str_diffn.c
|
|
|
130 |
|
|
|
131 |
str_len.o: \
|
|
|
132 |
compile str_len.c str.h
|
|
|
133 |
./compile str_len.c
|
|
|
134 |
|
|
|
135 |
str_rchr.o: \
|
|
|
136 |
compile str_rchr.c str.h
|
|
|
137 |
./compile str_rchr.c
|
|
|
138 |
|
|
|
139 |
str_start.o: \
|
|
|
140 |
compile str_start.c str.h
|
|
|
141 |
./compile str_start.c
|
|
|
142 |
|
|
|
143 |
str.a: \
|
|
|
144 |
makelib str_len.o str_diff.o str_diffn.o str_cpy.o str_chr.o \
|
|
|
145 |
str_rchr.o str_start.o byte_chr.o byte_rchr.o byte_diff.o byte_copy.o \
|
|
|
146 |
byte_cr.o byte_zero.o
|
|
|
147 |
./makelib str.a str_len.o str_diff.o str_diffn.o str_cpy.o \
|
|
|
148 |
str_chr.o str_rchr.o str_start.o byte_chr.o byte_rchr.o \
|
|
|
149 |
byte_diff.o byte_copy.o byte_cr.o byte_zero.o
|
|
|
150 |
|
|
|
151 |
############### Begin error
|
|
|
152 |
|
|
|
153 |
error.a: \
|
|
|
154 |
makelib error.o error_str.o error_temp.o
|
|
|
155 |
./makelib error.a error.o error_str.o error_temp.o
|
|
|
156 |
|
|
|
157 |
error.o: \
|
|
|
158 |
compile error.c error.h
|
|
|
159 |
./compile error.c
|
|
|
160 |
|
|
|
161 |
error_str.o: \
|
|
|
162 |
compile error_str.c error.h
|
|
|
163 |
./compile error_str.c
|
|
|
164 |
|
|
|
165 |
error_temp.o: \
|
|
|
166 |
compile error_temp.c error.h
|
|
|
167 |
./compile error_temp.c
|
|
|
168 |
|
|
|
169 |
############### Begin fifo
|
|
|
170 |
|
|
|
171 |
fifo.o: \
|
|
|
172 |
compile fifo.c hasmkffo.h fifo.h
|
|
|
173 |
./compile fifo.c
|
|
|
174 |
|
|
|
175 |
############### Begin fs
|
|
|
176 |
|
|
|
177 |
fmt_str.o: \
|
|
|
178 |
compile fmt_str.c fmt.h
|
|
|
179 |
./compile fmt_str.c
|
|
|
180 |
|
|
|
181 |
fmt_strn.o: \
|
|
|
182 |
compile fmt_strn.c fmt.h
|
|
|
183 |
./compile fmt_strn.c
|
|
|
184 |
|
|
|
185 |
fmt_uint.o: \
|
|
|
186 |
compile fmt_uint.c fmt.h
|
|
|
187 |
./compile fmt_uint.c
|
|
|
188 |
|
|
|
189 |
fmt_uint0.o: \
|
|
|
190 |
compile fmt_uint0.c fmt.h
|
|
|
191 |
./compile fmt_uint0.c
|
|
|
192 |
|
|
|
193 |
fmt_ulong.o: \
|
|
|
194 |
compile fmt_ulong.c fmt.h
|
|
|
195 |
./compile fmt_ulong.c
|
|
|
196 |
|
|
|
197 |
fmtqfn.o: \
|
|
|
198 |
compile fmtqfn.c fmtqfn.h fmt.h auto_split.h
|
|
|
199 |
./compile fmtqfn.c
|
|
|
200 |
|
|
|
201 |
scan_8long.o: \
|
|
|
202 |
compile scan_8long.c scan.h
|
|
|
203 |
./compile scan_8long.c
|
|
|
204 |
|
|
|
205 |
scan_ulong.o: \
|
|
|
206 |
compile scan_ulong.c scan.h
|
|
|
207 |
./compile scan_ulong.c
|
|
|
208 |
|
|
|
209 |
fs.a: \
|
|
|
210 |
makelib fmt_str.o fmt_strn.o fmt_uint.o fmt_uint0.o fmt_ulong.o \
|
|
|
211 |
scan_ulong.o scan_8long.o
|
|
|
212 |
./makelib fs.a fmt_str.o fmt_strn.o fmt_uint.o fmt_uint0.o \
|
|
|
213 |
fmt_ulong.o scan_ulong.o scan_8long.o
|
|
|
214 |
|
|
|
215 |
############### Begin getln
|
|
|
216 |
|
|
|
217 |
getln.a: \
|
|
|
218 |
makelib getln.o getln2.o
|
|
|
219 |
./makelib getln.a getln.o getln2.o
|
|
|
220 |
|
|
|
221 |
getln.o: \
|
|
|
222 |
compile getln.c substdio.h byte.h stralloc.h gen_alloc.h getln.h
|
|
|
223 |
./compile getln.c
|
|
|
224 |
|
|
|
225 |
getln2.o: \
|
|
|
226 |
compile getln2.c substdio.h stralloc.h gen_alloc.h byte.h getln.h
|
|
|
227 |
./compile getln2.c
|
|
|
228 |
|
|
|
229 |
it: \
|
|
|
230 |
queue-fix
|
|
|
231 |
|
|
|
232 |
############### Begin open
|
|
|
233 |
|
|
|
234 |
open.a: \
|
|
|
235 |
makelib open_append.o open_excl.o open_read.o open_trunc.o \
|
|
|
236 |
open_write.o
|
|
|
237 |
./makelib open.a open_append.o open_excl.o open_read.o \
|
|
|
238 |
open_trunc.o open_write.o
|
|
|
239 |
|
|
|
240 |
open_append.o: \
|
|
|
241 |
compile open_append.c open.h
|
|
|
242 |
./compile open_append.c
|
|
|
243 |
|
|
|
244 |
open_excl.o: \
|
|
|
245 |
compile open_excl.c open.h
|
|
|
246 |
./compile open_excl.c
|
|
|
247 |
|
|
|
248 |
open_read.o: \
|
|
|
249 |
compile open_read.c open.h
|
|
|
250 |
./compile open_read.c
|
|
|
251 |
|
|
|
252 |
open_trunc.o: \
|
|
|
253 |
compile open_trunc.c open.h
|
|
|
254 |
./compile open_trunc.c
|
|
|
255 |
|
|
|
256 |
open_write.o: \
|
|
|
257 |
compile open_write.c open.h
|
|
|
258 |
./compile open_write.c
|
|
|
259 |
|
|
|
260 |
############### Begin stralloc
|
|
|
261 |
|
|
|
262 |
stralloc.a: \
|
|
|
263 |
makelib stralloc_eady.o stralloc_pend.o stralloc_copy.o \
|
|
|
264 |
stralloc_opys.o stralloc_opyb.o stralloc_cat.o stralloc_cats.o \
|
|
|
265 |
stralloc_catb.o stralloc_arts.o
|
|
|
266 |
./makelib stralloc.a stralloc_eady.o stralloc_pend.o \
|
|
|
267 |
stralloc_copy.o stralloc_opys.o stralloc_opyb.o \
|
|
|
268 |
stralloc_cat.o stralloc_cats.o stralloc_catb.o \
|
|
|
269 |
stralloc_arts.o
|
|
|
270 |
|
|
|
271 |
stralloc_arts.o: \
|
|
|
272 |
compile stralloc_arts.c byte.h str.h stralloc.h gen_alloc.h
|
|
|
273 |
./compile stralloc_arts.c
|
|
|
274 |
|
|
|
275 |
stralloc_cat.o: \
|
|
|
276 |
compile stralloc_cat.c byte.h stralloc.h gen_alloc.h
|
|
|
277 |
./compile stralloc_cat.c
|
|
|
278 |
|
|
|
279 |
stralloc_catb.o: \
|
|
|
280 |
compile stralloc_catb.c stralloc.h gen_alloc.h byte.h
|
|
|
281 |
./compile stralloc_catb.c
|
|
|
282 |
|
|
|
283 |
stralloc_cats.o: \
|
|
|
284 |
compile stralloc_cats.c byte.h str.h stralloc.h gen_alloc.h
|
|
|
285 |
./compile stralloc_cats.c
|
|
|
286 |
|
|
|
287 |
stralloc_copy.o: \
|
|
|
288 |
compile stralloc_copy.c byte.h stralloc.h gen_alloc.h
|
|
|
289 |
./compile stralloc_copy.c
|
|
|
290 |
|
|
|
291 |
stralloc_eady.o: \
|
|
|
292 |
compile stralloc_eady.c alloc.h stralloc.h gen_alloc.h \
|
|
|
293 |
gen_allocdefs.h
|
|
|
294 |
./compile stralloc_eady.c
|
|
|
295 |
|
|
|
296 |
stralloc_opyb.o: \
|
|
|
297 |
compile stralloc_opyb.c stralloc.h gen_alloc.h byte.h
|
|
|
298 |
./compile stralloc_opyb.c
|
|
|
299 |
|
|
|
300 |
stralloc_opys.o: \
|
|
|
301 |
compile stralloc_opys.c byte.h str.h stralloc.h gen_alloc.h
|
|
|
302 |
./compile stralloc_opys.c
|
|
|
303 |
|
|
|
304 |
stralloc_pend.o: \
|
|
|
305 |
compile stralloc_pend.c alloc.h stralloc.h gen_alloc.h \
|
|
|
306 |
gen_allocdefs.h
|
|
|
307 |
./compile stralloc_pend.c
|
|
|
308 |
|
|
|
309 |
############### Begin substdio
|
|
|
310 |
|
|
|
311 |
subfderr.o: \
|
|
|
312 |
compile subfderr.c readwrite.h substdio.h subfd.h substdio.h
|
|
|
313 |
./compile subfderr.c
|
|
|
314 |
|
|
|
315 |
subfdin.o: \
|
|
|
316 |
compile subfdin.c readwrite.h substdio.h subfd.h substdio.h
|
|
|
317 |
./compile subfdin.c
|
|
|
318 |
|
|
|
319 |
subfdins.o: \
|
|
|
320 |
compile subfdins.c readwrite.h substdio.h subfd.h substdio.h
|
|
|
321 |
./compile subfdins.c
|
|
|
322 |
|
|
|
323 |
subfdout.o: \
|
|
|
324 |
compile subfdout.c readwrite.h substdio.h subfd.h substdio.h
|
|
|
325 |
./compile subfdout.c
|
|
|
326 |
|
|
|
327 |
subfdouts.o: \
|
|
|
328 |
compile subfdouts.c readwrite.h substdio.h subfd.h substdio.h
|
|
|
329 |
./compile subfdouts.c
|
|
|
330 |
|
|
|
331 |
subgetopt.o: \
|
|
|
332 |
compile subgetopt.c subgetopt.h
|
|
|
333 |
./compile subgetopt.c
|
|
|
334 |
|
|
|
335 |
substdi.o: \
|
|
|
336 |
compile substdi.c substdio.h byte.h error.h
|
|
|
337 |
./compile substdi.c
|
|
|
338 |
|
|
|
339 |
substdio.a: \
|
|
|
340 |
makelib substdio.o substdi.o substdo.o subfderr.o subfdout.o \
|
|
|
341 |
subfdouts.o subfdin.o subfdins.o substdio_copy.o
|
|
|
342 |
./makelib substdio.a substdio.o substdi.o substdo.o \
|
|
|
343 |
subfderr.o subfdout.o subfdouts.o subfdin.o subfdins.o \
|
|
|
344 |
substdio_copy.o
|
|
|
345 |
|
|
|
346 |
substdio.o: \
|
|
|
347 |
compile substdio.c substdio.h
|
|
|
348 |
./compile substdio.c
|
|
|
349 |
|
|
|
350 |
substdio_copy.o: \
|
|
|
351 |
compile substdio_copy.c substdio.h
|
|
|
352 |
./compile substdio_copy.c
|
|
|
353 |
|
|
|
354 |
substdo.o: \
|
|
|
355 |
compile substdo.c substdio.h str.h byte.h error.h
|
|
|
356 |
./compile substdo.c
|
|
|
357 |
|
|
|
358 |
############### Begin queue-fix
|
|
|
359 |
|
|
|
360 |
queue-fix: \
|
|
|
361 |
load queue-fix.o fifo.o fs.a stralloc.a getln.a open.a error.a \
|
|
|
362 |
substdio.a alloc.a str.a
|
|
|
363 |
./load queue-fix fifo.o fs.a stralloc.a getln.a open.a error.a \
|
|
|
364 |
substdio.a alloc.a str.a
|
|
|
365 |
|
|
|
366 |
queue-fix.o: \
|
|
|
367 |
compile queue-fix.c direntry.h hasmkffo.h
|
|
|
368 |
./compile queue-fix.c
|