Commit | Line | Data |
---|---|---|
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 | # |
894f50da | 17 | # @(#)Makefile 5.9 (Berkeley) %G% |
771a3d9d | 18 | # |
51a16129 KB |
19 | CFLAGS= -O |
20 | LIBC= /lib/libc.a | |
4fa2ac2d | 21 | SRCS= 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 |
23 | OBJS= 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 | 25 | MAN= talk.0 |
51a16129 KB |
26 | |
27 | all: talk | |
28 | ||
894f50da | 29 | talk: ${OBJS} ${LIBC} |
51a16129 | 30 | ${CC} -o $@ ${CFLAGS} ${OBJS} -lcurses -ltermlib |
f82cf5c1 | 31 | |
894f50da | 32 | clean: |
51a16129 | 33 | rm -f ${OBJS} core talk |
f82cf5c1 | 34 | |
894f50da KB |
35 | cleandir: clean |
36 | rm -f ${MAN} tags .depend | |
37 | ||
38 | depend: ${SRCS} | |
51a16129 | 39 | mkdep ${CFLAGS} ${SRCS} |
f82cf5c1 | 40 | |
894f50da | 41 | install: ${MAN} |
381444a9 | 42 | install -s -o bin -g bin -m 755 talk ${DESTDIR}/usr/ucb/talk |
894f50da | 43 | install -c -o bin -g bin -m 444 talk.0 ${DESTDIR}/usr/man/cat1 |
f82cf5c1 | 44 | |
894f50da | 45 | lint: ${SRCS} |
51a16129 | 46 | lint ${CFLAGS} ${SRCS} |
f82cf5c1 | 47 | |
894f50da | 48 | tags: ${SRCS} |
51a16129 | 49 | ctags ${SRCS} |