]> diplodocus.org Git - nmh/blob - docs/historical/mh-jun-1982/dytest/Makefile
Replaced use of snprintf() with memcpy()/memmove().
[nmh] / docs / historical / mh-jun-1982 / dytest / Makefile
1 #
2 # Proprietary Rand Corporation, 1981.
3 # Further distribution of this software
4 # subject to the terms of the Rand
5 # license agreement.
6 #
7
8 # Remove the -DRAND elsewhere!
9 # In ../mh.h: define ARPANET if you are on the arpanet.
10 # In ../mh.h: define VMUNIX if you are running a berkeley system
11 LIBJOBS=#-ljobs
12
13 CFLAGS = -O $(A) # -m -DRAND
14 # The following two must match entry in ../Makefile
15 BINDIR = /usr/local
16 MHDIR = /etc/mh
17 MHTMP = /usr/tmp/mh
18 LOCKDIR = /usr/spool/locks
19 NETDIR = /usr/spool/netmail
20
21 SUBS = ../subs/subs.a
22 STRINGS = ../strings/strings.a
23
24 LINT = lint
25
26 # The 'dist' program is not ready yet, and so is not listed in the CMDS
27 # See also ../man/Makefile
28 CMDS = \
29 ali \
30 comp \
31 file \
32 folder \
33 forw \
34 inc \
35 mail \
36 mhpath \
37 next \
38 news \
39 pick \
40 prev \
41 prompter \
42 repl \
43 rmf \
44 rmm \
45 scan \
46 send \
47 show
48
49 MISC = \
50 conflict \
51 deliver \
52 install-mh \
53 mhl
54
55 PROGS = $(CMDS) $(MISC) rmail
56
57 CFILES = \
58 adrformat.c \
59 adrparse.c \
60 ali.c \
61 comp.c \
62 conflict.c \
63 deliver.c \
64 dist.c \
65 file.c \
66 folder.c \
67 forw.c \
68 inc.c \
69 install-mh.c \
70 mail.c \
71 mhl.c \
72 mhpath.c \
73 news.c \
74 next.c \
75 pick.c \
76 prompter.c \
77 repl.c \
78 rmail.c \
79 rmf.c \
80 rmm.c \
81 scan.c \
82 scansub.c \
83 send.c \
84 show.c
85
86 progs: $(PROGS)
87
88 ali: ali.o $(SUBS)
89 $(CC) -o ali ali.o $(SUBS)
90
91 comp: comp.o $(SUBS) $(STRINGS)
92 $(CC) -o comp comp.o $(SUBS) $(STRINGS)
93
94 conflict: conflict.o $(SUBS)
95 $(CC) -o conflict conflict.o $(SUBS)
96
97 deliver: deliver.o adrparse.o adrformat.o $(SUBS) $(STRINGS)
98 $(CC) -o deliver deliver.o adrparse.o adrformat.o $(SUBS) $(STRINGS)\
99 $(JOBSLIB)
100
101 dist: dist.o annotate.o $(SUBS) $(STRINGS)
102 $(CC) -o dist dist.o annotate.o $(SUBS) $(STRINGS)
103
104 file: file.o $(SUBS) $(STRINGS)
105 $(CC) -o file file.o $(SUBS) $(STRINGS)
106
107 folder: folder.o $(SUBS) $(STRINGS)
108 $(CC) -o folder folder.o $(SUBS) $(STRINGS)
109
110 forw: forw.o annotate.o $(SUBS) $(STRINGS)
111 $(CC) -o forw forw.o annotate.o $(SUBS) $(STRINGS)
112
113 inc: inc.o scansub.o $(SUBS) $(STRINGS)
114 $(CC) -o inc inc.o scansub.o $(SUBS) $(STRINGS)
115
116 install-mh: install-mh.o $(SUBS) $(STRINGS)
117 $(CC) -o install-mh install-mh.o $(SUBS) $(STRINGS)
118
119 mail: mail.o $(SUBS) $(STRINGS)
120 $(CC) -o mail mail.o $(SUBS) $(STRINGS)
121
122 mhpath: mhpath.o $(SUBS) $(STRINGS)
123 $(CC) -o mhpath mhpath.o $(SUBS) $(STRINGS)
124
125 mhl: mhl.o $(SUBS) $(STRINGS)
126 $(CC) -o mhl mhl.o $(SUBS) $(STRINGS)
127
128 news: news.o $(SUBS) $(STRINGS)
129 $(CC) -o news news.o $(SUBS) $(STRINGS)
130
131 next: nexthdr.o next.o $(SUBS) $(STRINGS)
132 $(CC) -o next nexthdr.o next.o $(SUBS) $(STRINGS)
133
134 pick: pick.o grep.o $(SUBS) $(STRINGS)
135 $(CC) -o pick pick.o grep.o $(SUBS) $(STRINGS)
136
137 prev: prevhdr.o next.o $(SUBS) $(STRINGS)
138 $(CC) -o prev prevhdr.o next.o $(SUBS) $(STRINGS)
139
140 prompter: prompter.o $(SUBS) $(STRINGS)
141 $(CC) -o prompter prompter.o $(SUBS) $(STRINGS)
142
143 repl: repl.o annotate.o adrparse.o adrformat.o $(SUBS) $(STRINGS)
144 $(CC) -o repl repl.o annotate.o adrparse.o adrformat.o $(SUBS) $(STRINGS)
145
146 rmail: rmail.o $(SUBS) $(STRINGS)
147 $(CC) -o rmail rmail.o $(SUBS) $(STRINGS)
148
149 rmf: rmf.o $(SUBS) $(STRINGS)
150 $(CC) -o rmf rmf.o $(SUBS) $(STRINGS)
151
152 rmm: rmm.o $(SUBS) $(STRINGS)
153 $(CC) -o rmm rmm.o $(SUBS) $(STRINGS)
154
155 scan: scan.o scansub.o $(SUBS) $(STRINGS)
156 $(CC) -o scan scan.o scansub.o $(SUBS) $(STRINGS)
157
158 send: send.o $(SUBS) $(STRINGS)
159 $(CC) -o send send.o $(SUBS) $(STRINGS)
160
161 show: show.o $(SUBS) $(STRINGS)
162 $(CC) -o show show.o $(SUBS) $(STRINGS)
163
164 lint:
165 -$(LINT) ali.c -v ../subs/subs-lc | tee ali.lint
166 -$(LINT) comp.c -v ../subs/subs-lc | tee comp.lint
167 -$(LINT) conflict.c -v ../subs/subs-lc | tee conflict.lint
168 -$(LINT) deliver.c adrparse.c adrformat.c -v ../subs/subs-lc | tee deliver.lint
169 -$(LINT) dist.c -v ../subs/subs-lc | tee dist.lint
170 -$(LINT) file.c -v ../subs/subs-lc | tee file.lint
171 -$(LINT) folder.c -v ../subs/subs-lc | tee folder.lint
172 -$(LINT) forw.c annotate.c -v ../subs/subs-lc | tee forw.lint
173 -$(LINT) inc.c scansub.c -v ../subs/subs-lc | tee inc.lint
174 -$(LINT) install-mh.c -v ../subs/subs-lc | tee install.lint
175 -$(LINT) mail.c -v ../subs/subs-lc | tee mail.lint
176 -$(LINT) mhl.c -v ../subs/subs-lc | tee mhl.lint
177 -$(LINT) mhpath.c -v ../subs/subs-lc | tee mhpath.lint
178 -$(LINT) news.c -v ../subs/subs-lc | tee news.lint
179 -$(LINT) pick.c -v ../subs/subs-lc | tee pick.lint
180 -$(LINT) prevhdr.c next.c -v ../subs/subs-lc | tee prev.lint
181 -$(LINT) prompter.c -v ../subs/subs-lc | tee prompter.lint
182 -$(LINT) repl.c replsubs.c -v ../subs/subs-lc | tee repl.lint
183 -$(LINT) rmf.c -v ../subs/subs-lc | tee rmf.lint
184 -$(LINT) rmm.c -v ../subs/subs-lc | tee rmm.lint
185 -$(LINT) scan.c scansub.c -v ../subs/subs-lc | tee scan.lint
186 -$(LINT) show.c -v ../subs/subs-lc | tee show.lint
187
188 install: strip installprogs
189 -mkdir $(MHTMP)
190 chmod 777 $(MHTMP)
191 -mkdir $(MHDIR)
192 -mkdir $(LOCKDIR)
193 -mkdir $(NETDIR)
194 -chmod a+x $(MISC)
195 -cd $(MHDIR); rm -f $(MISC)
196 -cp $(MISC) $(MHDIR)
197 echo Now become root and \'make installroot\'
198
199 installprogs:
200 -chmod a+x $(PROGS)
201 -cd $(BINDIR); rm -f $(CMDS) folders
202 -cp $(CMDS) $(BINDIR)
203 -cd $(BINDIR); ln folder folders
204
205 installroot:
206 -cd $(BINDIR); chmod a+x $(CMDS)
207 -cd $(MHDIR); chmod a+x $(MISC)
208 /etc/chown root $(NETDIR)
209 chmod 755 $(NETDIR)
210 -rm -f /bin/rmail
211 /etc/chown root $(LOCKDIR)
212 chmod 777 $(LOCKDIR)
213 -cp rmail /bin
214 # Setuid and Setgid:
215 -chmod 6755 /bin/rmail
216 # Sticky Bit & Setgid: (?Setuid? PK)
217 -/etc/chown root $(MHDIR)/deliver;chmod 5755 $(MHDIR)/deliver
218 # Sticky Bit:
219 -chmod 1755 $(BINDIR)/comp
220 -chmod 1755 $(BINDIR)/inc
221 -chmod 1755 $(BINDIR)/next
222 -chmod 1755 $(BINDIR)/prompter
223 -chmod 1755 $(BINDIR)/show
224
225 uninstall:
226 -rmdir $(MHTMP)
227 -cd $(MHDIR); rm -f $(MISC)
228 -cd $(BINDIR); rm -f $(CMDS) folders
229
230 strip:
231 -strip $(PROGS)
232
233 chmod:
234 chmod a+x $(PROGS)
235
236 pinstall:
237 -install -s comp $(BINDIR)/comp
238 -install -s file $(BINDIR)/file
239 -install -s folder $(BINDIR)/folder
240 -install -s forw $(BINDIR)/forw
241 -install -s inc $(BINDIR)/inc
242 -install -s mhl $(MHDIR)/mhl
243 -install -s mhpath $(BINDIR)/mhpath
244 -install -s next $(BINDIR)/next
245 -install -s pick $(BINDIR)/pick
246 -install -s prev $(BINDIR)/prev
247 -install -s prompter $(BINDIR)/prompter
248 -install -s repl $(BINDIR)/repl
249 -install -s rmf $(BINDIR)/rmf
250 -install -s rmm $(BINDIR)/rmm
251 -install -s scan $(BINDIR)/scan
252 -install -s send $(BINDIR)/send
253 -install -s show $(BINDIR)/show
254
255 distribution: clean rmprogs
256
257 rmprogs:
258 -rm -f $(PROGS)
259
260 clean:
261 -rm -f *.o *.lint
262
263 depend:
264 ../misc/depend.sh $(CFILES)
265
266
267 ###DEPENDENCIES Follow. Do not delete this line
268 adrformat.o: /usr/include/stdio.h
269 adrformat.o: ../mh.h
270 adrformat.o: ../adrparse.h
271 adrformat.o: /usr/include/ctype.h
272 adrparse.o: /usr/include/stdio.h
273 adrparse.o: /usr/include/whoami.h
274 adrparse.o: ../mh.h
275 adrparse.o: ../adrparse.h
276 adrparse.o: /usr/include/imp.h
277 adrparse.o: /usr/include/ctype.h
278 ali.o: ../mh.h
279 ali.o: /usr/include/stdio.h
280 ali.o: /usr/include/ctype.h
281 ali.o: /usr/include/pwd.h
282 ali.o: /usr/include/sys/types.h
283 comp.o: ../mh.h
284 comp.o: /usr/include/stdio.h
285 comp.o: /usr/include/strings.h
286 comp.o: /usr/include/signal.h
287 conflict.o: /usr/include/stdio.h
288 conflict.o: /usr/include/ctype.h
289 conflict.o: /usr/include/pwd.h
290 conflict.o: /usr/include/grp.h
291 conflict.o: /usr/include/sys/types.h
292 conflict.o: /usr/include/sys/dir.h
293 conflict.o: ../mh.h
294 conflict.o: /usr/include/mailsys.h
295 deliver.o: /usr/include/whoami.h
296 deliver.o: ../mh.h
297 deliver.o: ../adrparse.h
298 deliver.o: /usr/include/stdio.h
299 deliver.o: /usr/include/ctype.h
300 deliver.o: /usr/include/pwd.h
301 deliver.o: /usr/include/sys/types.h
302 deliver.o: /usr/include/sys/timeb.h
303 deliver.o: /usr/include/sys/stat.h
304 deliver.o: /usr/include/signal.h
305 deliver.o: /usr/include/strings.h
306 deliver.o: /usr/include/mailsys.h
307 deliver.o: /usr/include/time.h
308 dist.o: ../mh.h
309 dist.o: /usr/include/stdio.h
310 dist.o: /usr/include/signal.h
311 dist.o: /usr/include/strings.h
312 dist.o: /usr/include/sys/types.h
313 dist.o: /usr/include/sys/stat.h
314 file.o: ../mh.h
315 file.o: ../folder.h
316 file.o: /usr/include/stdio.h
317 folder.o: ../mh.h
318 folder.o: /usr/include/stdio.h
319 folder.o: /usr/include/sys/types.h
320 folder.o: /usr/include/sys/stat.h
321 folder.o: /usr/include/strings.h
322 forw.o: ../mh.h
323 forw.o: /usr/include/stdio.h
324 forw.o: /usr/include/signal.h
325 forw.o: /usr/include/strings.h
326 forw.o: /usr/include/sys/types.h
327 forw.o: /usr/include/sys/stat.h
328 inc.o: ../mh.h
329 inc.o: /usr/include/stdio.h
330 inc.o: /usr/include/sys/types.h
331 inc.o: /usr/include/sys/stat.h
332 inc.o: /usr/include/errno.h
333 inc.o: /usr/include/strings.h
334 inc.o: /usr/include/signal.h
335 inc.o: scansub.h
336 install-mh.o: ../mh.h
337 install-mh.o: /usr/include/stdio.h
338 install-mh.o: /usr/include/sys/types.h
339 install-mh.o: /usr/include/sys/stat.h
340 mail.o: ../mh.h
341 mail.o: /usr/include/stdio.h
342 mail.o: /usr/include/signal.h
343 mhl.o: /usr/include/ctype.h
344 mhl.o: /usr/include/signal.h
345 mhl.o: /usr/include/setjmp.h
346 mhl.o: /usr/include/sgtty.h
347 mhl.o: /usr/include/stdio.h
348 mhl.o: ../mh.h
349 mhpath.o: ../mh.h
350 mhpath.o: /usr/include/stdio.h
351 mhpath.o: /usr/include/strings.h
352 mhpath.o: /usr/include/ctype.h
353 news.o: ../mh.h
354 news.o: /usr/include/stdio.h
355 news.o: /usr/include/sys/types.h
356 news.o: /usr/include/sys/stat.h
357 news.o: /usr/include/sys/dir.h
358 news.o: /usr/include/strings.h
359 news.o: /usr/include/sys/timeb.h
360 next.o: ../mh.h
361 next.o: /usr/include/stdio.h
362 next.o: /usr/include/strings.h
363 pick.o: ../mh.h
364 pick.o: ../folder.h
365 pick.o: /usr/include/stdio.h
366 pick.o: /usr/include/signal.h
367 pick.o: /usr/include/sys/types.h
368 pick.o: /usr/include/sys/stat.h
369 prompter.o: ../mh.h
370 prompter.o: /usr/include/stdio.h
371 prompter.o: /usr/include/errno.h
372 prompter.o: /usr/include/sgtty.h
373 prompter.o: /usr/include/signal.h
374 prompter.o: /usr/include/strings.h
375 repl.o: /usr/include/whoami.h
376 repl.o: ../mh.h
377 repl.o: /usr/include/stdio.h
378 repl.o: /usr/include/signal.h
379 repl.o: /usr/include/strings.h
380 repl.o: /usr/include/sys/types.h
381 repl.o: /usr/include/sys/stat.h
382 repl.o: ../adrparse.h
383 rmail.o: ../mh.h
384 rmail.o: /usr/include/whoami.h
385 rmail.o: /usr/include/stdio.h
386 rmail.o: /usr/include/sys/types.h
387 rmail.o: /usr/include/sys/timeb.h
388 rmail.o: /usr/include/time.h
389 rmf.o: ../mh.h
390 rmf.o: /usr/include/stdio.h
391 rmf.o: /usr/include/strings.h
392 rmm.o: ../mh.h
393 rmm.o: /usr/include/stdio.h
394 rmm.o: /usr/include/strings.h
395 scan.o: ../mh.h
396 scan.o: /usr/include/stdio.h
397 scan.o: /usr/include/strings.h
398 scan.o: scansub.h
399 scansub.o: ../mh.h
400 scansub.o: /usr/include/whoami.h
401 scansub.o: /usr/include/stdio.h
402 scansub.o: /usr/include/ctype.h
403 scansub.o: /usr/include/time.h
404 scansub.o: ../adrparse.h
405 scansub.o: scansub.h
406 send.o: ../mh.h
407 send.o: /usr/include/stdio.h
408 send.o: /usr/include/sys/types.h
409 send.o: /usr/include/stat.h
410 send.o: /usr/include/strings.h
411 send.o: /usr/include/signal.h
412 show.o: ../mh.h
413 show.o: /usr/include/stdio.h
414 show.o: /usr/include/st