Annotation of 43BSDReno/contrib/mh/conf/makefiles/sbr, revision 1.1.1.1

1.1       root        1: ##############################################################################
                      2: #    Instructions to Make, for compilation of MH modules
                      3: #
                      4: #      @(MHWARNING)
                      5: ##############################################################################
                      6: 
                      7: OPTIONS        =       @(MHOPTIONS)
                      8: 
                      9: CC     =       @(CC)
                     10: @BEGIN: OPTIM
                     11: CCOPT  =       -O
                     12: @END: OPTIM
                     13: @BEGIN: DEBUG
                     14: CCOPT  =
                     15: @END: DEBUG
                     16: CFLAGS =       $(CCOPT) $(OPTIONS)
                     17: LINT   =       lint
                     18: LFLAGS =       -bhu $(OPTIONS)
                     19: LLIBS  =
                     20: 
                     21: 
                     22: LIB    =       libmh.a
                     23: 
                     24: CFILES =       add.c adios.c admonish.c addrsbr.c advertise.c advise.c \
                     25:                ambigsw.c atooi.c brkstring.c closefds.c concat.c copy.c \
                     26:                copyip.c cpydata.c cpydgst.c discard.c done.c fdcompare.c \
                     27:                gans.c getans.c getanswer.c getcpy.c help.c fmtcompile.c \
                     28:                formataddr.c formatsbr.c m_atoi.c m_backup.c m_convert.c \
                     29:                m_delete.c m_draft.c m_find.c m_fmsg.c m_foil.c m_getdefs.c \
                     30:                m_getfld.c m_getfolder.c m_gmprot.c m_gmsg.c m_maildir.c \
                     31:                m_name.c m_readefs.c m_remsg.c m_replace.c m_scratch.c \
                     32:                m_seq.c m_seqbits.c m_seqflag.c m_seqnew.c m_setcur.c \
                     33:                m_setseq.c m_setvis.c m_sync.c m_tmpfil.c m_update.c \
                     34:                m_whatnow.c makedir.c path.c peekc.c pidwait.c pidstatus.c \
                     35:                printsw.c push.c putenv.c pwd.c refile.c remdir.c r1bindex.c \
                     36:                showfile.c smatch.c sprintb.c ssequal.c strindex.c trimcpy.c \
                     37:                uleq.c uprf.c vfgets.c trmsbr.c
                     38: 
                     39: OFILES =       add.o adios.o admonish.o addrsbr.o advertise.o advise.o \
                     40:                ambigsw.o atooi.o brkstring.o closefds.o concat.o copy.o \
                     41:                copyip.o cpydata.o cpydgst.o discard.o done.o fdcompare.o \
                     42:                gans.o getans.o getanswer.o getcpy.o help.o fmtcompile.o \
                     43:                formataddr.o formatsbr.o m_atoi.o m_backup.o m_convert.o \
                     44:                m_delete.o m_draft.o m_find.o m_fmsg.o m_foil.o m_getdefs.o \
                     45:                m_getfld.o m_getfolder.o m_gmprot.o m_gmsg.o m_maildir.o \
                     46:                m_name.o m_readefs.o m_remsg.o m_replace.o m_scratch.o \
                     47:                m_seq.o m_seqbits.o m_seqflag.o m_seqnew.o m_setcur.o \
                     48:                m_setseq.o m_setvis.o m_sync.o m_tmpfil.o m_update.o \
                     49:                m_whatnow.o makedir.o path.o peekc.o pidwait.o pidstatus.o \
                     50:                printsw.o push.o putenv.o pwd.o refile.o remdir.o r1bindex.o \
                     51:                showfile.o smatch.o sprintb.o ssequal.o strindex.o trimcpy.o \
                     52:                uleq.o uprf.o vfgets.o trmsbr.o
                     53: 
                     54: 
                     55: @BEGIN: OPTIM
                     56: ##############################################################################
                     57: #      Generation Rules
                     58: ##############################################################################
                     59: 
                     60: .c.o:
                     61:                $(CC) $(CFLAGS) -c $*.c
                     62: 
                     63: @BEGIN: NEWLOAD
                     64: @END: NEWLOAD
                     65: @BEGIN: OLDLOAD
                     66:                cc -s -o $@
                     67: @END: OLDLOAD
                     68: 
                     69: 
                     70: @END: OPTIM
                     71: ##############################################################################
                     72: #      Generate MH subroutine library
                     73: ##############################################################################
                     74: 
                     75: all:           $(LIB)
                     76: 
                     77: tags:          /tmp
                     78:        cd ../uip/tags ; ${MAKE} ${MFLAGS} tags
                     79:        ln -s ../uip/tags
                     80: 
                     81: $(LIB): $(OFILES)
                     82: @BEGIN: RANLIB
                     83:                ar r $@ $(OFILES); ranlib $@
                     84: @END: RANLIB
                     85: @BEGIN: LORDER
                     86:                ar r $@ `lorder $(OFILES) | tsort`
                     87: @END: LORDER
                     88:                -@ls -l $@
                     89:                -@echo "MH library built normally"
                     90: 
                     91: ##############################################################################
                     92: #      MH processes
                     93: ##############################################################################
                     94: 
                     95: fmtdump: fmtdump.o fmtcompile.o ../config/config.o
                     96:        $(CC) $(LDFLAGS) -o fmtdump fmtdump.o fmtcompile.o ../config/config.o \
                     97:            ../uip/libuip.a libmh.a ../mts/libmts.a ../zotnet/libzot.a
                     98: 
                     99: ##############################################################################
                    100: #      Miscellaneous tasks
                    101: ##############################################################################
                    102: 
                    103: lint:;         $(LINT) $(LFLAGS) $(CFILES) $(LLIBS)
                    104: 
                    105: distribution:   clean
                    106: 
                    107: clean:         unclean
                    108:                rm -f *.o $(LIB) fmtdump
                    109: 
                    110: unclean:;      -rm -f z$(LIB) _* :* core eddep makedep
                    111: 
                    112: 
                    113: ##############################################################################
                    114: #  MODIFICATIONS -- Adding a new routine (e.g., pickle)
                    115: ##############################################################################
                    116: 
                    117: #
                    118: #    Add any new .c files to CFILES
                    119: #    Add any new .o files to OFILES
                    120: #
                    121: #
                    122: #    Under the "Dependencies" section, add a line for pickle.o
                    123: #      pickle.o:       ../h/mh.h
                    124: #
                    125: #    If other includes are read, modify this rule to reflect this
                    126: #    Of course, if pickle.c doesn't include ../h/mh.h (or any
                    127: #    other includes), you can leave this line out altogether
                    128: 
                    129: 
                    130: ##############################################################################
                    131: #      Dependencies
                    132: ##############################################################################
                    133: 
                    134: MODULES        =       $(CFILES)
                    135: 
                    136: depend:;       for m in $(MODULES); do ( \
                    137:                    i=`basename $$m .c`; \
                    138:                    echo $$i.o: $$i.c >> makedep; \
                    139:                    grep '^#[   ]*include' $$i.c | \
                    140:                        sed -e 's,[^"]*"/\([^"]*\)".*,'$$i'.o: /\1,' \
                    141:                            -e 's,[^"]*"\([^"]*\)".*,'$$i'.o: \1,' \
                    142:                            -e 's,[^<]*<\(.*\)>.*,#'$$i'.o: /usr/include/\1,' \
                    143:                        >> makedep \
                    144:                ); done
                    145:                echo '/^# DO NOT DELETE THIS LINE/+2,$$d' > eddep
                    146:                echo '$$r makedep' >> eddep
                    147:                echo 'w' >> eddep
                    148:                cp Makefile _Makefile
                    149:                ed - Makefile < eddep
                    150:                rm eddep makedep
                    151:                echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
                    152:                echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
                    153: 
                    154: # DO NOT DELETE THIS LINE
                    155: # DEPENDENCIES START HERE
                    156: add.o: add.c
                    157: add.o: ../h/mh.h
                    158: #add.o: /usr/include/stdio.h
                    159: adios.o: adios.c
                    160: adios.o: ../h/mh.h
                    161: admonish.o: admonish.c
                    162: admonish.o: ../h/mh.h
                    163: addrsbr.o: addrsbr.c
                    164: addrsbr.o: ../h/mh.h
                    165: addrsbr.o: ../h/addrsbr.h
                    166: addrsbr.o: ../zotnet/mf.h
                    167: #addrsbr.o: /usr/include/stdio.h
                    168: #addrsbr.o: /usr/include/ctype.h
                    169: advertise.o: advertise.c
                    170: advertise.o: ../h/mh.h
                    171: #advertise.o: /usr/include/stdio.h
                    172: #advertise.o: /usr/include/sys/types.h
                    173: #advertise.o: /usr/include/sys/uio.h
                    174: advise.o: advise.c
                    175: advise.o: ../h/mh.h
                    176: ambigsw.o: ambigsw.c
                    177: ambigsw.o: ../h/mh.h
                    178: #ambigsw.o: /usr/include/stdio.h
                    179: atooi.o: atooi.c
                    180: brkstring.o: brkstring.c
                    181: brkstring.o: ../h/mh.h
                    182: closefds.o: closefds.c
                    183: closefds.o: ../h/mh.h
                    184: #closefds.o: /usr/include/stdio.h
                    185: concat.o: concat.c
                    186: concat.o: ../h/mh.h
                    187: #concat.o: /usr/include/stdio.h
                    188: #concat.o: /usr/include/varargs.h
                    189: copy.o: copy.c
                    190: copyip.o: copyip.c
                    191: cpydata.o: cpydata.c
                    192: cpydata.o: ../h/mh.h
                    193: #cpydata.o: /usr/include/stdio.h
                    194: cpydgst.o: cpydgst.c
                    195: cpydgst.o: ../h/mh.h
                    196: #cpydgst.o: /usr/include/stdio.h
                    197: discard.o: discard.c
                    198: discard.o: ../h/mh.h
                    199: #discard.o: /usr/include/stdio.h
                    200: #discard.o: /usr/include/sgtty.h
                    201: #discard.o: /usr/include/sys/types.h
                    202: #discard.o: /usr/include/termio.h
                    203: #discard.o: /usr/include/sys/ioctl.h
                    204: done.o: done.c
                    205: done.o: ../h/mh.h
                    206: fdcompare.o: fdcompare.c
                    207: fdcompare.o: ../h/mh.h
                    208: #fdcompare.o: /usr/include/stdio.h
                    209: gans.o: gans.c
                    210: gans.o: ../h/mh.h
                    211: #gans.o: /usr/include/stdio.h
                    212: getans.o: getans.c
                    213: getans.o: ../h/mh.h
                    214: #getans.o: /usr/include/setjmp.h
                    215: #getans.o: /usr/include/signal.h
                    216: #getans.o: /usr/include/stdio.h
                    217: getanswer.o: getanswer.c
                    218: getanswer.o: ../h/mh.h
                    219: #getanswer.o: /usr/include/stdio.h
                    220: getcpy.o: getcpy.c
                    221: getcpy.o: ../h/mh.h
                    222: #getcpy.o: /usr/include/stdio.h
                    223: help.o: help.c
                    224: help.o: ../h/mh.h
                    225: #help.o: /usr/include/stdio.h
                    226: formatsbr.o: formatsbr.c
                    227: formatsbr.o: ../h/mh.h
                    228: formatsbr.o: ../h/addrsbr.h
                    229: formatsbr.o: ../h/formatsbr.h
                    230: formatsbr.o: ../zotnet/tws.h
                    231: formatsbr.o: ../h/fmtcompile.h
                    232: #formatsbr.o: /usr/include/ctype.h
                    233: #formatsbr.o: /usr/include/stdio.h
                    234: #formatsbr.o: /usr/include/sys/types.h
                    235: #formatsbr.o: /usr/include/sys/stat.h
                    236: fmtcompile.o: fmtcompile.c
                    237: fmtcompile.o: ../h/mh.h
                    238: fmtcompile.o: ../h/addrsbr.h
                    239: fmtcompile.o: ../h/formatsbr.h
                    240: fmtcompile.o: ../zotnet/tws.h
                    241: fmtcompile.o: ../h/fmtcompile.h
                    242: #fmtcompile.o: /usr/include/ctype.h
                    243: #fmtcompile.o: /usr/include/stdio.h
                    244: #fmtcompile.o: /usr/include/sys/types.h
                    245: #fmtcompile.o: /usr/include/sys/stat.h
                    246: formataddr.o: formataddr.c
                    247: formataddr.o: ../h/mh.h
                    248: formataddr.o: ../h/addrsbr.h
                    249: formataddr.o: ../h/formatsbr.h
                    250: #formataddr.o: /usr/include/ctype.h
                    251: #formataddr.o: /usr/include/stdio.h
                    252: m_atoi.o: m_atoi.c
                    253: m_atoi.o: ../h/mh.h
                    254: m_backup.o: m_backup.c
                    255: m_backup.o: ../h/mh.h
                    256: #m_backup.o: /usr/include/stdio.h
                    257: m_convert.o: m_convert.c
                    258: m_convert.o: ../h/mh.h
                    259: #m_convert.o: /usr/include/stdio.h
                    260: #m_convert.o: /usr/include/ctype.h
                    261: m_delete.o: m_delete.c
                    262: m_delete.o: ../h/mh.h
                    263: #m_delete.o: /usr/include/stdio.h
                    264: m_draft.o: m_draft.c
                    265: m_draft.o: ../h/mh.h
                    266: #m_draft.o: /usr/include/errno.h
                    267: #m_draft.o: /usr/include/stdio.h
                    268: #m_draft.o: /usr/include/sys/types.h
                    269: #m_draft.o: /usr/include/sys/stat.h
                    270: m_find.o: m_find.c
                    271: m_find.o: ../h/mh.h
                    272: #m_find.o: /usr/include/stdio.h
                    273: m_fmsg.o: m_fmsg.c
                    274: m_fmsg.o: ../h/mh.h
                    275: #m_fmsg.o: /usr/include/stdio.h
                    276: m_foil.o: m_foil.c
                    277: m_foil.o: ../h/mh.h
                    278: #m_foil.o: /usr/include/stdio.h
                    279: m_getdefs.o: m_getdefs.c
                    280: m_getdefs.o: ../h/mh.h
                    281: #m_getdefs.o: /usr/include/stdio.h
                    282: #m_getdefs.o: /usr/include/errno.h
                    283: #m_getdefs.o: /usr/include/sys/types.h
                    284: #m_getdefs.o: /usr/include/sys/stat.h
                    285: #m_getdefs.o: /usr/include/pwd.h
                    286: m_getfld.o: m_getfld.c
                    287: m_getfld.o: ../h/mh.h
                    288: #m_getfld.o: /usr/include/stdio.h
                    289: m_getfld.o: ../zotnet/mts.h
                    290: #m_getfld.o: /usr/include/ctype.h
                    291: m_getfolder.o: m_getfolder.c
                    292: m_getfolder.o: ../h/mh.h
                    293: #m_getfolder.o: /usr/include/stdio.h
                    294: m_gmprot.o: m_gmprot.c
                    295: m_gmprot.o: ../h/mh.h
                    296: #m_gmprot.o: /usr/include/stdio.h
                    297: m_gmsg.o: m_gmsg.c
                    298: m_gmsg.o: ../h/mh.h
                    299: #m_gmsg.o: /usr/include/stdio.h
                    300: #m_gmsg.o: /usr/include/sys/types.h
                    301: #m_gmsg.o: /usr/include/sys/stat.h
                    302: #m_gmsg.o: /usr/include/ndir.h
                    303: #m_gmsg.o: /usr/include/dir.h
                    304: #m_gmsg.o: /usr/include/sys/dir.h
                    305: m_maildir.o: m_maildir.c
                    306: m_maildir.o: ../h/mh.h
                    307: #m_maildir.o: /usr/include/stdio.h
                    308: m_name.o: m_name.c
                    309: m_name.o: ../h/mh.h
                    310: #m_name.o: /usr/include/stdio.h
                    311: m_readefs.o: m_readefs.c
                    312: m_readefs.o: ../h/mh.h
                    313: #m_readefs.o: /usr/include/stdio.h
                    314: m_remsg.o: m_remsg.c
                    315: m_remsg.o: ../h/mh.h
                    316: #m_remsg.o: /usr/include/stdio.h
                    317: m_replace.o: m_replace.c
                    318: m_replace.o: ../h/mh.h
                    319: #m_replace.o: /usr/include/stdio.h
                    320: m_scratch.o: m_scratch.c
                    321: m_scratch.o: ../h/mh.h
                    322: #m_scratch.o: /usr/include/stdio.h
                    323: m_seq.o: m_seq.c
                    324: m_seq.o: ../h/mh.h
                    325: #m_seq.o: /usr/include/stdio.h
                    326: m_seqbits.o: m_seqbits.c
                    327: m_seqbits.o: ../h/mh.h
                    328: #m_seqbits.o: /usr/include/stdio.h
                    329: m_seqflag.o: m_seqflag.c
                    330: m_seqflag.o: ../h/mh.h
                    331: m_seqnew.o: m_seqnew.c
                    332: m_seqnew.o: ../h/mh.h
                    333: #m_seqnew.o: /usr/include/ctype.h
                    334: #m_seqnew.o: /usr/include/stdio.h
                    335: m_setcur.o: m_setcur.c
                    336: m_setcur.o: ../h/mh.h
                    337: #m_setcur.o: /usr/include/stdio.h
                    338: m_setseq.o: m_setseq.c
                    339: m_setseq.o: ../h/mh.h
                    340: #m_setseq.o: /usr/include/stdio.h
                    341: m_setvis.o: m_setvis.c
                    342: m_setvis.o: ../h/mh.h
                    343: #m_setvis.o: /usr/include/stdio.h
                    344: m_sync.o: m_sync.c
                    345: m_sync.o: ../h/mh.h
                    346: #m_sync.o: /usr/include/stdio.h
                    347: m_tmpfil.o: m_tmpfil.c
                    348: m_tmpfil.o: ../h/mh.h
                    349: #m_tmpfil.o: /usr/include/stdio.h
                    350: m_update.o: m_update.c
                    351: m_update.o: ../h/mh.h
                    352: #m_update.o: /usr/include/stdio.h
                    353: #m_update.o: /usr/include/signal.h
                    354: m_whatnow.o: m_whatnow.c
                    355: m_whatnow.o: ../h/mh.h
                    356: #m_whatnow.o: /usr/include/stdio.h
                    357: makedir.o: makedir.c
                    358: makedir.o: ../h/mh.h
                    359: #makedir.o: /usr/include/stdio.h
                    360: path.o: path.c
                    361: path.o: ../h/mh.h
                    362: #path.o: /usr/include/stdio.h
                    363: peekc.o: peekc.c
                    364: peekc.o: ../h/mh.h
                    365: #peekc.o: /usr/include/stdio.h
                    366: pidwait.o: pidwait.c
                    367: pidwait.o: ../h/mh.h
                    368: #pidwait.o: /usr/include/signal.h
                    369: #pidwait.o: /usr/include/stdio.h
                    370: #pidwait.o: /usr/include/sys/wait.h
                    371: pidstatus.o: pidstatus.c
                    372: pidstatus.o: ../h/mh.h
                    373: #pidstatus.o: /usr/include/signal.h
                    374: #pidstatus.o: /usr/include/stdio.h
                    375: printsw.o: printsw.c
                    376: printsw.o: ../h/mh.h
                    377: push.o: push.c
                    378: push.o: ../h/mh.h
                    379: #push.o: /usr/include/stdio.h
                    380: #push.o: /usr/include/signal.h
                    381: putenv.o: putenv.c
                    382: putenv.o: ../h/mh.h
                    383: #putenv.o: /usr/include/stdio.h
                    384: pwd.o: pwd.c
                    385: pwd.o: ../h/mh.h
                    386: #pwd.o: /usr/include/stdio.h
                    387: #pwd.o: /usr/include/sys/types.h
                    388: #pwd.o: /usr/include/sys/stat.h
                    389: #pwd.o: /usr/include/ndir.h
                    390: #pwd.o: /usr/include/dir.h
                    391: refile.o: refile.c
                    392: refile.o: ../h/mh.h
                    393: #refile.o: /usr/include/stdio.h
                    394: remdir.o: remdir.c
                    395: remdir.o: ../h/mh.h
                    396: #remdir.o: /usr/include/stdio.h
                    397: r1bindex.o: r1bindex.c
                    398: showfile.o: showfile.c
                    399: showfile.o: ../h/mh.h
                    400: #showfile.o: /usr/include/stdio.h
                    401: smatch.o: smatch.c
                    402: smatch.o: ../h/mh.h
                    403: sprintb.o: sprintb.c
                    404: sprintb.o: ../h/mh.h
                    405: #sprintb.o: /usr/include/stdio.h
                    406: ssequal.o: ssequal.c
                    407: strindex.o: strindex.c
                    408: trimcpy.o: trimcpy.c
                    409: trimcpy.o: ../h/mh.h
                    410: #trimcpy.o: /usr/include/ctype.h
                    411: #trimcpy.o: /usr/include/stdio.h
                    412: trmsbr.o: trmsbr.c
                    413: trmsbr.o: ../h/mh.h
                    414: uleq.o: uleq.c
                    415: uprf.o: uprf.c
                    416: vfgets.o: vfgets.c
                    417: vfgets.o: ../h/mh.h
                    418: #vfgets.o: /usr/include/stdio.h
                    419: # DEPENDENCIES MUST END AT END OF FILE
                    420: # IF YOU PUT STUFF HERE IT WILL GO AWAY

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.