# # Copyright (c) 1987 Regents of the University of California. # All rights reserved. # # Redistribution and use in source and binary forms are permitted # provided that the above copyright notice and this paragraph are # duplicated in all such forms and that any documentation, # advertising materials, and other materials related to such # distribution and use acknowledge that the software was developed # by the University of California, Berkeley. The name of the # University may not be used to endorse or promote products derived # from this software without specific prior written permission. # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. # # @(#)Makefile 5.14 (Berkeley) %G% # CFLAGS= -O -R -DUSE_OLD_TTY LIBC= /lib/libc.a SRCS= version.c aux.c cmd1.c cmd2.c cmd3.c cmdtab.c collect.c edit.c fio.c \ getname.c head.c v7.local.c lex.c list.c main.c names.c popen.c \ quit.c send.c strings.c temp.c tty.c vars.c OBJS= version.o aux.o cmd1.o cmd2.o cmd3.o cmdtab.o collect.o edit.o fio.o \ getname.o head.o v7.local.o lex.o list.o main.o names.o popen.o \ quit.o send.o strings.o temp.o tty.o vars.o flsbuf.o FILES= Mail.help Mail.rc Mail.tildehelp MAN= mail.0 all: mail mail: ${OBJS} ${LIBC} ${CC} -o $@ ${OBJS} clean: rm -f ${OBJS} mail a.out core cleandir: clean rm -f ${MAN} tags .depend depend: mkdep ${SRCS} install: ${MAN} install -s -o bin -g bin -m 755 mail ${DESTDIR}/usr/bin cd misc; install -c -o bin -g bin -m 444 ${FILES} \ ${DESTDIR}/usr/share/misc rm -f ${DESTDIR}/usr/bin/Mail ln ${DESTDIR}/usr/bin/mail ${DESTDIR}/usr/bin/Mail rm -f ${DESTDIR}/usr/man/cat1/Mail.0 ln ${DESTDIR}/usr/man/cat1/mail.0 ${DESTDIR}/usr/man/cat1/Mail.0 lint: lint ${CFLAGS} ${SRCS} tags: ctags ${SRCS}