restore creation of y.tab.c
[unix-history] / usr / src / usr.bin / mail / Makefile.11
#
# Unix version 7.
#
# Sccs Id = "@(#)Makefile.11 1.1 %G%";
#
CFLAGS=-O -DV7
XSTR=/usr/ucb/xstr
DESTDIR=/usr/src
CTAGS=/usr/ucb/ctags -w
VPRINT=/usr/ucb/print
CGRAF=/ja/rigel/rigel/bin/cgraf
CGRAPH=/ja/rigel/rigel/bin/cgraph
NMKINDEX=/ja/rigel/rigel/bin/nmkindex
DIRTCLOD=/ja/rigel/rigel/bin/dirtclod
LIBES=
ED=-ed
AS=-as
RM=-rm
OBJS=version.o aux.o cmd1.o cmd2.o cmd3.o cmdtab.o collect.o \
config.o edit.o fio.o \
getname.o head.o v7.local.o lock.o lex.o list.o main.o \
names.o optim.o popen.o quit.o send.o strings.o temp.o tty.o \
vars.o sigretro.o
SRCS=aux.c cmd1.c cmd2.c cmd3.c cmdtab.c collect.c config.c edit.c fio.c \
getname.c head.c v7.local.c lock.c lex.c list.c main.c \
names.c optim.c popen.c quit.c send.c strings.c temp.c tty.c vars.c \
version.c sigretro.c
HDRS=rcv.h configdefs.h def.h glob.h v7.local.h local.h sigretro.h
S = $(SRCS) $(HDRS)
Mail: $S $(OBJS)
$(RM) -f Mail
@echo Loading ...
@$(CC) -i -o Mail $(OBJS) $(LIBES)
@size Mail
mail.g: $(SRCS)
$(CGRAF) $(SRCS) > mail.g
install:
install -s Mail ${DESTDIR}/usr/ucb
cp Mail.help* ${DESTDIR}/usr/lib
cd ${DESTDIR}/usr/ucb; rm -f mail; ln Mail mail
$S:
sccs get $@;
srcs: $S
tags: $(SRCS)
${CTAGS} $(SRCS);
clean:
$(RM) -f *.o
rm -f Mail a.out fmt x.c xs.c tags core
cp /dev/null strings
lint:
lint $(CFLAGS) $(SRCS)
fmt: fmt.c head.c
$(CC) fmt.c head.c -o fmt
$(RM) fmt.o head.o
size fmt
print: $S fmt.c
$(CGRAPH) > mail.g;
$(NMKINDEX) > mail.i;
$(DIRTCLOD) -x mail.i -p mail.g > mail.x
@$(VPRINT) makefile mail.x rcv.h def.h glob.h local.h v7.local.h \
$(SRCS) fmt.c;
wc:
@wc rcv.h def.h glob.h local.h v7.local.h $(SRCS)
sc:
@grep -c \; rcv.h def.h glob.h local.h v7.local.h $(SRCS)