2 # Proprietary Rand Corporation, 1981.
3 # Further distribution of this software
4 # subject to the terms of the Rand
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
13 CFLAGS = -O $(A) # -m -DRAND
14 # The following two must match entry in ../Makefile
18 LOCKDIR = /usr/spool/locks
19 NETDIR = /usr/spool/netmail
22 STRINGS = ../strings/strings.a
26 # The 'dist' program is not ready yet, and so is not listed in the CMDS
27 # See also ../man/Makefile
55 PROGS = $(CMDS) $(MISC) rmail
89 $(CC) -o ali ali.o $(SUBS)
91 comp: comp.o $(SUBS) $(STRINGS)
92 $(CC) -o comp comp.o $(SUBS) $(STRINGS)
94 conflict: conflict.o $(SUBS)
95 $(CC) -o conflict conflict.o $(SUBS)
97 deliver: deliver.o adrparse.o adrformat.o $(SUBS) $(STRINGS)
98 $(CC) -o deliver deliver.o adrparse.o adrformat.o $(SUBS) $(STRINGS)\
101 dist: dist.o annotate.o $(SUBS) $(STRINGS)
102 $(CC) -o dist dist.o annotate.o $(SUBS) $(STRINGS)
104 file: file.o $(SUBS) $(STRINGS)
105 $(CC) -o file file.o $(SUBS) $(STRINGS)
107 folder: folder.o $(SUBS) $(STRINGS)
108 $(CC) -o folder folder.o $(SUBS) $(STRINGS)
110 forw: forw.o annotate.o $(SUBS) $(STRINGS)
111 $(CC) -o forw forw.o annotate.o $(SUBS) $(STRINGS)
113 inc: inc.o scansub.o $(SUBS) $(STRINGS)
114 $(CC) -o inc inc.o scansub.o $(SUBS) $(STRINGS)
116 install-mh: install-mh.o $(SUBS) $(STRINGS)
117 $(CC) -o install-mh install-mh.o $(SUBS) $(STRINGS)
119 mail: mail.o $(SUBS) $(STRINGS)
120 $(CC) -o mail mail.o $(SUBS) $(STRINGS)
122 mhpath: mhpath.o $(SUBS) $(STRINGS)
123 $(CC) -o mhpath mhpath.o $(SUBS) $(STRINGS)
125 mhl: mhl.o $(SUBS) $(STRINGS)
126 $(CC) -o mhl mhl.o $(SUBS) $(STRINGS)
128 news: news.o $(SUBS) $(STRINGS)
129 $(CC) -o news news.o $(SUBS) $(STRINGS)
131 next: nexthdr.o next.o $(SUBS) $(STRINGS)
132 $(CC) -o next nexthdr.o next.o $(SUBS) $(STRINGS)
134 pick: pick.o grep.o $(SUBS) $(STRINGS)
135 $(CC) -o pick pick.o grep.o $(SUBS) $(STRINGS)
137 prev: prevhdr.o next.o $(SUBS) $(STRINGS)
138 $(CC) -o prev prevhdr.o next.o $(SUBS) $(STRINGS)
140 prompter: prompter.o $(SUBS) $(STRINGS)
141 $(CC) -o prompter prompter.o $(SUBS) $(STRINGS)
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)
146 rmail: rmail.o $(SUBS) $(STRINGS)
147 $(CC) -o rmail rmail.o $(SUBS) $(STRINGS)
149 rmf: rmf.o $(SUBS) $(STRINGS)
150 $(CC) -o rmf rmf.o $(SUBS) $(STRINGS)
152 rmm: rmm.o $(SUBS) $(STRINGS)
153 $(CC) -o rmm rmm.o $(SUBS) $(STRINGS)
155 scan: scan.o scansub.o $(SUBS) $(STRINGS)
156 $(CC) -o scan scan.o scansub.o $(SUBS) $(STRINGS)
158 send: send.o $(SUBS) $(STRINGS)
159 $(CC) -o send send.o $(SUBS) $(STRINGS)
161 show: show.o $(SUBS) $(STRINGS)
162 $(CC) -o show show.o $(SUBS) $(STRINGS)
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
188 install: strip installprogs
195 -cd $(MHDIR); rm -f $(MISC)
197 echo Now become root and \'make installroot\'
201 -cd $(BINDIR); rm -f $(CMDS) folders
202 -cp $(CMDS) $(BINDIR)
203 -cd $(BINDIR); ln folder folders
206 -cd $(BINDIR); chmod a+x $(CMDS)
207 -cd $(MHDIR); chmod a+x $(MISC)
208 /etc/chown root $(NETDIR)
211 /etc/chown root $(LOCKDIR)
215 -chmod 6755 /bin/rmail
216 # Sticky Bit & Setgid: (?Setuid? PK)
217 -/etc/chown root $(MHDIR)/deliver;chmod 5755 $(MHDIR)/deliver
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
227 -cd $(MHDIR); rm -f $(MISC)
228 -cd $(BINDIR); rm -f $(CMDS) folders
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
255 distribution: clean rmprogs
264 ../misc/depend.sh $(CFILES)
267 ###DEPENDENCIES Follow. Do not delete this line
268 adrformat.o: /usr/include/stdio.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
275 adrparse.o: ../adrparse.h
276 adrparse.o: /usr/include/imp.h
277 adrparse.o: /usr/include/ctype.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
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
294 conflict.o: /usr/include/mailsys.h
295 deliver.o: /usr/include/whoami.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
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
316 file.o: /usr/include/stdio.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
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
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
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
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
350 mhpath.o: /usr/include/stdio.h
351 mhpath.o: /usr/include/strings.h
352 mhpath.o: /usr/include/ctype.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
361 next.o: /usr/include/stdio.h
362 next.o: /usr/include/strings.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
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
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
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
390 rmf.o: /usr/include/stdio.h
391 rmf.o: /usr/include/strings.h
393 rmm.o: /usr/include/stdio.h
394 rmm.o: /usr/include/strings.h
396 scan.o: /usr/include/stdio.h
397 scan.o: /usr/include/strings.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
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
413 show.o: /usr/include/stdio.h
414 show.o: /usr/include/st