Annotation of 43BSDTahoe/ucb/tn3270/ascii/makefile, revision 1.1.1.1

1.1       root        1: #
                      2: # Copyright (c) 1988 Regents of the University of California.
                      3: # All rights reserved.
                      4: #
                      5: # Redistribution and use in source and binary forms are permitted
                      6: # provided that this notice is preserved and that due credit is given
                      7: # to the University of California at Berkeley. The name of the University
                      8: # may not be used to endorse or promote products derived from this
                      9: # software without specific prior written permission. This software
                     10: # is provided ``as is'' without express or implied warranty.
                     11: #
                     12: #      @(#)makefile    3.2 (Berkeley) 3/28/88
                     13: #
                     14: # msdos versus unix defines
                     15: O      = .o
                     16: #PC_O  = .obj
                     17: 
                     18: X      =
                     19: #PC_X  = .exe
                     20: 
                     21: L      =
                     22: #PC_L  = -link
                     23: 
                     24: CC     = cc
                     25: #PC_CC = cl
                     26: 
                     27: MV     = mv
                     28: #PC_MV = rename
                     29: 
                     30: RM     = rm -f
                     31: #PC_RM= erase
                     32: 
                     33: LINT_ARGS =
                     34: #PC_LINT_ARGS = -DLINT_ARGS
                     35: 
                     36: DEBUG_FLAGS = -g
                     37: #PC_DEBUG_FLAGS = -Zi -Od
                     38: 
                     39: AR     = ar
                     40: AR1    = cr
                     41: AR2    =
                     42: AR3    =
                     43: #PC_AR = lib
                     44: #PC_AR1        =
                     45: #PC_AR2        = +
                     46: #PC_AR3        = ";"
                     47: 
                     48: RANLIB = ranlib
                     49: #PC_RANLIB = echo "Done with "
                     50: 
                     51: PRINT  = print
                     52: 
                     53: DEFINES = ${LINT_ARGS}
                     54: 
                     55: INCLUDES = -I.
                     56: 
                     57: OPTIMIZE = -O
                     58: OPTIMIZE = ${DEBUG_FLAGS}
                     59: 
                     60: CFLAGS = $(OPTIMIZE) $(INCLUDES) $(DEFINES)
                     61: 
                     62: # Lint flags
                     63: LINTFLAGS      = -hbxaz
                     64: 
                     65: KBD    = 3270pc.kbd
                     66: KBD    = unix.kbd
                     67: 
                     68: 
                     69: # The source files...
                     70: ALLH = map3270.ext state.h termin.ext
                     71: 
                     72: ALLC = map3270.c mset.c termin.c
                     73: 
                     74: # We don't include mset$O here...
                     75: ALLO   = map3270$O termin$O
                     76: 
                     77: ALLPRINT = default.map ${ALLH} ${ALLC}
                     78: 
                     79: ALLSOURCE =    ${ALLPRINT} makefile makefile.mak
                     80: 
                     81: .s.o:
                     82:        /lib/cpp -E $< | as -o $@
                     83: 
                     84: .c.obj:
                     85:        ${CC} ${CFLAGS} -c $<
                     86: 
                     87: asciilib.a:    $(ALLO)
                     88:        ${RM} $@
                     89:        for i in ${ALLO}; do (${AR} ${AR1} $@ ${AR2} $$i${AR3}); done
                     90:        ${RANLIB} $@
                     91: 
                     92: clean:
                     93:        for i in $(ALLO) errs makefile.bak asciilib.a; \
                     94:                do (${RM} $$i); done
                     95: 
                     96: sccsclean:
                     97:        -sccs clean
                     98:        -sccs get makefile
                     99: 
                    100: sourcelist:    ${ALLSOURCE}
                    101:        @for i in ${ALLSOURCE}; \
                    102:                do (echo ${DIRPATH}$$i); done
                    103: 
                    104: print:
                    105:        ${PRINT} ${ALLPRINT}
                    106: 
                    107: tags:  ${ALLC} ${ALLH}
                    108:        ctags -t ${ALLC} ${ALLH}
                    109: 
                    110: action:
                    111:        ${ACTION}
                    112: 
                    113: lint:
                    114:        lint ${LINTFLAGS} ${INCLUDES} ${DEFINES} ${ALLC}
                    115: 
                    116: .DEFAULT:
                    117:        sccs get $<
                    118: 
                    119: depend:
                    120:        grep '^#include' ${ALLC} | grep -v '<' | \
                    121:        sed -e 's/:[^"]*"\([^"]*\)".*/: \1/' \
                    122:            -e 's/\.c/$$O/' | \
                    123:        awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
                    124:                else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
                    125:                       else rec = rec " " $$2 } } \
                    126:              END { print rec } ' > makedep
                    127:        echo '$$r makedep' >>eddep
                    128:        echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
                    129:        echo '$$r makedep' >>eddep
                    130:        echo 'w' >>eddep
                    131:        -rm -f makefile.bak
                    132:        cp makefile makefile.bak
                    133:        ed - makefile < eddep
                    134:        rm eddep makedep
                    135: 
                    136: # DO NOT DELETE THIS LINE
                    137: 
                    138: map3270$O: state.h ../general/globals.h map3270.ext default.map
                    139: mset$O: ../ctlr/function.h state.h ../api/astosc.h ../general/globals.h
                    140: mset$O: map3270.ext
                    141: termin$O: ../general/general.h ../ctlr/function.h ../ctlr/inbound.ext
                    142: termin$O: ../ctlr/outbound.ext ../telnet.ext termin.ext ../api/astosc.h state.h
                    143: termin$O: ../general/globals.h

unix.superglobalmegacorp.com

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