|
|
1.1 root 1: #########################################################################
2: # This program is copyright (C) 1985, 1986 by Jonathan Payne. It is #
3: # provided to you without charge for use only on a licensed Unix #
4: # system. You may copy JOVE provided that this notice is included with #
5: # the copy. You may not sell copies of this program or versions #
6: # modified for use on microcomputer systems, unless the copies are #
7: # included with a Unix system distribution and the source is provided. #
8: #########################################################################
9:
10: # Figure out the directories for things. TMPDIR is where the tmp files get
11: # stored, usually /tmp or /tmp/jove. RECDIR is where the tmp files should be
12: # moved when the system comes back up (and a call to recover -syscrash should
13: # be put in /etc/rc before /tmp is cleared). If your system does not remove
14: # subdirectories of /tmp on reboot (lots do remove them these days) then it
15: # makes sense to make RECDIR and TMPDIR both be /tmp/jove. That way you
16: # don't need the call to jove_recover in /etc/rc. LIBDIR is for online
17: # documentation, the PORTSRV process, JOVE_RECOVER, and the system-wide
18: # .joverc file. BINDIR is where to put the executables JOVE, JOVE_RECOVER
19: # and TEACHJOVE. MANDIR is where the manual pages go for JOVE, JOVE_RECOVER
20: # and TEACHJOVE. MANEXT is the extension for the man pages, e.g., jove.1 or
21: # jove.l or jove.m.
22:
23: DESTDIR =
24: TMPDIR = /tmp
25: RECDIR = /tmp
26: LIBDIR = /usr/new/lib/jove
27: BINDIR = /usr/new
28: MANDIR = /usr/man/mann
29: MANEXT = n
30: SHELL = /bin/csh
31:
32: # These should all just be right if the above ones are.
33: JOVE = $(DESTDIR)$(BINDIR)/jove
34: RECOVER = $(DESTDIR)$(BINDIR)/jove_recover
35: TEACHJOVE = $(DESTDIR)$(BINDIR)/teachjove
36: JOVERC = $(DESTDIR)$(LIBDIR)/.joverc
37: CMDS.DOC = $(DESTDIR)$(LIBDIR)/cmds.doc
38: TEACH-JOVE = $(DESTDIR)$(LIBDIR)/teach-jove
39: PORTSRV = $(DESTDIR)$(LIBDIR)/portsrv
40: JOVEM = $(DESTDIR)$(MANDIR)/jove.$(MANEXT)
41: RECOVERM = $(DESTDIR)$(MANDIR)/jove_recover.$(MANEXT)
42: TEACHJOVEM = $(DESTDIR)$(MANDIR)/teachjove.$(MANEXT)
43:
44: # Select the right libraries for your system.
45: # 2.9BSD: LIBS = -ltermcap -ljobs
46: # v7: LIBS = -ltermcap
47: # 4.1BSD: LIBS = -ltermcap -ljobs
48: # 4.2BSD: LIBS = -ltermcap
49: # 4.3BSD: LIBS = -ltermcap
50:
51: LIBS = -ltermcap
52:
53: # If you are not VMUNIX (vax running Berkeley Version 4), you must specify
54: # the -i flags (split I/D space) and maybe the -x option (for adb to work).
55: # 2.9BSD: LDFLAGS = -x -i
56: # v7: LDFLAGS = -x -i
57: # 4.1BSD: LDFLAGS =
58: # 4.2BSD: LDFLAGS =
59: # 4.3BSD: LDFLAGS =
60:
61: LDFLAGS =
62:
63: CFLAGS = -O
64: COFLAGS = -rworking -q
65:
66: OBJECTS = keymaps.o funcdefs.o abbrev.o ask.o buf.o c.o case.o ctype.o \
67: delete.o disp.o extend.o fp.o fmt.o insert.o io.o iproc.o jove.o macros.o \
68: malloc.o marks.o misc.o move.o paragraph.o proc.o re.o re1.o rec.o \
69: scandir.o screen.o term.o tune.o util.o vars.o version.o wind.o
70:
71: JOVESRC = funcdefs.c abbrev.c ask.c buf.c c.c case.c ctype.c \
72: delete.c disp.c extend.c fp.c fmt.c insert.c io.c iproc.c \
73: jove.c macros.c malloc.c marks.c misc.c move.c paragraph.c \
74: proc.c re.c re1.c rec.c scandir.c screen.c term.c util.c \
75: vars.c version.c wind.c
76:
77: SOURCES = $(JOVESRC) portsrv.c recover.c setmaps.c teachjove.c
78:
79: HEADERS = ctype.h io.h jove.h re.h rec.h temp.h termcap.h tune.h
80:
81: DOCS = doc/cmds.doc.nr doc/example.rc doc/jove.1 doc/jove.2 doc/jove.3 \
82: doc/jove.4 doc/jove.nr doc/recover.nr doc/system.rc doc/teach-jove \
83: doc/teachjove.nr doc/README
84:
85:
86: BACKUPS = $(HEADERS) $(JOVESRC) iproc-pipes.c iproc-ptys.c \
87: teachjove.c recover.c setmaps.c portsrv.c tune.template \
88: Makefile Ovmakefile keymaps.txt README $(DOCS)
89:
90:
91: all: xjove recover teachjove portsrv
92:
93: xjove: $(OBJECTS)
94: $(CC) $(LDFLAGS) -o xjove $(OBJECTS) version.o $(LIBS)
95: @-size xjove
96: @-date
97:
98: portsrv: portsrv.o
99: cc -o portsrv -n portsrv.o $(LIBS)
100:
101: recover: recover.o tune.o rec.h temp.h
102: cc -o recover -n recover.o tune.o $(LIBS)
103:
104: teachjove: teachjove.o
105: cc -o teachjove -n teachjove.o $(LIBS)
106:
107: setmaps: setmaps.o funcdefs.c
108: cc -o setmaps setmaps.o
109:
110: teachjove.o: teachjove.c /usr/include/sys/types.h /usr/include/sys/file.h
111: cc -c $(CFLAGS) -DTEACHJOVE=\"$(TEACH-JOVE)\" teachjove.c
112:
113: setmaps.o: funcdefs.c keymaps.txt
114:
115: keymaps.c: setmaps keymaps.txt
116: setmaps < keymaps.txt > keymaps.c
117:
118: keymaps.o: keymaps.c jove.h
119:
120: tune.c: Makefile tune.template
121: @echo "/* Changes should be made in Makefile, not to this file! */" > tune.c
122: @echo "" >> tune.c
123: @sed -e 's;TMPDIR;$(TMPDIR);' \
124: -e 's;RECDIR;$(RECDIR);' \
125: -e 's;LIBDIR;$(LIBDIR);' \
126: -e 's;BINDIR;$(BINDIR);' \
127: -e 's;SHELL;$(SHELL);' tune.template >> tune.c
128:
129: install: $(DESTDIR)$(LIBDIR) $(TEACH-JOVE) $(CMDS.DOC) $(JOVERC) \
130: $(PORTSRV) $(RECOVER) $(JOVE) $(TEACHJOVE) $(JOVEM) \
131: $(RECOVERM) $(TEACHJOVEM)
132:
133: $(DESTDIR)$(LIBDIR):
134: -mkdir $(DESTDIR)$(LIBDIR)
135:
136: $(TEACH-JOVE): doc/teach-jove
137: install -c -m 644 doc/teach-jove $(TEACH-JOVE)
138:
139: doc/cmds.doc: doc/cmds.doc.nr doc/jove.4
140: nroff doc/cmds.doc.nr doc/jove.4 > doc/cmds.doc
141:
142: $(CMDS.DOC): doc/cmds.doc
143: install -c -m 644 doc/cmds.doc $(CMDS.DOC)
144:
145: $(JOVERC): doc/system.rc
146: install -c -m 644 doc/system.rc $(JOVERC)
147:
148: $(PORTSRV): portsrv
149: install -c -s -m 755 portsrv $(PORTSRV)
150:
151: $(RECOVER): recover
152: install -c -s -m 755 recover $(RECOVER)
153:
154: $(JOVE): xjove
155: install -c -m 755 xjove $(JOVE)
156:
157: $(TEACHJOVE): teachjove
158: install -c -s -m 755 teachjove $(TEACHJOVE)
159:
160: $(JOVEM): doc/jove.nr
161: @sed -e 's;TMPDIR;$(TMPDIR);' \
162: -e 's;RECDIR;$(RECDIR);' \
163: -e 's;LIBDIR;$(LIBDIR);' \
164: -e 's;SHELL;$(SHELL);' doc/jove.nr > /tmp/jove.nr
165: install -m 644 /tmp/jove.nr $(JOVEM)
166:
167: $(RECOVERM): doc/recover.nr
168: @sed -e 's;TMPDIR;$(TMPDIR);' \
169: -e 's;RECDIR;$(RECDIR);' \
170: -e 's;LIBDIR;$(LIBDIR);' \
171: -e 's;SHELL;$(SHELL);' doc/recover.nr > /tmp/recover.nr
172: install -m 644 /tmp/recover.nr $(RECOVERM)
173:
174: $(TEACHJOVEM): doc/teachjove.nr
175: @sed -e 's;TMPDIR;$(TMPDIR);' \
176: -e 's;RECDIR;$(RECDIR);' \
177: -e 's;LIBDIR;$(LIBDIR);' \
178: -e 's;SHELL;$(SHELL);' doc/teachjove.nr > /tmp/teachjove.nr
179: install -m 644 /tmp/teachjove.nr $(TEACHJOVEM)
180:
181: echo:
182: @echo $(C-FILES) $(HEADERS)
183:
184: lint:
185: lint -n $(JOVESRC) tune.c keymaps.c
186: @echo Done
187:
188: tags:
189: ctags -w $(JOVESRC) $(HEADERS)
190:
191: ciall:
192: ci $(BACKUPS)
193:
194: coall:
195: co $(BACKUPS)
196:
197: jove.shar:
198: shar $(BACKUPS) > jove.shar
199:
200: backup:
201: tar cf backup $(BACKUPS)
202:
203: tape-backup:
204: tar cbf 20 /dev/rmt0 $(BACKUPS)
205:
206: touch:
207: touch $(OBJECTS)
208:
209: clean:
210: rm -f a.out core *.o keymaps.c tune.c xjove portsrv recover setmaps \
211: teachjove
212:
213: # This version only works under 4.3BSD
214: depend:
215: for i in ${SOURCES} ; do \
216: cc -M ${CFLAGS} $$i | awk ' { if ($$1 != prev) \
217: { if (rec != "") print rec; rec = $$0; prev = $$1; } \
218: else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
219: else rec = rec " " $$2 } } \
220: END { print rec } ' >> makedep; done
221: echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
222: echo '$$r makedep' >>eddep
223: echo 'w' >>eddep
224: cp Makefile Makefile.bak
225: ed - Makefile < eddep
226: rm eddep makedep
227: echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
228: echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
229: echo '# see make depend above' >> Makefile
230:
231: # DO NOT DELETE THIS LINE -- make depend uses it
232: # DEPENDENCIES MUST END AT END OF FILE
233: funcdefs.o: funcdefs.c ./jove.h /usr/include/setjmp.h /usr/include/sys/types.h
234: funcdefs.o: ./tune.h /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
235: funcdefs.o: /usr/include/sys/ttydev.h
236: abbrev.o: abbrev.c ./jove.h /usr/include/setjmp.h /usr/include/sys/types.h
237: abbrev.o: ./tune.h ./io.h ./ctype.h
238: ask.o: ask.c ./jove.h /usr/include/setjmp.h /usr/include/sys/types.h ./tune.h
239: ask.o: ./termcap.h ./ctype.h /usr/include/signal.h /usr/include/varargs.h
240: ask.o: /usr/include/sys/stat.h
241: buf.o: buf.c ./jove.h /usr/include/setjmp.h /usr/include/sys/types.h ./tune.h
242: buf.o: /usr/include/sys/stat.h
243: c.o: c.c ./jove.h /usr/include/setjmp.h /usr/include/sys/types.h ./tune.h
244: c.o: ./re.h ./ctype.h
245: case.o: case.c ./jove.h /usr/include/setjmp.h /usr/include/sys/types.h ./tune.h
246: case.o: ./ctype.h
247: ctype.o: ctype.c ./jove.h /usr/include/setjmp.h /usr/include/sys/types.h
248: ctype.o: ./tune.h ./ctype.h
249: delete.o: delete.c ./jove.h /usr/include/setjmp.h /usr/include/sys/types.h
250: delete.o: ./tune.h
251: disp.o: disp.c ./jove.h /usr/include/setjmp.h /usr/include/sys/types.h ./tune.h
252: disp.o: ./ctype.h ./termcap.h /usr/include/varargs.h /usr/include/signal.h
253: disp.o: /usr/include/sys/stat.h
254: extend.o: extend.c ./jove.h /usr/include/setjmp.h /usr/include/sys/types.h
255: extend.o: ./tune.h ./io.h ./termcap.h ./ctype.h /usr/include/signal.h
256: extend.o: /usr/include/varargs.h
257: fp.o: fp.c ./jove.h /usr/include/setjmp.h /usr/include/sys/types.h ./tune.h
258: fp.o: ./io.h ./termcap.h /usr/include/sys/stat.h /usr/include/sys/file.h
259: fp.o: /usr/include/errno.h
260: fmt.o: fmt.c ./jove.h /usr/include/setjmp.h /usr/include/sys/types.h ./tune.h
261: fmt.o: ./io.h ./termcap.h /usr/include/varargs.h
262: insert.o: insert.c ./jove.h /usr/include/setjmp.h /usr/include/sys/types.h
263: insert.o: ./tune.h ./ctype.h
264: io.o: io.c ./jove.h /usr/include/setjmp.h /usr/include/sys/types.h ./tune.h
265: io.o: ./io.h ./termcap.h /usr/include/signal.h /usr/include/sys/stat.h
266: io.o: /usr/include/sys/file.h /usr/include/errno.h ./temp.h
267: iproc.o: iproc.c ./jove.h /usr/include/setjmp.h /usr/include/sys/types.h
268: iproc.o: ./tune.h ./iproc-ptys.c /usr/include/sys/wait.h /usr/include/signal.h
269: iproc.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h
270: iproc.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
271: jove.o: jove.c ./jove.h /usr/include/setjmp.h /usr/include/sys/types.h ./tune.h
272: jove.o: ./io.h ./termcap.h /usr/include/varargs.h /usr/include/sys/stat.h
273: jove.o: /usr/include/signal.h /usr/include/errno.h /usr/include/sgtty.h
274: jove.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
275: jove.o: /usr/include/sys/ttydev.h /usr/include/fcntl.h
276: macros.o: macros.c ./jove.h /usr/include/setjmp.h /usr/include/sys/types.h
277: macros.o: ./tune.h
278: malloc.o: malloc.c ./tune.h
279: marks.o: marks.c ./jove.h /usr/include/setjmp.h /usr/include/sys/types.h
280: marks.o: ./tune.h
281: misc.o: misc.c ./jove.h /usr/include/setjmp.h /usr/include/sys/types.h ./tune.h
282: misc.o: ./ctype.h /usr/include/signal.h ./termcap.h
283: move.o: move.c ./jove.h /usr/include/setjmp.h /usr/include/sys/types.h ./tune.h
284: move.o: ./ctype.h
285: paragraph.o: paragraph.c ./jove.h /usr/include/setjmp.h
286: paragraph.o: /usr/include/sys/types.h ./tune.h
287: proc.o: proc.c ./jove.h /usr/include/setjmp.h /usr/include/sys/types.h ./tune.h
288: proc.o: ./io.h ./termcap.h /usr/include/signal.h /usr/include/sys/wait.h
289: re.o: re.c ./jove.h /usr/include/setjmp.h /usr/include/sys/types.h ./tune.h
290: re.o: ./ctype.h
291: re1.o: re1.c ./jove.h /usr/include/setjmp.h /usr/include/sys/types.h ./tune.h
292: re1.o: ./io.h ./re.h
293: rec.o: rec.c ./jove.h /usr/include/setjmp.h /usr/include/sys/types.h ./tune.h
294: rec.o: ./io.h ./temp.h ./rec.h /usr/include/sys/file.h
295: scandir.o: scandir.c ./jove.h /usr/include/setjmp.h /usr/include/sys/types.h
296: scandir.o: ./tune.h /usr/include/sys/stat.h /usr/include/sys/dir.h
297: screen.o: screen.c ./jove.h /usr/include/setjmp.h /usr/include/sys/types.h
298: screen.o: ./tune.h ./io.h ./ctype.h ./temp.h ./termcap.h
299: term.o: term.c ./jove.h /usr/include/setjmp.h /usr/include/sys/types.h ./tune.h
300: term.o: /usr/include/errno.h /usr/include/sgtty.h /usr/include/sys/ioctl.h
301: term.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
302: term.o: /usr/include/signal.h
303: util.o: util.c ./jove.h /usr/include/setjmp.h /usr/include/sys/types.h ./tune.h
304: util.o: ./ctype.h /usr/include/signal.h /usr/include/nlist.h
305: util.o: /usr/include/sys/time.h /usr/include/time.h
306: vars.o: vars.c ./jove.h /usr/include/setjmp.h /usr/include/sys/types.h ./tune.h
307: version.o: version.c
308: wind.o: wind.c ./jove.h /usr/include/setjmp.h /usr/include/sys/types.h ./tune.h
309: wind.o: ./termcap.h
310: portsrv.o: portsrv.c ./tune.h
311: recover.o: recover.c /usr/include/stdio.h ./jove.h /usr/include/setjmp.h
312: recover.o: /usr/include/sys/types.h ./tune.h ./temp.h ./rec.h
313: recover.o: /usr/include/signal.h /usr/include/sys/file.h
314: recover.o: /usr/include/sys/stat.h /usr/include/sys/dir.h ./ctype.h
315: setmaps.o: setmaps.c ./funcdefs.c ./jove.h /usr/include/setjmp.h
316: setmaps.o: /usr/include/sys/types.h ./tune.h /usr/include/sys/ioctl.h
317: setmaps.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
318: setmaps.o: /usr/include/stdio.h
319: # DEPENDENCIES MUST END AT END OF FILE
320: # IF YOU PUT STUFF HERE IT WILL GO AWAY
321: # see make depend above
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.