1# 2# Copyright (c) 1987 Regents of the University of California. 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms are permitted 6# provided that the above copyright notice and this paragraph are 7# duplicated in all such forms and that any documentation, 8# advertising materials, and other materials related to such 9# distribution and use acknowledge that the software was developed 10# by the University of California, Berkeley. The name of the 11# University may not be used to endorse or promote products derived 12# from this software without specific prior written permission. 13# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 14# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 15# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 16# 17# @(#)Makefile 5.11 (Berkeley) 09/16/88 18# 19CFLAGS= -O -R 20LIBC= /lib/libc.a 21SRCS= version.c aux.c cmd1.c cmd2.c cmd3.c cmdtab.c collect.c edit.c fio.c \ 22 getname.c head.c v7.local.c lex.c list.c main.c names.c popen.c \ 23 quit.c send.c strings.c temp.c tty.c vars.c 24OBJS= version.o aux.o cmd1.o cmd2.o cmd3.o cmdtab.o collect.o edit.o fio.o \ 25 getname.o head.o v7.local.o lex.o list.o main.o names.o popen.o \ 26 quit.o send.o strings.o temp.o tty.o vars.o flsbuf.o 27FSRCS= fmt.c head.c 28FOBJS= fmt.o head.o 29MAN= mail.0 fmt.0 30 31all: mail fmt 32 33mail: ${OBJS} ${LIBC} 34 ${CC} -o $@ ${OBJS} 35 36fmt: ${FOBJS} ${LIBC} 37 ${CC} -o $@ ${FOBJS} 38 39clean: 40 rm -f ${FOBJS} ${OBJS} mail a.out fmt core 41 42cleandir: clean 43 rm -f ${MAN} tags .depend 44 45depend: 46 mkdep fmt.c ${SRCS} 47 48install: ${MAN} 49 install -s -o bin -g bin -m 755 mail ${DESTDIR}/usr/ucb/mail 50 install -s -o bin -g bin -m 755 fmt ${DESTDIR}/usr/ucb/fmt 51 install -c -o bin -g bin -m 444 misc/Mail.* ${DESTDIR}/usr/lib 52 rm -f ${DESTDIR}/usr/ucb/Mail 53 ln ${DESTDIR}/usr/ucb/mail ${DESTDIR}/usr/ucb/Mail 54 install -c -o bin -g bin -m 444 mail.0 ${DESTDIR}/usr/man/cat1/mail.0 55 install -c -o bin -g bin -m 444 fmt.0 ${DESTDIR}/usr/man/cat1/fmt.0 56 rm -f ${DESTDIR}/usr/man/cat1/Mail.0 57 ln ${DESTDIR}/usr/man/cat1/mail.0 ${DESTDIR}/usr/man/cat1/Mail.0 58 59lint: 60 lint ${CFLAGS} ${SRCS} 61 lint ${CFLAGS} fmt.c head.c 62 63tags: 64 ctags ${SRCS} 65 ctags -a fmt.c 66 sort -o tags tags 67 68