file reorg, pathnames.h, paths.h
[unix-history] / usr / src / usr.bin / talk / Makefile
CommitLineData
d0aeaf5a 1#
51a16129 2# Copyright (c) 1987 Regents of the University of California.
f9ac90b4 3# All rights reserved.
d0aeaf5a 4#
f9ac90b4 5# Redistribution and use in source and binary forms are permitted
b36fc510
KB
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.
f9ac90b4 16#
c861cac9 17# @(#)Makefile 5.10 (Berkeley) %G%
771a3d9d 18#
51a16129
KB
19CFLAGS= -O
20LIBC= /lib/libc.a
4fa2ac2d 21SRCS= talk.c get_names.c display.c io.c ctl.c init_disp.c \
771a3d9d 22 msgs.c get_addrs.c ctl_transact.c invite.c look_up.c
51a16129
KB
23OBJS= talk.o get_names.o display.o io.o ctl.o init_disp.o \
24 msgs.o get_addrs.o ctl_transact.o invite.o look_up.o
894f50da 25MAN= talk.0
51a16129
KB
26
27all: talk
28
894f50da 29talk: ${OBJS} ${LIBC}
51a16129 30 ${CC} -o $@ ${CFLAGS} ${OBJS} -lcurses -ltermlib
f82cf5c1 31
894f50da 32clean:
51a16129 33 rm -f ${OBJS} core talk
f82cf5c1 34
894f50da
KB
35cleandir: clean
36 rm -f ${MAN} tags .depend
37
38depend: ${SRCS}
51a16129 39 mkdep ${CFLAGS} ${SRCS}
f82cf5c1 40
894f50da 41install: ${MAN}
c861cac9 42 install -s -o bin -g bin -m 755 talk ${DESTDIR}/usr/bin
894f50da 43 install -c -o bin -g bin -m 444 talk.0 ${DESTDIR}/usr/man/cat1
f82cf5c1 44
894f50da 45lint: ${SRCS}
51a16129 46 lint ${CFLAGS} ${SRCS}
f82cf5c1 47
894f50da 48tags: ${SRCS}
51a16129 49 ctags ${SRCS}