Annotation of 43BSDTahoe/ucb/tn3270/ctlr/makefile, revision 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: # Which keyboard are we emulating.
        !            66: KBD    = 3180.kbd
        !            67: KBD    = 3270pc.kbd
        !            68: KBD    = unix.kbd
        !            69: 
        !            70: # The source files...
        !            71: ALLH = api.h function.h hostctlr.h inbound.ext oia.h \
        !            72:        options.ext options.h outbound.ext screen.h scrnctlr.h
        !            73: 
        !            74: ALLC = api.c function.c inbound.c oia.c options.c outbound.c
        !            75: 
        !            76: # Note: NO function.o!
        !            77: ALLO = api$O inbound$O oia$O options$O outbound$O
        !            78: 
        !            79: ALLPRINT =     3180.kbd 3270pc.kbd unix.kbd ${ALLH} ${ALLC}
        !            80: 
        !            81: ALLSOURCE =    ${ALLPRINT} makefile makefile.mak
        !            82: 
        !            83: .s.o:
        !            84:        /lib/cpp -E $< | as -o $@
        !            85: 
        !            86: .c.obj:
        !            87:        ${CC} ${CFLAGS} -c $<
        !            88: 
        !            89: ctlrlib.a:     ${ALLO}
        !            90:        ${RM} $@
        !            91:        for i in ${ALLO}; do (${AR} ${AR1} $@ ${AR2} $$i${AR3}); done
        !            92:        ${RANLIB} $@
        !            93: 
        !            94: clean:
        !            95:        for i in $(ALLO) mset tn3270 prt3270 m4.out errs \
        !            96:                makefile.bak ctlrlib.a kbd.out TMPfunc.out; \
        !            97:                        do (${RM} $$i); done
        !            98: 
        !            99: sccsclean:
        !           100:        -sccs clean
        !           101:        -sccs get makefile
        !           102: 
        !           103: sourcelist:    ${ALLSOURCE}
        !           104:        @for i in ${ALLSOURCE}; \
        !           105:                do (echo ${DIRPATH}$$i); done
        !           106: 
        !           107: print:
        !           108:        ${PRINT} ${ALLPRINT}
        !           109: 
        !           110: tags:  ${ALLC} ${ALLH}
        !           111:        ctags -t ${ALLC} ${ALLH}
        !           112: 
        !           113: action:
        !           114:        ${ACTION}
        !           115: 
        !           116: lint:
        !           117:        lint ${LINTFLAGS} ${INCLUDES} ${DEFINES} -DTN3270 ${ALLC} -lcurses
        !           118: 
        !           119: .DEFAULT:
        !           120:        sccs get $<
        !           121: 
        !           122: kbd.out:       $(KBD) hostctlr.h
        !           123:        (cd ../tools; make mkhits$X )
        !           124:        ${RM} $@ TMPfunc.out
        !           125:        $(CC) $(CFLAGS) -E function.c > TMPfunc.out
        !           126:        ../tools/mkhits - ../ctlr/TMPfunc.out < $(KBD) > $@
        !           127:        ${RM} TMPfunc.out
        !           128: 
        !           129: depend:
        !           130:        grep '^#include' ${ALLC} | grep -v '<' | \
        !           131:        sed -e 's/:[^"]*"\([^"]*\)".*/: \1/' \
        !           132:            -e 's/\.c/$$O/' | \
        !           133:        awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
        !           134:                else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
        !           135:                       else rec = rec " " $$2 } } \
        !           136:              END { print rec } ' > makedep
        !           137:        echo '$$r makedep' >>eddep
        !           138:        echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
        !           139:        echo '$$r makedep' >>eddep
        !           140:        echo 'w' >>eddep
        !           141:        -rm -f makefile.bak
        !           142:        cp makefile makefile.bak
        !           143:        ed - makefile < eddep
        !           144:        rm eddep makedep
        !           145: 
        !           146: # DO NOT DELETE THIS LINE
        !           147: 
        !           148: api$O: api.h ../general/general.h ../api/disp_asc.h screen.h oia.h
        !           149: api$O: ../general/globals.h
        !           150: function$O: function.h
        !           151: inbound$O: ../general/general.h function.h hostctlr.h oia.h scrnctlr.h screen.h
        !           152: inbound$O: options.h ../api/dctype.h ../api/ebc_disp.h ../general/globals.h
        !           153: inbound$O: inbound.ext outbound.ext ../telnet.ext kbd.out
        !           154: oia$O: ../general/general.h oia.h ../general/globals.h
        !           155: options$O: options.h ../general/globals.h options.ext
        !           156: outbound$O: ../general/general.h hostctlr.h oia.h screen.h ../api/ebc_disp.h
        !           157: outbound$O: ../general/globals.h options.ext ../telnet.ext inbound.ext
        !           158: outbound$O: outbound.ext ../general/bsubs.ext

unix.superglobalmegacorp.com

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