8 date 93.02.26.19.01.31; author jromine; state Exp;
13 date 93.02.26.18.51.23; author jromine; state Exp;
18 date 92.11.12.22.47.24; author jromine; state Exp;
23 date 92.10.30.06.53.37; author jromine; state Exp;
28 date 92.10.28.18.03.08; author jromine; state Exp;
33 date 92.10.20.23.00.26; author jromine; state Exp;
38 date 92.05.12.22.07.43; author jromine; state Exp;
43 date 92.02.07.19.12.32; author jromine; state Exp;
48 date 92.02.04.17.43.29; author jromine; state Exp;
53 date 92.01.30.16.36.16; author jromine; state Exp;
58 date 92.01.29.00.18.53; author jromine; state Exp;
63 date 92.01.27.17.33.42; author jromine; state Exp;
68 date 90.04.08.22.00.14; author sources; state Exp;
73 date 90.04.08.20.23.18; author sources; state Exp;
78 date 90.04.05.15.18.10; author sources; state Exp;
83 date 90.03.21.22.21.35; author sources; state Exp;
88 date 90.03.15.16.11.41; author sources; state Exp;
93 date 90.03.12.11.29.03; author sources; state Exp;
98 date 90.02.23.17.55.46; author sources; state Exp;
103 date 90.02.21.16.59.43; author sources; state Exp;
108 date 90.02.06.12.51.25; author sources; state Exp;
113 date 89.11.17.15.56.41; author sources; state Exp;
118 date 89.11.17.15.44.20; author sources; state Exp;
129 @add NORUSERPASS for 386BSD
132 @##############################################################################
133 # Instructions to Make, for compilation of MH modules
136 # @@(#)$Id: sbr,v 2.20 1993/02/26 18:51:23 jromine Exp jromine $
137 ##############################################################################
139 OPTIONS = @@(MHOPTIONS)
149 LFLAGS = -bhu $(OPTIONS)
160 LIBS = shared libmh.a libmh.so $(LIBSA)
161 SLIBVER = @@(SLIBVER)
162 SLIBDIR = $(DESTDIR)@@(SLIBDIR)
168 CFILES = add.c adios.c admonish.c addrsbr.c advertise.c advise.c \
169 ambigsw.c atooi.c brkstring.c closefds.c concat.c copy.c \
170 copyip.c cpydata.c cpydgst.c discard.c done.c fdcompare.c \
171 gans.c getans.c getanswer.c getcpy.c help.c fmtcompile.c \
172 formataddr.c formatsbr.c m_atoi.c m_backup.c m_convert.c \
173 m_delete.c m_draft.c m_find.c m_fmsg.c m_foil.c m_getdefs.c \
174 m_getfld.c m_getfolder.c m_gmprot.c m_gmsg.c m_maildir.c \
175 m_name.c m_readefs.c m_remsg.c m_replace.c m_scratch.c \
176 m_seq.c m_seqbits.c m_seqflag.c m_seqnew.c m_setcur.c \
177 m_setseq.c m_setvis.c m_sync.c m_tmpfil.c m_update.c \
178 makedir.c path.c peekc.c pidwait.c pidstatus.c \
179 printsw.c push.c putenv.c pwd.c refile.c remdir.c r1bindex.c \
183 showfile.c smatch.c sprintb.c ssequal.c strindex.c trimcpy.c \
184 uleq.c uprf.c vfgets.c formatdef.c m_msgdef.c
187 OFILES = add.o adios.o admonish.o addrsbr.o advertise.o advise.o \
188 ambigsw.o atooi.o brkstring.o closefds.o concat.o copy.o \
189 copyip.o cpydata.o cpydgst.o discard.o done.o fdcompare.o \
190 gans.o getans.o getanswer.o getcpy.o help.o fmtcompile.o \
191 formataddr.o formatsbr.o m_atoi.o m_backup.o m_convert.o \
192 m_delete.o m_draft.o m_find.o m_fmsg.o m_foil.o m_getdefs.o \
193 m_getfld.o m_getfolder.o m_gmprot.o m_gmsg.o m_maildir.o \
194 m_name.o m_readefs.o m_remsg.o m_replace.o m_scratch.o \
195 m_seq.o m_seqbits.o m_seqflag.o m_seqnew.o m_setcur.o \
196 m_setseq.o m_setvis.o m_sync.o m_tmpfil.o m_update.o \
197 makedir.o path.o peekc.o pidwait.o pidstatus.o \
198 printsw.o push.o putenv.o pwd.o refile.o remdir.o r1bindex.o \
202 showfile.o smatch.o sprintb.o ssequal.o strindex.o trimcpy.o \
203 uleq.o uprf.o vfgets.o formatdef.o m_msgdef.o
206 ODEFS = formatdef.o m_msgdef.o
210 ##############################################################################
212 ##############################################################################
216 -rm -f $@@ shared/$@@
217 $(CC) $(CFLAGS) -c $(SLFLAGS) $*.c
221 $(CC) $(CFLAGS) -c $*.c
231 ##############################################################################
232 # Generate MH subroutine library
233 ##############################################################################
240 ar r $@@ $(OFILES); ranlib $@@
243 ar r $@@ `lorder $(OFILES) | tsort`
246 -@@echo "MH library built normally"
252 (cd shared; ld -o ../$@@ -assert pure-text $(OFILES))
255 (cd shared; ld -G -o ../$@@ -h $@@.$(SLIBVER) $(OFILES))
257 -@@rm -f $@@.$(SLIBVER)
258 ln $@@ $@@.$(SLIBVER)
260 -@@echo "MH shared library built normally"
266 ar r $@@ $(ODEFS); ranlib $@@
269 ar r $@@ `lorder $(ODEFS) | tsort`
271 -@@rm -f $@@.$(SLIBVER)
272 ln $@@ $@@.$(SLIBVER)
274 -@@echo "MH data interface description built normally"
277 shared:; @@if [ -d shared ]; then exit 0; else set -x; mkdir shared; fi
280 ##############################################################################
281 # Miscellaneous tasks
282 ##############################################################################
285 inst-lib: libmh.so $(LIBSA)
286 -rm -f $(SLIBDIR)/libmh.so.$(SLIBVER)
287 cp libmh.so.$(SLIBVER) $(SLIBDIR)/libmh.so.$(SLIBVER)
288 -@@chmod $(PGMPROT) $(SLIBDIR)/libmh.so.$(SLIBVER)
289 -@@ls -l $(SLIBDIR)/libmh.so.*
290 -@@echo "Shared library installed normally"
293 -rm -f $(SLIBDIR)/libmh.sa.$(SLIBVER)
294 cp libmh.sa.$(SLIBVER) $(SLIBDIR)/libmh.sa.$(SLIBVER)
295 -@@chmod $(PGMPROT) $(SLIBDIR)/libmh.sa.$(SLIBVER)
297 cd $(SLIBDIR); ranlib libmh.sa.$(SLIBVER)
299 -@@ls -l $(SLIBDIR)/libmh.sa.*
300 -@@echo "Data interface description installed normally"
308 lint:; $(LINT) $(LFLAGS) $(CFILES) $(LLIBS)
310 unconfig: distribution
323 unclean:; -rm -f zlibmh.* _* :* core eddep makedep
326 ##############################################################################
327 # MODIFICATIONS -- Adding a new routine (e.g., pickle)
328 ##############################################################################
331 # Add any new .c files to CFILES
332 # Add any new .o files to OFILES
335 # Under the "Dependencies" section, add a line for pickle.o
336 # pickle.o: ../h/mh.h
338 # If other includes are read, modify this rule to reflect this
339 # Of course, if pickle.c doesn't include ../h/mh.h (or any
340 # other includes), you can leave this line out altogether
343 ##############################################################################
345 ##############################################################################
349 depend:; for m in $(MODULES); do ( \
350 i=`basename $$m .c`; \
351 echo $$i.o: $$i.c >> makedep; \
352 grep '^#[ ]*include' $$i.c | \
353 sed -e 's,[^"]*"/\([^"]*\)".*,'$$i'.o: /\1,' \
354 -e 's,[^"]*"\([^"]*\)".*,'$$i'.o: \1,' \
355 -e 's,[^<]*<\(.*\)>.*,#'$$i'.o: /usr/include/\1,' \
358 echo '/^# DO NOT DELETE THIS LINE/+2,$$d' > eddep
359 echo '$$r makedep' >> eddep
361 cp Makefile _Makefile
362 ed - Makefile < eddep
364 echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
365 echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
367 # DO NOT DELETE THIS LINE
368 # DEPENDENCIES START HERE
371 #add.o: /usr/include/stdio.h
374 admonish.o: admonish.c
375 admonish.o: ../h/mh.h
378 addrsbr.o: ../h/addrsbr.h
379 addrsbr.o: ../zotnet/mf.h
380 #addrsbr.o: /usr/include/stdio.h
381 #addrsbr.o: /usr/include/ctype.h
382 advertise.o: advertise.c
383 advertise.o: ../h/mh.h
384 #advertise.o: /usr/include/stdio.h
385 #advertise.o: /usr/include/sys/types.h
386 #advertise.o: /usr/include/sys/uio.h
391 #ambigsw.o: /usr/include/stdio.h
393 brkstring.o: brkstring.c
394 brkstring.o: ../h/mh.h
395 closefds.o: closefds.c
396 closefds.o: ../h/mh.h
397 #closefds.o: /usr/include/stdio.h
400 #concat.o: /usr/include/stdio.h
401 #concat.o: /usr/include/varargs.h
406 #cpydata.o: /usr/include/stdio.h
409 #cpydgst.o: /usr/include/stdio.h
412 #discard.o: /usr/include/stdio.h
413 #discard.o: /usr/include/sgtty.h
414 #discard.o: /usr/include/sys/types.h
415 #discard.o: /usr/include/termio.h
416 #discard.o: /usr/include/sys/ioctl.h
419 fdcompare.o: fdcompare.c
420 fdcompare.o: ../h/mh.h
421 #fdcompare.o: /usr/include/stdio.h
424 #gans.o: /usr/include/stdio.h
427 #getans.o: /usr/include/setjmp.h
428 #getans.o: /usr/include/signal.h
429 #getans.o: /usr/include/stdio.h
430 getanswer.o: getanswer.c
431 getanswer.o: ../h/mh.h
432 #getanswer.o: /usr/include/stdio.h
435 #getcpy.o: /usr/include/stdio.h
438 #help.o: /usr/include/stdio.h
439 formatsbr.o: formatsbr.c
440 formatsbr.o: ../h/mh.h
441 formatsbr.o: ../h/addrsbr.h
442 formatsbr.o: ../h/formatsbr.h
443 formatsbr.o: ../zotnet/tws.h
444 formatsbr.o: ../h/fmtcompile.h
445 #formatsbr.o: /usr/include/ctype.h
446 #formatsbr.o: /usr/include/stdio.h
447 #formatsbr.o: /usr/include/sys/types.h
448 #formatsbr.o: /usr/include/sys/stat.h
449 fmtcompile.o: fmtcompile.c
450 fmtcompile.o: ../h/mh.h
451 fmtcompile.o: ../h/addrsbr.h
452 fmtcompile.o: ../h/formatsbr.h
453 fmtcompile.o: ../zotnet/tws.h
454 fmtcompile.o: ../h/fmtcompile.h
455 #fmtcompile.o: /usr/include/ctype.h
456 #fmtcompile.o: /usr/include/stdio.h
457 #fmtcompile.o: /usr/include/sys/types.h
458 #fmtcompile.o: /usr/include/sys/stat.h
459 formataddr.o: formataddr.c
460 formataddr.o: ../h/mh.h
461 formataddr.o: ../h/addrsbr.h
462 formataddr.o: ../h/formatsbr.h
463 #formataddr.o: /usr/include/ctype.h
464 #formataddr.o: /usr/include/stdio.h
467 m_backup.o: m_backup.c
468 m_backup.o: ../h/mh.h
469 #m_backup.o: /usr/include/stdio.h
470 m_convert.o: m_convert.c
471 m_convert.o: ../h/mh.h
472 #m_convert.o: /usr/include/stdio.h
473 #m_convert.o: /usr/include/ctype.h
474 m_delete.o: m_delete.c
475 m_delete.o: ../h/mh.h
476 #m_delete.o: /usr/include/stdio.h
479 #m_draft.o: /usr/include/errno.h
480 #m_draft.o: /usr/include/stdio.h
481 #m_draft.o: /usr/include/sys/types.h
482 #m_draft.o: /usr/include/sys/stat.h
485 #m_find.o: /usr/include/stdio.h
488 #m_fmsg.o: /usr/include/stdio.h
491 #m_foil.o: /usr/include/stdio.h
492 m_getdefs.o: m_getdefs.c
493 m_getdefs.o: ../h/mh.h
494 #m_getdefs.o: /usr/include/stdio.h
495 #m_getdefs.o: /usr/include/errno.h
496 #m_getdefs.o: /usr/include/sys/types.h
497 #m_getdefs.o: /usr/include/sys/stat.h
498 #m_getdefs.o: /usr/include/pwd.h
499 m_getfld.o: m_getfld.c
500 m_getfld.o: ../h/mh.h
501 #m_getfld.o: /usr/include/stdio.h
502 m_getfld.o: ../zotnet/mts.h
503 #m_getfld.o: /usr/include/ctype.h
504 m_getfolder.o: m_getfolder.c
505 m_getfolder.o: ../h/mh.h
506 #m_getfolder.o: /usr/include/stdio.h
507 m_gmprot.o: m_gmprot.c
508 m_gmprot.o: ../h/mh.h
509 #m_gmprot.o: /usr/include/stdio.h
512 m_gmsg.o: ../h/local.h
513 #m_gmsg.o: /usr/include/stdio.h
514 #m_gmsg.o: /usr/include/sys/types.h
515 #m_gmsg.o: /usr/include/sys/stat.h
516 #m_gmsg.o: /usr/include/ndir.h
517 #m_gmsg.o: /usr/include/dir.h
518 #m_gmsg.o: /usr/include/sys/dir.h
519 m_maildir.o: m_maildir.c
520 m_maildir.o: ../h/mh.h
521 #m_maildir.o: /usr/include/stdio.h
524 #m_name.o: /usr/include/stdio.h
525 m_readefs.o: m_readefs.c
526 m_readefs.o: ../h/mh.h
527 #m_readefs.o: /usr/include/stdio.h
530 #m_remsg.o: /usr/include/stdio.h
531 m_replace.o: m_replace.c
532 m_replace.o: ../h/mh.h
533 #m_replace.o: /usr/include/stdio.h
534 m_scratch.o: m_scratch.c
535 m_scratch.o: ../h/mh.h
536 #m_scratch.o: /usr/include/stdio.h
539 #m_seq.o: /usr/include/stdio.h
540 m_seqbits.o: m_seqbits.c
541 m_seqbits.o: ../h/mh.h
542 #m_seqbits.o: /usr/include/stdio.h
543 m_seqflag.o: m_seqflag.c
544 m_seqflag.o: ../h/mh.h
545 m_seqnew.o: m_seqnew.c
546 m_seqnew.o: ../h/mh.h
547 #m_seqnew.o: /usr/include/ctype.h
548 #m_seqnew.o: /usr/include/stdio.h
549 m_setcur.o: m_setcur.c
550 m_setcur.o: ../h/mh.h
551 #m_setcur.o: /usr/include/stdio.h
552 m_setseq.o: m_setseq.c
553 m_setseq.o: ../h/mh.h
554 #m_setseq.o: /usr/include/stdio.h
555 m_setvis.o: m_setvis.c
556 m_setvis.o: ../h/mh.h
557 #m_setvis.o: /usr/include/stdio.h
560 #m_sync.o: /usr/include/stdio.h
561 m_tmpfil.o: m_tmpfil.c
562 m_tmpfil.o: ../h/mh.h
563 #m_tmpfil.o: /usr/include/stdio.h
564 m_update.o: m_update.c
565 m_update.o: ../h/mh.h
566 #m_update.o: /usr/include/stdio.h
567 #m_update.o: /usr/include/signal.h
570 #makedir.o: /usr/include/stdio.h
573 #path.o: /usr/include/stdio.h
576 #peekc.o: /usr/include/stdio.h
579 #pidwait.o: /usr/include/signal.h
580 #pidwait.o: /usr/include/stdio.h
581 #pidwait.o: /usr/include/sys/wait.h
582 pidstatus.o: pidstatus.c
583 pidstatus.o: ../h/mh.h
584 #pidstatus.o: /usr/include/signal.h
585 #pidstatus.o: /usr/include/stdio.h
590 #push.o: /usr/include/stdio.h
591 #push.o: /usr/include/signal.h
594 #putenv.o: /usr/include/stdio.h
598 #pwd.o: /usr/include/stdio.h
599 #pwd.o: /usr/include/sys/types.h
600 #pwd.o: /usr/include/sys/stat.h
601 #pwd.o: /usr/include/ndir.h
602 #pwd.o: /usr/include/dir.h
605 #refile.o: /usr/include/stdio.h
608 #remdir.o: /usr/include/stdio.h
609 r1bindex.o: r1bindex.c
610 showfile.o: showfile.c
611 showfile.o: ../h/mh.h
612 #showfile.o: /usr/include/stdio.h
617 #sprintb.o: /usr/include/stdio.h
619 strindex.o: strindex.c
622 #trimcpy.o: /usr/include/ctype.h
623 #trimcpy.o: /usr/include/stdio.h
628 #vfgets.o: /usr/include/stdio.h
629 # DEPENDENCIES MUST END AT END OF FILE
630 # IF YOU PUT STUFF HERE IT WILL GO AWAY
636 @use DESTDIR when installing lib
641 # @@(#)$Id: sbr,v 2.19 1992/11/12 22:47:24 jromine Exp jromine $
654 # @@(#)$Id: sbr,v 2.18 1992/10/30 06:53:37 jromine Exp jromine $
657 SLIBDIR = @@(SLIBDIR)
663 @for ranlib libmh.sa, cd to slibdir first
668 # @@(#)$Id: sbr,v 2.17 1992/10/28 18:03:08 jromine Exp jromine $
672 $(CC) $(CFLAGS) -c -pic $*.c
675 (cd shared; ls -G -o ../$@@ -h $@@.$(SLIBVER) $(OFILES))
681 @ranlib libmh.sa after installation
686 # @@(#)$Id: sbr,v 2.16 1992/10/20 23:00:26 jromine Exp jromine $
689 ranlib $(SLIBDIR)/libmh.sa.$(SLIBVER)
695 @move "rm -f tws/tws.h" from sbr to zotnet Makefile (error)
700 # @@(#)$Id: sbr,v 2.15 1992/05/12 22:07:43 jromine Exp jromine $
707 @fixup duplicate tws.h files
712 # @@(#)$Id: sbr,v 2.14 1992/02/07 19:12:32 jromine Exp jromine $
721 @add SYS5 shared libs
726 # @@(#)$Id: sbr,v 2.13 1992/02/04 17:43:29 jromine Exp jromine $
733 @move sbr/m_whatnow.c to uip/whatnowproc.c
739 # @@(#)$Id: sbr,v 2.12 1992/01/30 16:36:16 jromine Exp jromine $
742 LIBS = shared libmh.a libmh.so libmh.sa
749 inst-lib: libmh.so libmh.sa
762 # @@(#)$Id: sbr,v 2.11 1992/01/29 00:18:53 jromine Exp jromine $
765 m_whatnow.c makedir.c path.c peekc.c pidwait.c pidstatus.c \
768 m_whatnow.o makedir.o path.o peekc.o pidwait.o pidstatus.o \
770 m_whatnow.o: m_whatnow.c
771 m_whatnow.o: ../h/mh.h
772 #m_whatnow.o: /usr/include/stdio.h
783 # @@(#)$Id: sbr,v 2.10 1992/01/27 17:33:42 jromine Exp jromine $
798 # @@(#)$Id: sbr,v 2.9 1990/04/08 22:00:14 sources Exp jromine $
801 cp $(LIB) $(SLIBDIR)/libmh.so.$(SLIBVER)
804 cp $(LIB) $(SLIBDIR)/$(LIB).$(SLIBVER)
810 @remove version for "make distribution"
815 # @@(#)$Id: sbr,v 2.8 90/04/08 20:23:18 sources Exp Locker: sources $
824 uleq.c uprf.c vfgets.c
828 uleq.o uprf.o vfgets.o
834 .c.o:; $(CC) $(CFLAGS) -c $*.c -pic
838 .c.o:; $(CC) $(CFLAGS) -c $*.c
855 -@@rm -f $@@.`cat version`
856 ln $@@ $@@.`cat version`
862 @@/bin/sh version.sh @@(MHRELEASE)
867 -rm -f $(SLIBDIR)/$(LIB)
868 cp $(LIB) $(SLIBDIR)/$(LIB).`cat version`
869 -@@chmod $(PGMPROT) $(SLIBDIR)/$(LIB).`cat version`
870 -@@ls -l $(SLIBDIR)/$(LIB)*
871 -@@echo "Library installed normally"
877 unclean:; -rm -f z$(LIB) _* :* core eddep makedep
883 @*** empty log message ***
888 # @@(#)$Id: sbr,v 2.7 90/04/05 15:18:10 sources Exp Locker: sources $
927 @remove -O (put in mhconfig)
932 install -m 755 $(LIB).`cat version` $(SLIBDIR)
933 -@@ls $(SLIBDIR)/$(LIB)*
945 CFLAGS = -O $(OPTIONS)
951 @make unconfig changes
960 -@@echo "Updating version"
972 unconfig distribution: clean
987 @changes for SUN40 shared libraries and NNTP under bbc