Annotation of 43BSDTahoe/ucb/tn3270/general/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: # How to install the bloody thing...
        !            65: 
        !            66: DESTDIR=
        !            67: 
        !            68: BINDIR         = $(DESTDIR)/usr/ucb
        !            69: ETCDIR         = $(DESTDIR)/etc
        !            70: MANDIR         = $(DESTDIR)/usr/man/man
        !            71: 
        !            72: # Names for the terminal libraries...
        !            73: LIBCURSES      = -lcurses
        !            74: LIBTERM                = -ltermlib
        !            75: 
        !            76: # The source files...
        !            77: ALLH = bsubs.ext general.h globals.h
        !            78: 
        !            79: ALLC = globals.c
        !            80: 
        !            81: #
        !            82: #      In a vax environment, we use vaxbsubs.s, which gives us a fair amount
        !            83: #      of increased performance.  We have provided genbsubs.c, which perform
        !            84: #      (more or less) the same function.
        !            85: SUBS = vaxbsubs.s
        !            86: SUBS = genbsubs.c
        !            87: 
        !            88: SUBSO = vaxbsubs$O
        !            89: SUBSO = genbsubs$O
        !            90: 
        !            91: ALLS = vaxbsubs.s
        !            92: 
        !            93: ALLPRINT =     ${ALLH} ${ALLC} vaxbsubs.s genbsubs.c
        !            94: 
        !            95: ALLSOURCE =    ${ALLPRINT} makefile makefile.mak
        !            96: 
        !            97: ALLS =
        !            98: 
        !            99: ALLO   = globals$O ${SUBSO}
        !           100: 
        !           101: .s.o:
        !           102:        /lib/cpp -E $< | as -o $@
        !           103: 
        !           104: .c.obj:
        !           105:        ${CC} ${CFLAGS} -c $<
        !           106: 
        !           107: generallib.a:  ${ALLO}
        !           108:        ${RM} $@
        !           109:        for i in ${ALLO}; do (${AR} ${AR1} $@ ${AR2} $$i${AR3}); done
        !           110:        ${RANLIB} $@
        !           111: 
        !           112: clean:
        !           113:        for i in $(ALLO) errs makefile.bak generallib.a; \
        !           114:                do (${RM} $$i); done
        !           115: 
        !           116: sccsclean:
        !           117:        -sccs clean
        !           118:        -sccs get makefile
        !           119: 
        !           120: sourcelist:    ${ALLSOURCE}
        !           121:        @for i in ${ALLSOURCE}; \
        !           122:                do (echo ${DIRPATH}$$i); done
        !           123: 
        !           124: print:
        !           125:        ${PRINT} ${ALLPRINT}
        !           126: 
        !           127: tags:  ${ALLC} ${ALLH}
        !           128:        ctags -t ${ALLC} ${ALLH}
        !           129: 
        !           130: action:
        !           131:        ${ACTION}
        !           132: 
        !           133: lint:
        !           134:        lint ${LINTFLAGS} ${INCLUDES} ${DEFINES} ${ALLC}
        !           135: 
        !           136: .DEFAULT:
        !           137:        sccs get $<
        !           138: 
        !           139: depend:
        !           140:        grep '^#include' ${ALLC} ${ALLH} | grep -v '<' | \
        !           141:        sed -e 's/:[^"]*"\([^"]*\)".*/: \1/' \
        !           142:            -e 's/\.c/$$O/' | \
        !           143:        awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
        !           144:                else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
        !           145:                       else rec = rec " " $$2 } } \
        !           146:              END { print rec } ' > makedep
        !           147:        echo '$$r makedep' >>eddep
        !           148:        echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
        !           149:        echo '$$r makedep' >>eddep
        !           150:        echo 'w' >>eddep
        !           151:        -rm -f makefile.bak
        !           152:        cp makefile makefile.bak
        !           153:        ed - makefile < eddep
        !           154:        rm eddep makedep
        !           155: 
        !           156: # DO NOT DELETE THIS LINE
        !           157: 
        !           158: globals$O: ../ctlr/hostctlr.h ../ctlr/oia.h ../ctlr/options.h ../ctlr/screen.h
        !           159: globals$O: globals.h ../general/general.h

unix.superglobalmegacorp.com

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