📄 sbr
字号:
############################################################################### Instructions to Make, for compilation of MH modules## @(MHWARNING)# @(#)$Id: sbr,v 2.21 1993/02/26 19:01:31 jromine Exp $##############################################################################OPTIONS = @(MHOPTIONS)CC = @(MHCOMPILER)@BEGIN: OPTIMCFLAGS = $(OPTIONS)@END: OPTIM@BEGIN: DEBUGCFLAGS = $(OPTIONS)@END: DEBUGLINT = lintLFLAGS = -bhu $(OPTIONS)LLIBS =@BEGIN: STDLIBLIBS = libmh.a@END: STDLIB@BEGIN: SHAREDLIB@BEGIN: SUN4SHLIBLIBSA = libmh.sa@END: SUN4SHLIBLIBS = shared libmh.a libmh.so $(LIBSA)SLIBVER = @(SLIBVER)SLIBDIR = $(DESTDIR)@(SLIBDIR)SLFLAGS= @(SLFLAGS)@END: SHAREDLIBPGMPROT = 0755CFILES = add.c adios.c admonish.c addrsbr.c advertise.c advise.c \ ambigsw.c atooi.c brkstring.c closefds.c concat.c copy.c \ copyip.c cpydata.c cpydgst.c discard.c done.c fdcompare.c \ gans.c getans.c getanswer.c getcpy.c help.c fmtcompile.c \ formataddr.c formatsbr.c m_atoi.c m_backup.c m_convert.c \ m_delete.c m_draft.c m_find.c m_fmsg.c m_foil.c m_getdefs.c \ m_getfld.c m_getfolder.c m_gmprot.c m_gmsg.c m_maildir.c \ m_name.c m_readefs.c m_remsg.c m_replace.c m_scratch.c \ m_seq.c m_seqbits.c m_seqflag.c m_seqnew.c m_setcur.c \ m_setseq.c m_setvis.c m_sync.c m_tmpfil.c m_update.c \ makedir.c path.c peekc.c pidwait.c pidstatus.c \ printsw.c push.c putenv.c pwd.c refile.c remdir.c r1bindex.c \@BEGIN: NORUSERPASS ruserpass.c \@END: NORUSERPASS showfile.c smatch.c sprintb.c ssequal.c strindex.c trimcpy.c \ uleq.c uprf.c vfgets.c formatdef.c m_msgdef.cOFILES = add.o adios.o admonish.o addrsbr.o advertise.o advise.o \ ambigsw.o atooi.o brkstring.o closefds.o concat.o copy.o \ copyip.o cpydata.o cpydgst.o discard.o done.o fdcompare.o \ gans.o getans.o getanswer.o getcpy.o help.o fmtcompile.o \ formataddr.o formatsbr.o m_atoi.o m_backup.o m_convert.o \ m_delete.o m_draft.o m_find.o m_fmsg.o m_foil.o m_getdefs.o \ m_getfld.o m_getfolder.o m_gmprot.o m_gmsg.o m_maildir.o \ m_name.o m_readefs.o m_remsg.o m_replace.o m_scratch.o \ m_seq.o m_seqbits.o m_seqflag.o m_seqnew.o m_setcur.o \ m_setseq.o m_setvis.o m_sync.o m_tmpfil.o m_update.o \ makedir.o path.o peekc.o pidwait.o pidstatus.o \ printsw.o push.o putenv.o pwd.o refile.o remdir.o r1bindex.o \@BEGIN: NORUSERPASS ruserpass.o \@END: NORUSERPASS showfile.o smatch.o sprintb.o ssequal.o strindex.o trimcpy.o \ uleq.o uprf.o vfgets.o formatdef.o m_msgdef.o@BEGIN: SHAREDLIBODEFS = formatdef.o m_msgdef.o@END: SHAREDLIB@BEGIN: OPTIM############################################################################### Generation Rules##############################################################################.c.o:@BEGIN: SHAREDLIB -rm -f $@ shared/$@ $(CC) $(CFLAGS) -c $(SLFLAGS) $*.c mv $@ shared/$@ -rm -f $@@END: SHAREDLIB $(CC) $(CFLAGS) -c $*.c@BEGIN: NEWLOAD -ld -x -r $@ mv a.out $@@END: NEWLOAD@BEGIN: OLDLOAD cc -s -o $@@END: OLDLOAD@END: OPTIM############################################################################### Generate MH subroutine library##############################################################################all: $(LIBS)libmh.a: $(OFILES) -mv $@ z$@@BEGIN: RANLIB ar r $@ $(OFILES); ranlib $@@END: RANLIB@BEGIN: LORDER ar r $@ `lorder $(OFILES) | tsort`@END: LORDER -@ls -l $@ -@echo "MH library built normally"@BEGIN: SHAREDLIBlibmh.so: $(OFILES) -mv -f $@ z$@@BEGIN: SUN4SHLIB (cd shared; ld -o ../$@ -assert pure-text $(OFILES))@END: SUN4SHLIB@BEGIN: SYS5SHLIB (cd shared; ld -G -o ../$@ -h $@.$(SLIBVER) $(OFILES))@END: SYS5SHLIB -@rm -f $@.$(SLIBVER) ln $@ $@.$(SLIBVER) -@ls -l $@* -@echo "MH shared library built normally"@BEGIN: SUN4SHLIBlibmh.sa: $(ODEFS) -mv $@ z$@@BEGIN: RANLIB ar r $@ $(ODEFS); ranlib $@@END: RANLIB@BEGIN: LORDER ar r $@ `lorder $(ODEFS) | tsort`@END: LORDER -@rm -f $@.$(SLIBVER) ln $@ $@.$(SLIBVER) -@ls -l $@* -@echo "MH data interface description built normally"@END: SUN4SHLIBshared:; @if [ -d shared ]; then exit 0; else set -x; mkdir shared; fi@END: SHAREDLIB############################################################################### Miscellaneous tasks##############################################################################@BEGIN: SHAREDLIBinst-lib: libmh.so $(LIBSA) -rm -f $(SLIBDIR)/libmh.so.$(SLIBVER) cp libmh.so.$(SLIBVER) $(SLIBDIR)/libmh.so.$(SLIBVER) -@chmod $(PGMPROT) $(SLIBDIR)/libmh.so.$(SLIBVER) -@ls -l $(SLIBDIR)/libmh.so.* -@echo "Shared library installed normally" -@echo ""@BEGIN: SUN4SHLIB -rm -f $(SLIBDIR)/libmh.sa.$(SLIBVER) cp libmh.sa.$(SLIBVER) $(SLIBDIR)/libmh.sa.$(SLIBVER) -@chmod $(PGMPROT) $(SLIBDIR)/libmh.sa.$(SLIBVER)@BEGIN: RANLIB cd $(SLIBDIR); ranlib libmh.sa.$(SLIBVER)@END: RANLIB -@ls -l $(SLIBDIR)/libmh.sa.* -@echo "Data interface description installed normally" -@echo ""@END: SUN4SHLIB@END: SHAREDLIB@BEGIN: STDLIBinst-lib:;@END: STDLIBlint:; $(LINT) $(LFLAGS) $(CFILES) $(LLIBS)unconfig: distribution -rm -f Makefile -rm -rf shareddistribution: clean -rm -f versionclean: unclean -rm -f *.o libmh.*@BEGIN: SHAREDLIB -rm -f shared/*.o@END: SHAREDLIBunclean:; -rm -f zlibmh.* _* :* core eddep makedep############################################################################### MODIFICATIONS -- Adding a new routine (e.g., pickle)################################################################################ Add any new .c files to CFILES# Add any new .o files to OFILES### Under the "Dependencies" section, add a line for pickle.o# pickle.o: ../h/mh.h## If other includes are read, modify this rule to reflect this# Of course, if pickle.c doesn't include ../h/mh.h (or any# other includes), you can leave this line out altogether############################################################################### Dependencies##############################################################################MODULES = $(CFILES)depend:; for m in $(MODULES); do ( \ i=`basename $$m .c`; \ echo $$i.o: $$i.c >> makedep; \ grep '^#[ ]*include' $$i.c | \ sed -e 's,[^"]*"/\([^"]*\)".*,'$$i'.o: /\1,' \ -e 's,[^"]*"\([^"]*\)".*,'$$i'.o: \1,' \ -e 's,[^<]*<\(.*\)>.*,#'$$i'.o: /usr/include/\1,' \ >> makedep \ ); done echo '/^# DO NOT DELETE THIS LINE/+2,$$d' > eddep echo '$$r makedep' >> eddep echo 'w' >> eddep cp Makefile _Makefile ed - Makefile < eddep rm eddep makedep echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile# DO NOT DELETE THIS LINE# DEPENDENCIES START HEREadd.o: add.cadd.o: ../h/mh.h#add.o: /usr/include/stdio.hadios.o: adios.cadios.o: ../h/mh.hadmonish.o: admonish.cadmonish.o: ../h/mh.haddrsbr.o: addrsbr.caddrsbr.o: ../h/mh.haddrsbr.o: ../h/addrsbr.haddrsbr.o: ../zotnet/mf.h#addrsbr.o: /usr/include/stdio.h#addrsbr.o: /usr/include/ctype.hadvertise.o: advertise.cadvertise.o: ../h/mh.h#advertise.o: /usr/include/stdio.h#advertise.o: /usr/include/sys/types.h#advertise.o: /usr/include/sys/uio.hadvise.o: advise.cadvise.o: ../h/mh.hambigsw.o: ambigsw.cambigsw.o: ../h/mh.h#ambigsw.o: /usr/include/stdio.hatooi.o: atooi.cbrkstring.o: brkstring.cbrkstring.o: ../h/mh.hclosefds.o: closefds.cclosefds.o: ../h/mh.h#closefds.o: /usr/include/stdio.hconcat.o: concat.cconcat.o: ../h/mh.h#concat.o: /usr/include/stdio.h#concat.o: /usr/include/varargs.hcopy.o: copy.ccopyip.o: copyip.ccpydata.o: cpydata.ccpydata.o: ../h/mh.h#cpydata.o: /usr/include/stdio.hcpydgst.o: cpydgst.ccpydgst.o: ../h/mh.h#cpydgst.o: /usr/include/stdio.hdiscard.o: discard.cdiscard.o: ../h/mh.h#discard.o: /usr/include/stdio.h#discard.o: /usr/include/sgtty.h#discard.o: /usr/include/sys/types.h#discard.o: /usr/include/termio.h#discard.o: /usr/include/sys/ioctl.hdone.o: done.cdone.o: ../h/mh.hfdcompare.o: fdcompare.cfdcompare.o: ../h/mh.h#fdcompare.o: /usr/include/stdio.hgans.o: gans.cgans.o: ../h/mh.h#gans.o: /usr/include/stdio.hgetans.o: getans.cgetans.o: ../h/mh.h#getans.o: /usr/include/setjmp.h#getans.o: /usr/include/signal.h#getans.o: /usr/include/stdio.hgetanswer.o: getanswer.cgetanswer.o: ../h/mh.h#getanswer.o: /usr/include/stdio.hgetcpy.o: getcpy.cgetcpy.o: ../h/mh.h#getcpy.o: /usr/include/stdio.hhelp.o: help.chelp.o: ../h/mh.h#help.o: /usr/include/stdio.hformatsbr.o: formatsbr.cformatsbr.o: ../h/mh.hformatsbr.o: ../h/addrsbr.hformatsbr.o: ../h/formatsbr.hformatsbr.o: ../zotnet/tws.hformatsbr.o: ../h/fmtcompile.h#formatsbr.o: /usr/include/ctype.h#formatsbr.o: /usr/include/stdio.h#formatsbr.o: /usr/include/sys/types.h#formatsbr.o: /usr/include/sys/stat.hfmtcompile.o: fmtcompile.cfmtcompile.o: ../h/mh.hfmtcompile.o: ../h/addrsbr.hfmtcompile.o: ../h/formatsbr.hfmtcompile.o: ../zotnet/tws.hfmtcompile.o: ../h/fmtcompile.h#fmtcompile.o: /usr/include/ctype.h#fmtcompile.o: /usr/include/stdio.h#fmtcompile.o: /usr/include/sys/types.h#fmtcompile.o: /usr/include/sys/stat.hformataddr.o: formataddr.cformataddr.o: ../h/mh.hformataddr.o: ../h/addrsbr.hformataddr.o: ../h/formatsbr.h#formataddr.o: /usr/include/ctype.h#formataddr.o: /usr/include/stdio.hm_atoi.o: m_atoi.cm_atoi.o: ../h/mh.hm_backup.o: m_backup.cm_backup.o: ../h/mh.h#m_backup.o: /usr/include/stdio.hm_convert.o: m_convert.cm_convert.o: ../h/mh.h#m_convert.o: /usr/include/stdio.h#m_convert.o: /usr/include/ctype.hm_delete.o: m_delete.cm_delete.o: ../h/mh.h#m_delete.o: /usr/include/stdio.hm_draft.o: m_draft.cm_draft.o: ../h/mh.h#m_draft.o: /usr/include/errno.h#m_draft.o: /usr/include/stdio.h#m_draft.o: /usr/include/sys/types.h#m_draft.o: /usr/include/sys/stat.hm_find.o: m_find.cm_find.o: ../h/mh.h#m_find.o: /usr/include/stdio.hm_fmsg.o: m_fmsg.cm_fmsg.o: ../h/mh.h#m_fmsg.o: /usr/include/stdio.hm_foil.o: m_foil.cm_foil.o: ../h/mh.h#m_foil.o: /usr/include/stdio.hm_getdefs.o: m_getdefs.cm_getdefs.o: ../h/mh.h#m_getdefs.o: /usr/include/stdio.h#m_getdefs.o: /usr/include/errno.h#m_getdefs.o: /usr/include/sys/types.h#m_getdefs.o: /usr/include/sys/stat.h#m_getdefs.o: /usr/include/pwd.hm_getfld.o: m_getfld.cm_getfld.o: ../h/mh.h#m_getfld.o: /usr/include/stdio.hm_getfld.o: ../zotnet/mts.h#m_getfld.o: /usr/include/ctype.hm_getfolder.o: m_getfolder.cm_getfolder.o: ../h/mh.h#m_getfolder.o: /usr/include/stdio.hm_gmprot.o: m_gmprot.cm_gmprot.o: ../h/mh.h#m_gmprot.o: /usr/include/stdio.hm_gmsg.o: m_gmsg.cm_gmsg.o: ../h/mh.hm_gmsg.o: ../h/local.h#m_gmsg.o: /usr/include/stdio.h#m_gmsg.o: /usr/include/sys/types.h#m_gmsg.o: /usr/include/sys/stat.h#m_gmsg.o: /usr/include/ndir.h#m_gmsg.o: /usr/include/dir.h#m_gmsg.o: /usr/include/sys/dir.hm_maildir.o: m_maildir.cm_maildir.o: ../h/mh.h#m_maildir.o: /usr/include/stdio.hm_name.o: m_name.cm_name.o: ../h/mh.h#m_name.o: /usr/include/stdio.hm_readefs.o: m_readefs.cm_readefs.o: ../h/mh.h#m_readefs.o: /usr/include/stdio.hm_remsg.o: m_remsg.cm_remsg.o: ../h/mh.h#m_remsg.o: /usr/include/stdio.hm_replace.o: m_replace.cm_replace.o: ../h/mh.h#m_replace.o: /usr/include/stdio.hm_scratch.o: m_scratch.cm_scratch.o: ../h/mh.h#m_scratch.o: /usr/include/stdio.hm_seq.o: m_seq.cm_seq.o: ../h/mh.h#m_seq.o: /usr/include/stdio.hm_seqbits.o: m_seqbits.cm_seqbits.o: ../h/mh.h#m_seqbits.o: /usr/include/stdio.hm_seqflag.o: m_seqflag.cm_seqflag.o: ../h/mh.hm_seqnew.o: m_seqnew.cm_seqnew.o: ../h/mh.h#m_seqnew.o: /usr/include/ctype.h#m_seqnew.o: /usr/include/stdio.hm_setcur.o: m_setcur.cm_setcur.o: ../h/mh.h#m_setcur.o: /usr/include/stdio.hm_setseq.o: m_setseq.cm_setseq.o: ../h/mh.h#m_setseq.o: /usr/include/stdio.hm_setvis.o: m_setvis.cm_setvis.o: ../h/mh.h#m_setvis.o: /usr/include/stdio.hm_sync.o: m_sync.cm_sync.o: ../h/mh.h#m_sync.o: /usr/include/stdio.hm_tmpfil.o: m_tmpfil.cm_tmpfil.o: ../h/mh.h#m_tmpfil.o: /usr/include/stdio.hm_update.o: m_update.cm_update.o: ../h/mh.h#m_update.o: /usr/include/stdio.h#m_update.o: /usr/include/signal.hmakedir.o: makedir.cmakedir.o: ../h/mh.h#makedir.o: /usr/include/stdio.hpath.o: path.cpath.o: ../h/mh.h#path.o: /usr/include/stdio.hpeekc.o: peekc.cpeekc.o: ../h/mh.h#peekc.o: /usr/include/stdio.hpidwait.o: pidwait.cpidwait.o: ../h/mh.h#pidwait.o: /usr/include/signal.h#pidwait.o: /usr/include/stdio.h#pidwait.o: /usr/include/sys/wait.hpidstatus.o: pidstatus.cpidstatus.o: ../h/mh.h#pidstatus.o: /usr/include/signal.h#pidstatus.o: /usr/include/stdio.hprintsw.o: printsw.cprintsw.o: ../h/mh.hpush.o: push.cpush.o: ../h/mh.h#push.o: /usr/include/stdio.h#push.o: /usr/include/signal.hputenv.o: putenv.cputenv.o: ../h/mh.h#putenv.o: /usr/include/stdio.hpwd.o: pwd.cpwd.o: ../h/mh.hpwd.o: ../h/local.h#pwd.o: /usr/include/stdio.h#pwd.o: /usr/include/sys/types.h#pwd.o: /usr/include/sys/stat.h#pwd.o: /usr/include/ndir.h#pwd.o: /usr/include/dir.hrefile.o: refile.crefile.o: ../h/mh.h#refile.o: /usr/include/stdio.hremdir.o: remdir.cremdir.o: ../h/mh.h#remdir.o: /usr/include/stdio.hr1bindex.o: r1bindex.cshowfile.o: showfile.cshowfile.o: ../h/mh.h#showfile.o: /usr/include/stdio.hsmatch.o: smatch.csmatch.o: ../h/mh.hsprintb.o: sprintb.csprintb.o: ../h/mh.h#sprintb.o: /usr/include/stdio.hssequal.o: ssequal.cstrindex.o: strindex.ctrimcpy.o: trimcpy.ctrimcpy.o: ../h/mh.h#trimcpy.o: /usr/include/ctype.h#trimcpy.o: /usr/include/stdio.huleq.o: uleq.cuprf.o: uprf.cvfgets.o: vfgets.cvfgets.o: ../h/mh.h#vfgets.o: /usr/include/stdio.h# DEPENDENCIES MUST END AT END OF FILE# IF YOU PUT STUFF HERE IT WILL GO AWAY
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -