dvitomp fix from Akira
[mplib] / src / texk / web2c / cwebdir / README
1 % This file is part of CWEB.
2 % The CWEB programs by Silvio Levy are based on programs by D. E. Knuth.
3 % They are distributed WITHOUT ANY WARRANTY, express or implied.
4 % This README file last updated May 2000 by Don Knuth
5
6 % Copyright (C) 1987,1990,1993,2000 Silvio Levy and Donald E. Knuth
7
8 % Permission is granted to make and distribute verbatim copies of this
9 % document provided that the copyright notice and this permission notice
10 % are preserved on all copies.
11
12 % Permission is granted to copy and distribute modified versions of this
13 % document under the conditions for verbatim copying, provided that the
14 % entire resulting derived work is given a different name and distributed
15 % under the terms of a permission notice identical to this one.
16
17 % Please send comments, suggestions, etc. to levy@math.berkeley.edu.
18
19 This directory contains the following files:
20
21 Makefile
22 README
23 comm-amiga.ch
24 comm-bs.ch
25 comm-mac.ch
26 comm-man.ch
27 comm-pc.ch
28 comm-ql.ch
29 comm-vms.ch
30 comm-w32.ch
31 common.c
32 common.h
33 common.w
34 ctang-bs.ch
35 ctang-man.ch
36 ctang-pc.ch
37 ctang-ql.ch
38 ctang-vms.ch
39 ctang-w32.ch
40 ctangle.c
41 ctangle.w
42 cweav-bs.ch
43 cweav-man.ch
44 cweav-pc.ch
45 cweav-ql.ch
46 cweav-vms.ch
47 cweave-w32.ch
48 cweave.w
49 cweb.1
50 cweb.el
51 cwebmac.tex
52 cwebman.tex
53 examples/
54 makefile.bs
55 prod.w
56 readme.ql
57 c++lib.w
58
59 The file cwebman.tex is the user manual.
60 The examples directory contains additional examples of the use of CWEB.
61 The files common.c and ctangle.c are used for bootstrapping.
62 The file cweb.1 is a manual page.
63 The file cweb.el is suggested for GNU-Emacs users.
64 The file c++lib.w is for C++ users (say `@i c++lib.w' at beginning of program).
65 The files *-man.ch are used if you want to make the full 239-page CWEB manual.
66 The files *-bs.ch are used instead of *-pc.ch if you are doing BIG programs.
67 You can use makefile.bs to make CWEB with *-bs.ch.
68 The files *-ql.ch are for QDOS/SMSQ systems; see readme.ql for further info.
69 The files *-w32.ch use __fastcall conventions on win32 systems.
70 The file comm-mac.ch is for Macintosh conventions.
71 The other files named *.ch are sample change files for local customization.
72
73 IMPORTANT: Please touch *.c before proceeding.
74 Then edit the opening lines of Makefile so that it has the proper
75 directory information for your local system.
76
77 To make ctangle and cweave say `make all'; this should produce roughly
78 the following actions (possibly with harmless warning messages from cc):
79
80 cc -g -w -c ctangle.c
81 cc -g -w -DCWEBINPUTS=\"/usr/local/lib/cweb\" -c common.c
82 cc -g -o ctangle ctangle.o common.o 
83 ./ctangle cweave
84 cc -g -w -c cweave.c
85 cc -g -w -o cweave cweave.o common.o
86
87 To get some reassurance that things are OK, you can say `make cautiously',
88 which ensures that CTANGLE will reproduce itself. (Otherwise the source
89 files common.w and ctangle.w won't actually have been used.)
90
91 To install cweave and ctangle say `make install'. You probably need to
92 be superuser to do this; but it's wise to `make all' first, BEFORE
93 becoming superuser and saying `make install'.
94
95 Note that change files for VMS, AMIGA, MAC, and PCs are provided.  When you
96 are first bootstrapping to a new system, you may need to edit common.c and
97 ctangle.c by hand, but the vast majority of the change-file changes are
98 minor refinements that are not necessary for a rudimentary ctangle.