1# 2# Cory Hall Unix 11/70 Version 7 3# 4# Sccs Id = "@(#)makefile.cor 1.1 10/08/80"; 5# 6 7CFLAGS=-O -DCORY 8DESTDIR=/usr/src 9CTAGS=/usr/bin/eecs/ctags -w 10RM=-rm 11OBJS=aux.o cmd1.o cmd2.o cmd3.o cmdtab.o collect.o edit.o fio.o \ 12 head.o c.local.o lex.o list.o main.o names.o optim.o \ 13 quit.o send.o strings.o temp.o tty.o vars.o version.o 14 15SRCS=aux.c cmd1.c cmd2.c cmd3.c cmdtab.c collect.c edit.c fio.c \ 16 head.c c.local.c lex.c list.c main.c names.c optim.c \ 17 quit.c send.c strings.c temp.c tty.c vars.c version.c 18 19all: Mail fmt 20 21install: all 22 cp Mail $(DESTDIR) 23 cp fmt $(DESTDIR) 24 25Mail: $(OBJS) tags 26 $(CC) -n -o Mail $(OBJS) -lretro -lS 27 @size Mail 28 29tags: 30 ${CTAGS} *.c; 31 32clean: 33 $(RM) -f *.o 34 rm -f Mail a.out fmt x.c xs.c tags core 35 cp /dev/null strings 36 cp /dev/null version.c 37 38lint: 39 lint $(CFLAGS) $(SRCS) 40 41fmt: fmt.c head.c 42 $(CC) $(CFLAGS) fmt.c head.c -o fmt -lretro -lS 43 $(RM) fmt.o head.o 44 size fmt 45 46# 47# Make the version file. /tmp is always changing. 48# 49version.c: /tmp 50 /bin/sh version > version.c 51 52print: 53 @pr rcv.h def.h glob.h local.h c.local.h $(SRCS) 54 @pr fmt.c 55