Annotation of 42BSD/usr.bin/tip/Makefile, revision 1.1.1.1

1.1       root        1: #      Makefile        4.11    83/06/25
                      2: #
                      3: # make file for intermachine communications package
                      4: #
                      5: # Files are:
                      6: #      /etc/remote             remote host description file
                      7: #      /etc/phones             phone number file, owned by ${OWNER} and
                      8: #                                mode 6??
                      9: #      ${ADM}/aculog           ACU accounting file, owned by ${OWNER} and
                     10: #                                mode 6?? {if ACULOG defined}
                     11: # Presently supports:
                     12: #      BIZCOMP
                     13: #      DEC DF02-AC, DF03-AC
                     14: #      DEC DN-11/Able Quadracall
                     15: #      VENTEL 212+
                     16: #      VADIC 831 RS232 adaptor
                     17: #      VADIC 3451
                     18: # (drivers are located in aculib.a)
                     19: #
                     20: # Configuration defines:
                     21: #      DF02, DF03, DN11        ACU's supported
                     22: #        BIZ1031, BIZ1022, VENTEL, V831, V3451
                     23: #      ACULOG                  turn on tip logging of ACU use
                     24: #      PRISTINE                no phone #'s put in ACU log file
                     25: #      CONNECT                 worthless command
                     26: #      DEFBR                   default baud rate to make connection at
                     27: #      DEFFS                   default frame size for FTP buffering of
                     28: #                              writes on local side
                     29: #      BUFSIZ                  buffer sizing from stdio, must be fed
                     30: #                              explicitly to remcap.c if not 1024
                     31: 
                     32: ADM=   usr/adm
                     33: OWNER= uucp
                     34: GROUP= daemon
                     35: CONFIG=        -DV831 -DVENTEL
                     36: CFLAGS=        -O -DDEFBR=300 -DDEFFS=BUFSIZ -DACULOG
                     37: LDFLAGS=
                     38: OBJS=  acu.o cmds.o cmdtab.o cu.o hunt.o \
                     39:        log.o partab.o remote.o tip.o tipout.o value.o vars.o
                     40: SPECIAL=acutab.c remcap.c uucplock.c
                     41: DRIVERS=aculib/*.c
                     42: SOURCES=acu.c acutab.c cmds.c cmdtab.c cu.c hunt.c \
                     43:        log.c partab.c remote.c tip.c tipout.c value.c vars.c \
                     44:        ${SPECIAL} ${DRIVERS}
                     45: CXREF= /usr/ucb/ctags -xw
                     46: 
                     47: tip:   ${OBJS} acutab.o remcap.o uucplock.o aculib/aculib.a
                     48:        ${CC} -o tip ${LDFLAGS} ${OBJS} acutab.o remcap.o uucplock.o \
                     49:                aculib/aculib.a
                     50: 
                     51: ${OBJS}: tip.h
                     52: 
                     53: remcap.o: remcap.c
                     54:        ${CC} -c -DBUFSIZ=1024 ${CFLAGS} remcap.c
                     55: 
                     56: # acutab is configuration dependent, and so depends on the makefile
                     57: acutab.o: Makefile
                     58: acutab.o: acutab.c
                     59:        ${CC} -c ${CFLAGS} ${CONFIG} acutab.c
                     60: 
                     61: # remote.o depends on the makefile because of DEFBR and DEFFS
                     62: remote.o: Makefile
                     63: 
                     64: # log.o depends on the makefile because of ACULOG
                     65: log.o: Makefile
                     66: 
                     67: aculib/aculib.a: ${DRIVERS}
                     68:        cd aculib; make ${MFLAGS}
                     69: 
                     70: install: tip
                     71:        install -m 4711 -o ${OWNER} -g ${GROUP} tip ${DESTDIR}/usr/bin/tip
                     72:        rm -f ${DESTDIR}/usr/bin/cu
                     73:        ln ${DESTDIR}/usr/bin/tip ${DESTDIR}/usr/bin/cu
                     74: #      cp /dev/null ${DESTDIR}/${ADM}/aculog
                     75: #      chown ${OWNER} ${DESTDIR}/${ADM}/aculog
                     76: #      chmod 600 ${DESTDIR}/${ADM}/aculog
                     77: #      @echo "create /etc/remote and /etc/phones"
                     78: 
                     79: tags:  ${SOURCES} tip.h
                     80:        ctags -w ${SOURCES} tip.h
                     81: 
                     82: clean:
                     83:        cd aculib; make ${MFLAGS} clean
                     84:        rm -f tip cu *.o
                     85: 
                     86: print:
                     87:        @pr README TODO makefile
                     88:        @size *.o | pr -h SIZES
                     89:        @${CXREF} tip.h ${SOURCES} | pr -h XREF
                     90:        @ls -l | pr 
                     91:        @pr tip.h ${SOURCES}
                     92: 
                     93: lint:
                     94:        -lint -hbacvx ${CFLAGS} ${SOURCES}

unix.superglobalmegacorp.com

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