Annotation of 42BSD/ucb/Mail/Makefile, revision 1.1.1.1

1.1       root        1: #      Makefile        2.15    83/08/18
                      2: #
                      3: # Berkeley Mail
                      4: #
                      5: CFLAGS=        -O -DVMUNIX -DV7
                      6: XSTR=  /usr/ucb/xstr
                      7: DESTDIR=
                      8: CTAGS= /usr/ucb/ctags -w
                      9: VPRINT=        /usr/ucb/print
                     10: CGRAF= /ja/rigel/rigel/bin/cgraf
                     11: CGRAPH=        /ja/rigel/rigel/bin/cgraph
                     12: NMKINDEX=/ja/rigel/rigel/bin/nmkindex
                     13: DIRTCLOD=/ja/rigel/rigel/bin/dirtclod
                     14: LIBES=
                     15: ED=    -ed
                     16: AS=    -as
                     17: RM=    -rm
                     18: OBJS=  version.o aux.o cmd1.o cmd2.o cmd3.o cmdtab.o collect.o \
                     19:        config.o edit.o fio.o \
                     20:        getname.o head.o v7.local.o lock.o lex.o list.o main.o \
                     21:        names.o optim.o popen.o quit.o send.o strings.o temp.o tty.o \
                     22:        vars.o str.o
                     23: SRCS=  aux.c cmd1.c cmd2.c cmd3.c cmdtab.c collect.c config.c edit.c fio.c \
                     24:        getname.c head.c v7.local.c lock.c lex.c list.c main.c \
                     25:        names.c optim.c popen.c quit.c send.c strings.c temp.c tty.c vars.c \
                     26:        version.c
                     27: HDRS=  rcv.h configdefs.h def.h glob.h v7.local.h local.h
                     28: ALL=   Mail fmt
                     29: S = $(SRCS) $(HDRS)
                     30: 
                     31: #
                     32: # Special massaging of C files for sharing of strings
                     33: #
                     34: .c.o:
                     35:        ${CC} -E ${CFLAGS} $*.c | ${XSTR} -c -
                     36:        ${CC} -c ${CFLAGS} x.c 
                     37:        mv x.o $*.o
                     38:        @$(RM) -f x.c
                     39: 
                     40: all:   ${ALL}
                     41: 
                     42: Mail:  $S $(OBJS)
                     43:        $(RM) -f Mail
                     44:        @echo Loading ...
                     45:        @$(CC) -n -o Mail $(OBJS) $(LIBES)
                     46:        @size Mail
                     47: 
                     48: mail.g:        $(SRCS)
                     49:        $(CGRAF) $(SRCS) > mail.g
                     50: 
                     51: install: all
                     52:        install -s Mail ${DESTDIR}/usr/ucb/Mail
                     53:        cp misc/Mail.help* ${DESTDIR}/usr/lib
                     54:        install -s fmt ${DESTDIR}/usr/ucb/fmt
                     55:        cd ${DESTDIR}/usr/ucb; rm -f mail; ln Mail mail
                     56: 
                     57: version.o:     version.c
                     58:        $(CC) -c -R version.c
                     59: 
                     60: $S:
                     61:        sccs get $@;
                     62: 
                     63: srcs:  $S
                     64: 
                     65: tags:  $(SRCS)
                     66:        ${CTAGS} $(SRCS);
                     67: 
                     68: clean:
                     69:        $(RM) -f *.o
                     70:        rm -f Mail a.out fmt x.c xs.c tags core
                     71:        cp /dev/null strings
                     72: 
                     73: lint:
                     74:        lint $(CFLAGS) $(SRCS)
                     75: 
                     76: fmt:   fmt.c head.c
                     77:        $(CC) fmt.c head.c -o fmt
                     78:        $(RM) fmt.o head.o
                     79:        size fmt
                     80: 
                     81: str.o: strings
                     82:        $(XSTR)
                     83:        $(CC) -R -c xs.c
                     84:        mv xs.o str.o
                     85:        $(RM) xs.c
                     86: 
                     87: cmdtab.o: cmdtab.c
                     88:        $(CC) -R -c $(CFLAGS) cmdtab.c
                     89: 
                     90: print: $S fmt.c
                     91:        $(CGRAPH) > mail.g;
                     92:        $(NMKINDEX) > mail.i;
                     93:        $(DIRTCLOD) -x mail.i -p mail.g > mail.x
                     94:        @$(VPRINT) Makefile mail.x rcv.h def.h glob.h local.h v7.local.h \
                     95:            $(SRCS) fmt.c;
                     96: 
                     97: wc:
                     98:        @wc rcv.h def.h glob.h local.h v7.local.h $(SRCS)
                     99: 
                    100: sc:
                    101:        @grep -c \; rcv.h def.h glob.h local.h v7.local.h $(SRCS)

unix.superglobalmegacorp.com

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