Annotation of researchv10no/lbin/Mail/Makefile, revision 1.1.1.1

1.1       root        1: #      Makefile        2.15    83/08/18
                      2: #
                      3: # Berkeley Mail
                      4: #
                      5: # CFLAGS options:
                      6: #      -DVMUNIX        Virtual memory
                      7: #                      Supports job control and vfork()
                      8: #      -DV7            Supports Version 7 UNIX
                      9: #      -DNODATE        Don't check date format
                     10: #      -DBSD4_2        Supports sigblock() and sigsetmask() system calls
                     11: #      -DUSGFROM       Ignore silly USG `FROM:' header field
                     12: #
                     13: CFLAGS=        -g -DVMUNIX -DV7 -DNODATE -DUSGFROM
                     14: XSTR=  /usr/bin/xstr
                     15: DESTDIR=
                     16: CTAGS= /usr/bin/ctags -w
                     17: VPRINT=        /usr/bin/print
                     18: CGRAF= /usr/ber/bin/cgraf
                     19: CGRAPH=        /usr/ber/bin/cgraph
                     20: NMKINDEX=/usr/ber/bin/nmkindex
                     21: DIRTCLOD=/usr/ber/bin/dirtclod
                     22: LIBES=-ljobs                                   ## not officially in Version 9
                     23: LIBES=/n/bowell/usr/src/lbin/libjobs/libjobs.a ## mjm: unofficial "-ljobs"
                     24: ED=    -ed
                     25: AS=    -as
                     26: RM=    -rm
                     27: OBJS=  version.o aux.o cmd1.o cmd2.o cmd3.o cmdtab.o collect.o \
                     28:        config.o edit.o fio.o \
                     29:        getname.o head.o v7.local.o lock.o lex.o list.o main.o \
                     30:        names.o optim.o popen.o quit.o send.o strings.o temp.o tty.o \
                     31:        vars.o str.o 4.2sys.o
                     32: SRCS=  aux.c cmd1.c cmd2.c cmd3.c cmdtab.c collect.c config.c edit.c fio.c \
                     33:        getname.c head.c v7.local.c lock.c lex.c list.c main.c \
                     34:        names.c optim.c popen.c quit.c send.c strings.c temp.c tty.c vars.c \
                     35:        version.c 4.2sys.c
                     36: HDRS=  rcv.h configdefs.h def.h glob.h v7.local.h local.h
                     37: ALL=   Mail fmt
                     38: S = $(SRCS) $(HDRS)
                     39: 
                     40: #
                     41: # Special massaging of C files for sharing of strings
                     42: #
                     43: .SUFFIXES: .o .c
                     44: 
                     45: .c.o:
                     46:        ${CC} -E ${CFLAGS} $*.c | ${XSTR} -c -
                     47:        ${CC} -c ${CFLAGS} x.c 
                     48:        mv x.o $*.o
                     49:        @$(RM) -f x.c
                     50: 
                     51: all:   ${ALL}
                     52: 
                     53: Mail:  $S $(OBJS)
                     54:        $(RM) -f Mail
                     55:        @echo Loading ...
                     56:        @$(CC) -n -o Mail $(OBJS) $(LIBES)
                     57:        @size Mail
                     58: 
                     59: mail.g:        $(SRCS)
                     60:        $(CGRAF) $(SRCS) > mail.g
                     61: 
                     62: install: all
                     63:        mv Mail fmt ${DESTDIR}/usr/bin
                     64:        strip  ${DESTDIR}/usr/bin/Mail ${DESTDIR}/usr/bin/fmt
                     65: 
                     66: version.o:     version.c
                     67:        $(CC) -c -R version.c
                     68: 
                     69: $S:
                     70:        sccs get $@;
                     71: 
                     72: srcs:  $S
                     73: 
                     74: tags:  $(SRCS)
                     75:        ${CTAGS} $(SRCS);
                     76: 
                     77: clean:
                     78:        $(RM) -f *.o
                     79:        rm -f Mail a.out fmt x.c xs.c tags core
                     80:        cp /dev/null strings
                     81: 
                     82: lint:
                     83:        lint $(CFLAGS) $(SRCS)
                     84: 
                     85: fmt:   fmt.c head.c
                     86:        $(CC) fmt.c head.c -o fmt
                     87:        $(RM) fmt.o head.o
                     88:        size fmt
                     89: 
                     90: str.o: strings
                     91:        $(XSTR)
                     92:        $(CC) -R -c xs.c
                     93:        mv xs.o str.o
                     94:        $(RM) xs.c
                     95: 
                     96: cmdtab.o: cmdtab.c
                     97:        $(CC) -R -c $(CFLAGS) cmdtab.c
                     98: 
                     99: print: $S fmt.c
                    100:        $(CGRAPH) > mail.g;
                    101:        $(NMKINDEX) > mail.i;
                    102:        $(DIRTCLOD) -x mail.i -p mail.g > mail.x
                    103:        @$(VPRINT) Makefile mail.x rcv.h def.h glob.h local.h v7.local.h \
                    104:            $(SRCS) fmt.c;
                    105: 
                    106: wc:
                    107:        @wc rcv.h def.h glob.h local.h v7.local.h $(SRCS)
                    108: 
                    109: sc:
                    110:        @grep -c \; rcv.h def.h glob.h local.h v7.local.h $(SRCS)
                    111: 
                    112: strings:
                    113:        echo "making strings"

unix.superglobalmegacorp.com

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