Debianization, and minor fixes.
[fastforward] / Makefile
CommitLineData
8d5530c4
MW
1# Don't edit Makefile! Use conf-* for configuration.
2
3SHELL=/bin/sh
4
5default: it
6
7alloc.a: \
8makelib alloc.o alloc_re.o
9 ./makelib alloc.a alloc.o alloc_re.o
10
11alloc.o: \
12compile alloc.c alloc.h error.h
13 ./compile alloc.c
14
15alloc_re.o: \
16compile alloc_re.c alloc.h byte.h
17 ./compile alloc_re.c
18
19auto-ccld.sh: \
20conf-cc conf-ld warn-auto.sh
21 ( cat warn-auto.sh; \
22 echo CC=\'`head -1 conf-cc`\'; \
23 echo LD=\'`head -1 conf-ld`\' \
24 ) > auto-ccld.sh
25
26auto-str: \
27load auto-str.o substdio.a error.a str.a
28 ./load auto-str substdio.a error.a str.a
29
30auto-str.o: \
31compile auto-str.c substdio.h readwrite.h exit.h
32 ./compile auto-str.c
33
34auto_qmail.c: \
35auto-str conf-qmail
36 ./auto-str auto_qmail `head -1 conf-qmail` > auto_qmail.c
37
38auto_qmail.o: \
39compile auto_qmail.c
40 ./compile auto_qmail.c
41
42byte_chr.o: \
43compile byte_chr.c byte.h
44 ./compile byte_chr.c
45
46byte_copy.o: \
47compile byte_copy.c byte.h
48 ./compile byte_copy.c
49
50byte_cr.o: \
51compile byte_cr.c byte.h
52 ./compile byte_cr.c
53
54byte_diff.o: \
55compile byte_diff.c byte.h
56 ./compile byte_diff.c
57
58case.a: \
59makelib case_lowerb.o
60 ./makelib case.a case_lowerb.o
61
62case_lowerb.o: \
63compile case_lowerb.c case.h
64 ./compile case_lowerb.c
65
66cdb.a: \
67makelib cdb_hash.o cdb_unpack.o cdb_seek.o
68 ./makelib cdb.a cdb_hash.o cdb_unpack.o cdb_seek.o
69
70cdb_hash.o: \
71compile cdb_hash.c cdb.h uint32.h
72 ./compile cdb_hash.c
73
74cdb_seek.o: \
75compile cdb_seek.c cdb.h uint32.h
76 ./compile cdb_seek.c
77
78cdb_unpack.o: \
79compile cdb_unpack.c cdb.h uint32.h
80 ./compile cdb_unpack.c
81
82cdbmake.a: \
83makelib cdbmake_pack.o cdbmake_hash.o cdbmake_add.o
84 ./makelib cdbmake.a cdbmake_pack.o cdbmake_hash.o \
85 cdbmake_add.o
86
87cdbmake_add.o: \
88compile cdbmake_add.c cdbmake.h uint32.h
89 ./compile cdbmake_add.c
90
91cdbmake_hash.o: \
92compile cdbmake_hash.c cdbmake.h uint32.h
93 ./compile cdbmake_hash.c
94
95cdbmake_pack.o: \
96compile cdbmake_pack.c cdbmake.h uint32.h
97 ./compile cdbmake_pack.c
98
99cdbmss.o: \
100compile cdbmss.c readwrite.h seek.h alloc.h cdbmss.h cdbmake.h \
101uint32.h substdio.h
102 ./compile cdbmss.c
103
104check: \
105it instcheck
106 ./instcheck
107
108coe.o: \
109compile coe.c coe.h
110 ./compile coe.c
111
112compile: \
113make-compile warn-auto.sh systype
114 ( cat warn-auto.sh; ./make-compile "`cat systype`" ) > \
115 compile
116 chmod 755 compile
117
118control.o: \
119compile control.c readwrite.h open.h getln.h stralloc.h gen_alloc.h \
120substdio.h error.h control.h alloc.h scan.h
121 ./compile control.c
122
123env.a: \
124makelib envread.o
125 ./makelib env.a envread.o
126
127envread.o: \
128compile envread.c env.h str.h
129 ./compile envread.c
130
131error.a: \
132makelib error.o error_str.o
133 ./makelib error.a error.o error_str.o
134
135error.o: \
136compile error.c error.h
137 ./compile error.c
138
139error_str.o: \
140compile error_str.c error.h
141 ./compile error_str.c
142
143fastforward: \
144load fastforward.o slurpclose.o coe.o strset.o qmail.o auto_qmail.o \
145getopt.a cdb.a env.a strerr.a substdio.a stralloc.a alloc.a error.a \
146case.a str.a fs.a sig.a wait.a seek.a open.a fd.a
147 ./load fastforward slurpclose.o coe.o strset.o qmail.o \
148 auto_qmail.o getopt.a cdb.a env.a strerr.a substdio.a \
149 stralloc.a alloc.a error.a case.a str.a fs.a sig.a wait.a \
150 seek.a open.a fd.a
151
152fastforward.0: \
153fastforward.1
154 nroff -man fastforward.1 > fastforward.0
155
156fastforward.o: \
157compile fastforward.c stralloc.h gen_alloc.h substdio.h subfd.h \
158substdio.h strset.h uint32.h sgetopt.h subgetopt.h readwrite.h exit.h \
159strerr.h env.h sig.h qmail.h substdio.h fmt.h case.h alloc.h coe.h \
160seek.h wait.h fork.h
161 ./compile fastforward.c
162
163fd.a: \
164makelib fd_copy.o fd_move.o
165 ./makelib fd.a fd_copy.o fd_move.o
166
167fd_copy.o: \
168compile fd_copy.c fd.h
169 ./compile fd_copy.c
170
171fd_move.o: \
172compile fd_move.c fd.h
173 ./compile fd_move.c
174
175find-systype: \
176find-systype.sh auto-ccld.sh
177 cat auto-ccld.sh find-systype.sh > find-systype
178 chmod 755 find-systype
179
180fmt_ulong.o: \
181compile fmt_ulong.c fmt.h
182 ./compile fmt_ulong.c
183
184fork.h: \
185compile load tryvfork.c fork.h1 fork.h2
186 ( ( ./compile tryvfork.c && ./load tryvfork ) >/dev/null \
187 2>&1 \
188 && cat fork.h2 || cat fork.h1 ) > fork.h
189 rm -f tryvfork.o tryvfork
190
191fs.a: \
192makelib fmt_ulong.o scan_ulong.o
193 ./makelib fs.a fmt_ulong.o scan_ulong.o
194
195getln.a: \
196makelib getln.o getln2.o
197 ./makelib getln.a getln.o getln2.o
198
199getln.o: \
200compile getln.c substdio.h byte.h stralloc.h gen_alloc.h getln.h
201 ./compile getln.c
202
203getln2.o: \
204compile getln2.c substdio.h stralloc.h gen_alloc.h byte.h getln.h
205 ./compile getln2.c
206
207getopt.a: \
208makelib subgetopt.o sgetopt.o
209 ./makelib getopt.a subgetopt.o sgetopt.o
210
211hassgact.h: \
212trysgact.c compile load
213 ( ( ./compile trysgact.c && ./load trysgact ) >/dev/null \
214 2>&1 \
215 && echo \#define HASSIGACTION 1 || exit 0 ) > hassgact.h
216 rm -f trysgact.o trysgact
217
218haswaitp.h: \
219trywaitp.c compile load
220 ( ( ./compile trywaitp.c && ./load trywaitp ) >/dev/null \
221 2>&1 \
222 && echo \#define HASWAITPID 1 || exit 0 ) > haswaitp.h
223 rm -f trywaitp.o trywaitp
224
225hier.o: \
226compile hier.c auto_qmail.h
227 ./compile hier.c
228
229install: \
230load install.o hier.o auto_qmail.o strerr.a substdio.a error.a open.a \
231str.a
232 ./load install hier.o auto_qmail.o strerr.a substdio.a \
233 error.a open.a str.a
234
235install.o: \
236compile install.c substdio.h strerr.h error.h open.h readwrite.h \
237exit.h
238 ./compile install.c
239
240instcheck: \
241load instcheck.o hier.o auto_qmail.o strerr.a substdio.a error.a \
242str.a
243 ./load instcheck hier.o auto_qmail.o strerr.a substdio.a \
244 error.a str.a
245
246instcheck.o: \
247compile instcheck.c strerr.h error.h readwrite.h exit.h
248 ./compile instcheck.c
249
250it: \
251prog man
252
253load: \
254make-load warn-auto.sh systype
255 ( cat warn-auto.sh; ./make-load "`cat systype`" ) > load
256 chmod 755 load
257
258make-compile: \
259make-compile.sh auto-ccld.sh
260 cat auto-ccld.sh make-compile.sh > make-compile
261 chmod 755 make-compile
262
263make-load: \
264make-load.sh auto-ccld.sh
265 cat auto-ccld.sh make-load.sh > make-load
266 chmod 755 make-load
267
268make-makelib: \
269make-makelib.sh auto-ccld.sh
270 cat auto-ccld.sh make-makelib.sh > make-makelib
271 chmod 755 make-makelib
272
273makelib: \
274make-makelib warn-auto.sh systype
275 ( cat warn-auto.sh; ./make-makelib "`cat systype`" ) > \
276 makelib
277 chmod 755 makelib
278
279man: \
280fastforward.0 printforward.0 setforward.0 newaliases.0 \
281printmaillist.0 setmaillist.0 newinclude.0
282
283newaliases: \
284load newaliases.o auto_qmail.o token822.o control.o cdbmss.o \
285cdbmake.a strerr.a getln.a substdio.a stralloc.a alloc.a error.a \
286str.a fs.a seek.a open.a case.a
287 ./load newaliases auto_qmail.o token822.o control.o \
288 cdbmss.o cdbmake.a strerr.a getln.a substdio.a stralloc.a \
289 alloc.a error.a str.a fs.a seek.a open.a case.a
290
291newaliases.0: \
292newaliases.1
293 nroff -man newaliases.1 > newaliases.0
294
295newaliases.o: \
296compile newaliases.c substdio.h strerr.h stralloc.h gen_alloc.h \
297getln.h open.h readwrite.h token822.h gen_alloc.h control.h \
298auto_qmail.h case.h cdbmss.h cdbmake.h uint32.h substdio.h
299 ./compile newaliases.c
300
301newinclude: \
302load newinclude.o auto_qmail.o token822.o control.o getln.a strerr.a \
303stralloc.a env.a alloc.a substdio.a error.a str.a fs.a open.a wait.a \
304fd.a
305 ./load newinclude auto_qmail.o token822.o control.o \
306 getln.a strerr.a stralloc.a env.a alloc.a substdio.a \
307 error.a str.a fs.a open.a wait.a fd.a
308
309newinclude.0: \
310newinclude.1
311 nroff -man newinclude.1 > newinclude.0
312
313newinclude.o: \
314compile newinclude.c substdio.h strerr.h stralloc.h gen_alloc.h \
315getln.h open.h readwrite.h token822.h gen_alloc.h control.h \
316auto_qmail.h env.h
317 ./compile newinclude.c
318
319open.a: \
320makelib open_read.o open_trunc.o
321 ./makelib open.a open_read.o open_trunc.o
322
323open_read.o: \
324compile open_read.c open.h
325 ./compile open_read.c
326
327open_trunc.o: \
328compile open_trunc.c open.h
329 ./compile open_trunc.c
330
331printforward: \
332load printforward.o cdb.a strerr.a substdio.a stralloc.a alloc.a \
333error.a str.a
334 ./load printforward cdb.a strerr.a substdio.a stralloc.a \
335 alloc.a error.a str.a
336
337printforward.0: \
338printforward.1
339 nroff -man printforward.1 > printforward.0
340
341printforward.o: \
342compile printforward.c substdio.h subfd.h substdio.h strerr.h \
343stralloc.h gen_alloc.h cdb.h uint32.h
344 ./compile printforward.c
345
346printmaillist: \
347load printmaillist.o getln.a strerr.a substdio.a stralloc.a alloc.a \
348error.a str.a
349 ./load printmaillist getln.a strerr.a substdio.a \
350 stralloc.a alloc.a error.a str.a
351
352printmaillist.0: \
353printmaillist.1
354 nroff -man printmaillist.1 > printmaillist.0
355
356printmaillist.o: \
357compile printmaillist.c substdio.h subfd.h substdio.h strerr.h \
358stralloc.h gen_alloc.h getln.h
359 ./compile printmaillist.c
360
361prog: \
362fastforward printforward setforward newaliases printmaillist \
363setmaillist newinclude
364
365qmail.o: \
366compile qmail.c substdio.h readwrite.h wait.h exit.h fork.h fd.h \
367qmail.h substdio.h auto_qmail.h
368 ./compile qmail.c
369
370scan_ulong.o: \
371compile scan_ulong.c scan.h
372 ./compile scan_ulong.c
373
374seek.a: \
375makelib seek_set.o
376 ./makelib seek.a seek_set.o
377
378seek_set.o: \
379compile seek_set.c seek.h
380 ./compile seek_set.c
381
382setforward: \
383load setforward.o cdbmss.o cdbmake.a strerr.a substdio.a stralloc.a \
384alloc.a error.a str.a seek.a open.a case.a
385 ./load setforward cdbmss.o cdbmake.a strerr.a substdio.a \
386 stralloc.a alloc.a error.a str.a seek.a open.a case.a
387
388setforward.0: \
389setforward.1
390 nroff -man setforward.1 > setforward.0
391
392setforward.o: \
393compile setforward.c substdio.h subfd.h substdio.h strerr.h \
394stralloc.h gen_alloc.h open.h case.h readwrite.h cdbmss.h cdbmake.h \
395uint32.h substdio.h
396 ./compile setforward.c
397
398setmaillist: \
399load setmaillist.o getln.a strerr.a substdio.a stralloc.a alloc.a \
400error.a str.a open.a
401 ./load setmaillist getln.a strerr.a substdio.a stralloc.a \
402 alloc.a error.a str.a open.a
403
404setmaillist.0: \
405setmaillist.1
406 nroff -man setmaillist.1 > setmaillist.0
407
408setmaillist.o: \
409compile setmaillist.c substdio.h subfd.h substdio.h strerr.h \
410stralloc.h gen_alloc.h getln.h open.h readwrite.h
411 ./compile setmaillist.c
412
413setup: \
414it install
415 ./install
416
417sgetopt.o: \
418compile sgetopt.c substdio.h subfd.h substdio.h sgetopt.h subgetopt.h \
419subgetopt.h
420 ./compile sgetopt.c
421
422sig.a: \
423makelib sig_catch.o sig_pipe.o
424 ./makelib sig.a sig_catch.o sig_pipe.o
425
426sig_catch.o: \
427compile sig_catch.c sig.h hassgact.h
428 ./compile sig_catch.c
429
430sig_pipe.o: \
431compile sig_pipe.c sig.h
432 ./compile sig_pipe.c
433
434slurpclose.o: \
435compile slurpclose.c stralloc.h gen_alloc.h readwrite.h slurpclose.h \
436error.h
437 ./compile slurpclose.c
438
439str.a: \
440makelib str_len.o str_diff.o str_diffn.o str_cpy.o str_chr.o \
441str_rchr.o byte_chr.o byte_diff.o byte_copy.o byte_cr.o
442 ./makelib str.a str_len.o str_diff.o str_diffn.o str_cpy.o \
443 str_chr.o str_rchr.o byte_chr.o byte_diff.o byte_copy.o \
444 byte_cr.o
445
446str_chr.o: \
447compile str_chr.c str.h
448 ./compile str_chr.c
449
450str_cpy.o: \
451compile str_cpy.c str.h
452 ./compile str_cpy.c
453
454str_diff.o: \
455compile str_diff.c str.h
456 ./compile str_diff.c
457
458str_diffn.o: \
459compile str_diffn.c str.h
460 ./compile str_diffn.c
461
462str_len.o: \
463compile str_len.c str.h
464 ./compile str_len.c
465
466str_rchr.o: \
467compile str_rchr.c str.h
468 ./compile str_rchr.c
469
470stralloc.a: \
471makelib stralloc_eady.o stralloc_pend.o stralloc_copy.o \
472stralloc_opys.o stralloc_opyb.o stralloc_cat.o stralloc_cats.o \
473stralloc_catb.o stralloc_arts.o
474 ./makelib stralloc.a stralloc_eady.o stralloc_pend.o \
475 stralloc_copy.o stralloc_opys.o stralloc_opyb.o \
476 stralloc_cat.o stralloc_cats.o stralloc_catb.o \
477 stralloc_arts.o
478
479stralloc_arts.o: \
480compile stralloc_arts.c byte.h str.h stralloc.h gen_alloc.h
481 ./compile stralloc_arts.c
482
483stralloc_cat.o: \
484compile stralloc_cat.c byte.h stralloc.h gen_alloc.h
485 ./compile stralloc_cat.c
486
487stralloc_catb.o: \
488compile stralloc_catb.c stralloc.h gen_alloc.h byte.h
489 ./compile stralloc_catb.c
490
491stralloc_cats.o: \
492compile stralloc_cats.c byte.h str.h stralloc.h gen_alloc.h
493 ./compile stralloc_cats.c
494
495stralloc_copy.o: \
496compile stralloc_copy.c byte.h stralloc.h gen_alloc.h
497 ./compile stralloc_copy.c
498
499stralloc_eady.o: \
500compile stralloc_eady.c alloc.h stralloc.h gen_alloc.h \
501gen_allocdefs.h
502 ./compile stralloc_eady.c
503
504stralloc_opyb.o: \
505compile stralloc_opyb.c stralloc.h gen_alloc.h byte.h
506 ./compile stralloc_opyb.c
507
508stralloc_opys.o: \
509compile stralloc_opys.c byte.h str.h stralloc.h gen_alloc.h
510 ./compile stralloc_opys.c
511
512stralloc_pend.o: \
513compile stralloc_pend.c alloc.h stralloc.h gen_alloc.h \
514gen_allocdefs.h
515 ./compile stralloc_pend.c
516
517strerr.a: \
518makelib strerr_sys.o strerr_die.o
519 ./makelib strerr.a strerr_sys.o strerr_die.o
520
521strerr_die.o: \
522compile strerr_die.c substdio.h subfd.h substdio.h exit.h strerr.h
523 ./compile strerr_die.c
524
525strerr_sys.o: \
526compile strerr_sys.c error.h strerr.h
527 ./compile strerr_sys.c
528
529strset.o: \
530compile strset.c strset.h uint32.h str.h byte.h
531 ./compile strset.c
532
533subfderr.o: \
534compile subfderr.c readwrite.h substdio.h subfd.h substdio.h
535 ./compile subfderr.c
536
537subfdins.o: \
538compile subfdins.c readwrite.h substdio.h subfd.h substdio.h
539 ./compile subfdins.c
540
541subfdouts.o: \
542compile subfdouts.c readwrite.h substdio.h subfd.h substdio.h
543 ./compile subfdouts.c
544
545subgetopt.o: \
546compile subgetopt.c subgetopt.h
547 ./compile subgetopt.c
548
549substdi.o: \
550compile substdi.c substdio.h byte.h error.h
551 ./compile substdi.c
552
553substdio.a: \
554makelib substdio.o substdi.o substdo.o subfderr.o subfdouts.o \
555subfdins.o substdio_copy.o
556 ./makelib substdio.a substdio.o substdi.o substdo.o \
557 subfderr.o subfdouts.o subfdins.o substdio_copy.o
558
559substdio.o: \
560compile substdio.c substdio.h
561 ./compile substdio.c
562
563substdio_copy.o: \
564compile substdio_copy.c substdio.h
565 ./compile substdio_copy.c
566
567substdo.o: \
568compile substdo.c substdio.h str.h byte.h error.h
569 ./compile substdo.c
570
571systype: \
572find-systype trycpp.c
573 ./find-systype > systype
574
575token822.o: \
576compile token822.c stralloc.h gen_alloc.h alloc.h str.h token822.h \
577gen_alloc.h gen_allocdefs.h
578 ./compile token822.c
579
580uint32.h: \
581tryulong32.c compile load uint32.h1 uint32.h2
582 ( ( ./compile tryulong32.c && ./load tryulong32 && \
583 ./tryulong32 ) >/dev/null 2>&1 \
584 && cat uint32.h2 || cat uint32.h1 ) > uint32.h
585 rm -f tryulong32.o tryulong32
586
587wait.a: \
588makelib wait_pid.o
589 ./makelib wait.a wait_pid.o
590
591wait_pid.o: \
592compile wait_pid.c error.h haswaitp.h
593 ./compile wait_pid.c