From 940851b3021b0e1fbb725347c62baba14b6ce2be Mon Sep 17 00:00:00 2001 From: Jay Lepreau Date: Sun, 12 Jan 1986 04:26:41 -0800 Subject: [PATCH] fix up make of fmt SCCS-vsn: usr.bin/mail/Makefile 5.3 --- usr/src/usr.bin/mail/Makefile | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/usr/src/usr.bin/mail/Makefile b/usr/src/usr.bin/mail/Makefile index 2672a2924d..50ba282378 100644 --- a/usr/src/usr.bin/mail/Makefile +++ b/usr/src/usr.bin/mail/Makefile @@ -3,7 +3,7 @@ # All rights reserved. The Berkeley software License Agreement # specifies the terms and conditions for redistribution. # -# @(#)Makefile 5.2 (Berkeley) %G% +# @(#)Makefile 5.3 (Berkeley) %G% # # Berkeley Mail # @@ -64,17 +64,25 @@ tags: $(SRCS) clean: $(RM) -f *.o - rm -f Mail a.out fmt x.c xs.c tags core + rm -f Mail a.out fmt x.c xs.c tags core xhead.c 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 +fmt: fmt.o xhead.o + $(CC) $(CFLAGS) fmt.o xhead.o -o fmt size fmt +fmt.o: fmt.c + $(CC) $(CFLAGS) -c fmt.c + +xhead.c: + ln -s head.c xhead.c + +xhead.o: xhead.c + $(CC) $(CFLAGS) -c xhead.c + str.o: strings $(XSTR) $(CC) -R -c xs.c -- 2.20.1