Annotation of 40BSD/cmd/ucbmail/makefile, revision 1.1.1.1

1.1       root        1: #
                      2: # Unix version 7.
                      3: CFLAGS=-O -DVMUNIX -DV7
                      4: XSTR=/usr/ucb/xstr
                      5: DESTDIR=
                      6: CTAGS=/usr/ucb/ctags -w
                      7: VPRINT=/usr/ucb/vprint
                      8: LIBES=-ljobs
                      9: ED=-ed
                     10: AS=-as
                     11: RM=-rm
                     12: OBJS=aux.o cmd1.o cmd2.o cmd3.o cmdtab.o collect.o edit.o fio.o \
                     13:        getname.o head.o v7.local.o lock.o optim.o names.o lex.o list.o main.o \
                     14:        quit.o send.o strings.o temp.o tty.o vars.o version.o \
                     15:        errlst.o str.o
                     16: 
                     17: SRCS=aux.c cmd1.c cmd2.c cmd3.c cmdtab.c collect.c edit.c fio.c \
                     18:        getname.c head.c v7.local.c lock.c optim.c names.c lex.c list.c main.c \
                     19:        quit.c send.c strings.c temp.c tty.c vars.c version.c \
                     20:        errlst.c str.c
                     21: 
                     22: #
                     23: # Special massaging of C files for sharing of strings
                     24: #
                     25: .c.o:
                     26:        ${CC} -E ${CFLAGS} $*.c | ${XSTR} -c -
                     27:        ${CC} -c ${CFLAGS} x.c 
                     28:        mv x.o $*.o
                     29: 
                     30: Mail:  $(OBJS) tags
                     31:        $(CC) -n -o Mail $(OBJS) $(LIBES)
                     32:        @size Mail
                     33: install: Mail fmt
                     34:        install -s Mail ${DESTDIR}/usr/ucb
                     35:        install -s fmt ${DESTDIR}/usr/ucb
                     36:        cp Mail.help* ${DESTDIR}/usr/lib
                     37:        cd ${DESTDIR}/usr/ucb; rm -f mail; ln Mail mail
                     38: 
                     39: tags:
                     40:        ${CTAGS} *.c;
                     41: 
                     42: clean:
                     43:        $(RM) -f *.o
                     44:        rm -f Mail a.out fmt x.c xs.c tags core
                     45:        cp /dev/null strings
                     46:        : rm -f version.c
                     47: 
                     48: lint:
                     49:        lint $(CFLAGS) $(SRCS)
                     50: 
                     51: fmt:   fmt.c head.c
                     52:        $(CC) -O -d2 fmt.c head.c -o fmt
                     53:        $(RM) fmt.o head.o
                     54:        size fmt
                     55: 
                     56: str.o: strings
                     57:        $(XSTR)
                     58:        $(CC) -S xs.c
                     59:        $(ED) - <:rofix xs.s
                     60:        $(AS) -o str.o xs.s
                     61:        $(RM) xs.s
                     62:        $(RM) xs.c
                     63: 
                     64: cmdtab.o: cmdtab.c
                     65:        $(CC) -S $(CFLAGS) cmdtab.c
                     66:        $(ED) - <:rofix cmdtab.s
                     67:        $(AS) -o cmdtab.o cmdtab.s
                     68:        $(RM) cmdtab.s
                     69: 
                     70: errlst.o: errlst.c
                     71:        ${CC} -E ${CFLAGS} errlst.c | ${XSTR} -c -
                     72:        ${CC} ${CFLAGS} -S x.c
                     73:        ${ED} - <:rofix x.s
                     74:        ${AS} -o errlst.o x.s
                     75:        ${RM} x.s
                     76:        ${RM} x.c
                     77: 
                     78: #
                     79: # Make the version file.  /tmp is always changing.
                     80: #
                     81: version.c: #   /tmp
                     82:        /bin/sh version > version.c
                     83: 
                     84: print:
                     85:        @$(VPRINT) makefile rcv.h def.h glob.h local.h v7.local.h $(SRCS) fmt.c;
                     86: 
                     87: wc:
                     88:        @wc rcv.h def.h glob.h local.h v7.local.h $(SRCS)
                     89: 
                     90: sc:
                     91:        @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.