Annotation of 43BSDTahoe/ucb/tn3270/sys_dos/makefile.mak, revision 1.1.1.1

1.1       root        1: # variables...
                      2: O =    .obj
                      3: X =    .exe
                      4: L =    -link
                      5: CC =   cl
                      6: MV =   rename
                      7: RM =   erase
                      8: LINT_ARGS =    -DLINT_ARGS
                      9: DEBUG_FLAGS =  -Zi -Od
                     10: AR =   lib
                     11: AR1 =  
                     12: AR2 =  +
                     13: AR3 =  ";"
                     14: RANLIB =       echo "Done with "
                     15: PRINT =        print
                     16: DEFINES =      ${LINT_ARGS}
                     17: INCLUDES =     -I.
                     18: OPTIMIZE =     ${DEBUG_FLAGS}
                     19: CFLAGS =       ${OPTIMIZE} ${INCLUDES} ${DEFINES}
                     20: LINTFLAGS =    -hbxaz
                     21: ALLH = spint.h termout.ext video.h
                     22: ALLC = spintc.c system.c termout.c
                     23: ALLASM =       spintasm.asm support.asm
                     24: ALLO = spintasm${O} spintc${O} support${O} system${O} termout${O}
                     25: ALLPRINT =     ${ALLH} ${ALLASM} ${ALLC}
                     26: ALLSOURCE =    ${ALLPRINT} makefile makefile.mak
                     27: 
                     28: 
                     29: #targets...
                     30: 
                     31: .c.obj:         
                     32:        ${CC} ${CFLAGS} -c $<
                     33: 
                     34: sys.lib:       ${ALLO} 
                     35:        ${RM} $@
                     36:        ${AR} ${AR1} $@ ${AR2} spintasm.obj${AR3}
                     37:        cd ${CWD}
                     38:        ${AR} ${AR1} $@ ${AR2} spintc.obj${AR3}
                     39:        cd ${CWD}
                     40:        ${AR} ${AR1} $@ ${AR2} support.obj${AR3}
                     41:        cd ${CWD}
                     42:        ${AR} ${AR1} $@ ${AR2} system.obj${AR3}
                     43:        cd ${CWD}
                     44:        ${AR} ${AR1} $@ ${AR2} termout.obj${AR3}
                     45:        cd ${CWD}
                     46:        
                     47:        
                     48:        ${RANLIB} $@
                     49: 
                     50: clean:  
                     51:        ${RM} spintasm.obj
                     52:        cd ${CWD}
                     53:        ${RM} spintc.obj
                     54:        cd ${CWD}
                     55:        ${RM} support.obj
                     56:        cd ${CWD}
                     57:        ${RM} system.obj
                     58:        cd ${CWD}
                     59:        ${RM} termout.obj
                     60:        cd ${CWD}
                     61:        ${RM} errs
                     62:        cd ${CWD}
                     63:        ${RM} makefile.bak
                     64:        cd ${CWD}
                     65:        ${RM} sys.lib
                     66:        cd ${CWD}
                     67:        
                     68:        
                     69: 
                     70: sccsclean:      
                     71:        -sccs clean
                     72:        -sccs get makefile
                     73: 
                     74: sourcelist:    ${ALLSOURCE} 
                     75:        echo ${DIRPATH}spint.h
                     76:        cd ${CWD}
                     77:        echo ${DIRPATH}termout.ext
                     78:        cd ${CWD}
                     79:        echo ${DIRPATH}video.h
                     80:        cd ${CWD}
                     81:        echo ${DIRPATH}spintasm.asm
                     82:        cd ${CWD}
                     83:        echo ${DIRPATH}support.asm
                     84:        cd ${CWD}
                     85:        echo ${DIRPATH}spintc.c
                     86:        cd ${CWD}
                     87:        echo ${DIRPATH}system.c
                     88:        cd ${CWD}
                     89:        echo ${DIRPATH}termout.c
                     90:        cd ${CWD}
                     91:        echo ${DIRPATH}makefile
                     92:        cd ${CWD}
                     93:        echo ${DIRPATH}makefile.mak
                     94:        cd ${CWD}
                     95:        
                     96:        
                     97: 
                     98: print:  
                     99:        ${PRINT} ${ALLPRINT}
                    100: 
                    101: tags:  ${ALLC} ${ALLH} 
                    102:        ctags -t ${ALLC} ${ALLH}
                    103: 
                    104: action:         
                    105:        ${ACTION}
                    106: 
                    107: lint:   
                    108:        lint ${LINTFLAGS} ${INCLUDES} ${DEFINES} -DTN3270 ${TNMAIN} ${MOSTC} -lcurses
                    109:        lint ${LINTFLAGS} ${INCLUDES} ${DEFINES} ${MSMAIN} map3270.c -lcurses
                    110: 
                    111: .DEFAULT:       
                    112:        sccs get $<
                    113: 
                    114: depend:         
                    115:        grep '^#include' ${ALLC} ${ALLH} | grep -v '<' | sed -e 's\:[^"]*"\([^"]*\)".*\: \1\' -e 's\\.c\$$O\' | awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
                    116:                else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
                    117:                       else rec = rec " " $$2 } } \
                    118:              END { print rec } ' > makedep
                    119:        echo '$$r makedep' >>eddep
                    120:        echo '\^# DO NOT DELETE THIS LINE\+1,$$d' >eddep
                    121:        echo '$$r makedep' >>eddep
                    122:        echo 'w' >>eddep
                    123:        -rm -f makefile.bak
                    124:        cp makefile makefile.bak
                    125:        ed - makefile < eddep
                    126:        rm eddep makedep
                    127: 
                    128: spintc${O}:    ..\general\general.h spint.h 
                    129:        
                    130: 
                    131: system${O}:    ..\general\general.h ..\ctlr\api.h spint.h ..\general\globals.h 
                    132:        
                    133: 
                    134: termout${O}:   ..\general\general.h ..\telnet.ext ..\api\disp_asc.h ..\ascii\map3270.ext ..\ctlr\hostctlr.h ..\ctlr\inbound.ext ..\ctlr\oia.h ..\ctlr\options.ext ..\ctlr\outbound.ext ..\ctlr\screen.h ..\general\globals.h video.h 
                    135:        

unix.superglobalmegacorp.com

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